Skip to content

Hotfixes release for last 2 sprints ending 2021-08-02 - #3247

Merged
rtibbles merged 74 commits into
learningequality:hotfixesfrom
bjester:sprint-release-2021-07-19
Aug 12, 2021
Merged

Hotfixes release for last 2 sprints ending 2021-08-02#3247
rtibbles merged 74 commits into
learningequality:hotfixesfrom
bjester:sprint-release-2021-07-19

Conversation

@bjester

@bjesterbjester commented Jul 19, 2021

Copy link
Copy Markdown
Member

Summary

  • Fixes handling of default setting for randomization of exercise questions
  • Fixes issue resulting in duplicate server syncing requests when multiple tabs are used
  • Fixes cross-origin issue when signing out
  • Fixes cosmetic issue in related resources management
  • Fixes potential performance issue when editing markdown
  • Fixes bug in developer setup after Django upgrade
  • Adds cron job to invoke garbage collection command which now cleans up completed tasks
  • Small code refactors from technical debt identified by deepsource.io and SonarCloud
PRIssuesCategoryQA Focus
#3253#3244Bug fixVerify channel exercise setting in export
#3251, #3256#3191Bug fixEdit channel with multiple tabs open
#3255N/ACosmetic fixPreviewing related resource in drawer
#3254N/ABug fixSign out clears local data
#3252N/ABug fixAdding topic doesn't cause console error
#3236N/APerformanceEdit rich exercise content
#3066N/ATech debtCritical workflows
#3221N/ATech debtCritical workflows
#3220N/ATech debtCritical workflows
#3222N/ATech debtCritical workflows
#3219N/ATech debtCritical workflows
#3223N/ATech debtCritical workflows
#3229N/ATech debtCritical workflows
#3211N/ATech debtCritical workflows
#3230N/ATech debtCritical workflows
#3232N/ATech debtCritical workflows
#3228N/ATech debtCritical workflows
#3231N/ATech debtCritical workflows
#3242N/ATech debtCritical workflows
#3238N/ATech debtCritical workflows
#3241N/ATech debtCritical workflows
#3239N/ATech debtCritical workflows
#3240N/ATech debtCritical workflows
#3237N/ATech debtCritical workflows
#3257N/ASecurity updateN/A
#3233N/ADev fixN/A

QA Scenarios

Verify exercise randomization setting in channel export

  1. Open a channel for editing
  2. Click ADD and select New Exercise
  3. Do not change the setting for Randomize question order for learners
  4. Add Title, Mastery model, License, and at least one question then save the exercise
  5. Publish the channel
  6. Manually download the channel database https://hotfixes.studio.learningequality.org/content/databases/<CHANNEL_ID>.sqlite3
  7. Use SQLite browser tool or CLI to inspect content_assessmentmetadata table and verify randomize value is 1
  8. Repeat scenario, unsetting the randomize option

Edit channel with multiple tabs open

  1. Open a channel for editing
  2. Duplicate the tab
  3. Open the Developer Console in both tabs and go to the Network tab of each console
  4. Refresh both tabs
  5. Ensure only one tab registers requests to a sync URL

Previewing related resource in drawer

  1. Open a channel for editing
  2. Add or edit an exercise
  3. Click RELATED tab
  4. Click either ADD NEXT STEP or ADD PREVIOUS STEP
  5. Click PREVIEW on a resource
  6. Verify you can scroll to the bottom of the preview drawer

Sign out clears local data

  1. Open a channel for editing
  2. Open the Developer Console and go to the Application tab
  3. Sign out
  4. Verify that there's no data inside Developer Console > Application > Storage > IndexedDB > Kolibri Studio > contentnode

Adding topic doesn't cause console error

  1. Open a channel for editing
  2. Open the Developer Console and go to the Console tab
  3. Click ADD and select New Topic
  4. Verify there's no error in console

Edit rich exercise content

  1. Open a channel for editing
  2. Click ADD and select New Exercise
  3. Add Title, Mastery model, and License
  4. Click the QUESTIONS tab
  5. Click NEW QUESTION
  6. Use tools to add rich text into the Question, Answer, and/or Hint textboxes

Critical workflows

deepsource-autofixBotand others added 30 commits July 6, 2021 14:25
…urce-fix-a29486d6
Replace `==`/`!=` with `===`/`!==`
…urce-fix-ddeef224
Replace `assertEquals` with `assertEqual`
…urce-fix-5580e907
Replace list comprehension with set comprehension
…urce-fix-89e9f703
Remove unnecessary use of comprehension
…urce-fix-f1d0fd14
Remove assert statement from non-test files
…urce-fix-c273c78e
Replace short hand type conversions with JavaScript methods
…urce-fix-d330b87d
Remove length check in favour of truthiness of the object
…urce-fix-59592cc6
Use literal syntax instead of function calls to create data structure
…urce-fix-44ffe5ee
Use identity check for comparison to a singleton
…urce-fix-918e0e01
Refactor unnecessary `else` / `elif` when `if` block has a `raise` statement
Catch integrity error to handle both sides of missing prerequisite relationships.
@bjesterbjester changed the title Hotfixes release for sprint ending 2021-07-19Hotfixes release for last 2 sprints ending 2021-08-02Aug 4, 2021
Aron Asorand others added 20 commits August 4, 2021 19:33
Handle a ref being undefined during computed prop computation.
Make randomize default to true in the frontend
Co-authored-by: Richard Tibbles <richard@learningequality.org>
…asks-cronjob
add cronjob that clears old tasks every midnight
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
…abot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed! Quality Gate passed

BugA0 Bugs
VulnerabilityA0 Vulnerabilities
Security HotspotA0 Security Hotspots
Code SmellA0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@bjester
bjester marked this pull request as ready for review August 12, 2021 16:59
@rtibbles
rtibbles merged commit 967ba6e into learningequality:hotfixesAug 12, 2021
@radinamatic

radinamatic commented Aug 12, 2021

Copy link
Copy Markdown
Member

Apologies for the delay, @pcenovfinished running the critical workflows on Friday, only I was dragging my feet to confirm specific test scenarios for this sprint...

PRIssuesCategoryQA FocusStatusimg
#3253#3244Bug fixVerify channel exercise setting in export✔️DB Browser for SQLite - -home-didi-Documents-LE-WIP-QA-210812-7184393530e64079885ed58467df29e8-unchecked sqlite3_001
#3251, #3256#3191Bug fixEdit channel with multiple tabs open✔️
#3255N/ACosmetic fixPreviewing related resource in drawer✔️
#3254N/ABug fixSign out clears local data✔️
#3252N/ABug fixAdding topic doesn't cause console error✔️
#3236N/APerformanceEdit rich exercise content✔️ Edit details - test size - Kolibri Studio - Google Chrome_001Few errors in the console while uploading images in question, answer and hint fields, and one during publishing, which completed successfully irregardless. test size - test size - Kolibri Studio - Google Chrome_003

@radinamatic

Copy link
Copy Markdown
Member

@bjester this looks good to go in production, no regressions in sight! 💯 👏🏽

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bjester@radinamatic@rtibbles@aronasorman@marcellamaki