Skip to content

Master release for sprint ending 2021-05-24#3188

Merged
bjester merged 65 commits intomasterfrom
hotfixes
Jun 2, 2021
Merged

Master release for sprint ending 2021-05-24#3188
bjester merged 65 commits intomasterfrom
hotfixes

Conversation

@bjester
Copy link
Copy Markdown
Member

@bjester bjester commented Jun 2, 2021

Summary

Peter Cenov and others added 30 commits April 9, 2021 08:43
- get rid of `[vuex] unknown mutation type: policies/SET_POLICIES` error
  by importing the whole policies module and then overriding only
  values that are needed for a test
- remove tests that were prone to giving false positives
  and weren't testing responsibilities of PolicyModals
  component
- user props and events in simpler modal components (PoliciesModal,
  TermsOfServiceModal, PrivacyPolicyModal, CommunityStandardsModal)
  to decouple them from store to make logic simpler and easier to test
- related tests simplifications of PoliciesModal
- related updates of store and PolicyModals component that is now the only
  controller component encapsulating all Vuex logic
- some more tests for PoliciesModal nad PolicyModals
- export getters, mutations, and actions to allow
  testing them directly instead of the need to initialize
  the whole store, similarly to how we test getters etc.
  of our other store modules (this has also allowed
  deletion of mocks that are not related to this test
  suite)
- use hardcoded sample data in tests to improve clarity
  and make orientation in tests faster when reading them
  as documentation
- add more documentation strings to store functions
- move the test for updating `window.user` object to
  plugin.spec.js to make sure that `window.user` will
  be updated every time `setPolicies` mutation is called,
  and not only when `setPolicies` is called from `acceptPolicy`
  action
`KModal`'s content slot is already wrapped in form =>
leaving `VForm` here would result in nested forms,
which is not supported and could result in bugs
(see
https://stackoverflow.com/questions/379610/can-you-nest-html-forms).

- remove `VForm`
- replace `Checkbox` with `KCheckbox` (related to `VForm`
  deletion in terms of validation logic)
- update validation logic to resemble `VForm`'s behaviour
  but to work with `KCheckbox` and native `<form>` in `KModal`
Because `PolicyModals` was in both `UsingStudio` and `SettingsIndex`
components, it was open two times which also caused a focus bug.
This removes `PolicyModals` component from `UsingStudio` and leaves
it only in `SettingsIndex`.
…ciesmodal

KDS to Studio: Use KModal in policy modals
Delete deployed squashed migrations.
Remove tests for removed migrations.
Remove some deprecated calls.
Peter Cenov and others added 24 commits May 21, 2021 07:00
Pagination integration proof of concept
Hotfixes release for sprint ending 2021-05-24
Fixes two Django 1.11 to 3.2 upgrade issues in search.
Fixes two Django 1.11 to 3.2 upgrade issues in search.
Fix password reset for Django 3.2 upgrade
Load portuguese country name data for country listing
Redirects using a reverse URL rather than hardcoded 'channels'
Call DISTINCT after filtering queryset by ids from pagination
Sprint release 2021-05-24 strings
@bjester bjester requested review from radinamatic and rtibbles June 2, 2021 20:36
Copy link
Copy Markdown
Member

@radinamatic radinamatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hotfixes tested (thank you, @pcenov) and the new strings look OK, let's do this! 👍🏽

@bjester bjester merged commit 3f5744d into master Jun 2, 2021
@bjester bjester changed the title Master release for sprint ending 2021-05-25 Master release for sprint ending 2021-05-24 Jun 3, 2021
Sign up for free to 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.

6 participants