Feature/4316 separate notes#2576
Conversation
|
Bug 1: PreconditionUser Role: Admin Steps to Reproduce:Step 1Navigate to /testdrive/flags Step 2Login as an admin Step 3Open Feline Aero page visible on the dashboard Expected ResultAbove the notes there is the Add Flag button visible and active Actual ResultThere is no Add Flag button |
|
Bug 2: PreconditionUser Role: Admin Steps to Reproduce:Step 1 [Pass]Navigate to /testdrive/flags Step 2 [Pass]Login as an admin Step 3 [Pass]Navigate to /admin/applications Expected ResultOnly flagged records are listed Step 4 [Fail]Select Only Flagged Records Actual ResultNothing of the sort is seen Step 5 [Fail]Select "Only Flagged to Me" filter Expected ResultWhen a flag has a deadline, it is displayed under Alternative Title Actual ResultNo filter like this |
|
Bug 3: PreconditionUser Role: AssociateEditor Steps to Reproduce:Step 1 [Fail]Go to the tab 'Journals assigned to you' Step 2 [Fail]Search for the keyword which is given in a notes in a journal Step 3 [Fail]Go to the tab 'Applications assigned to you' Step 4 [Fail]Search for the keyword which is given in a notes in an application Expected ResultSearch results should show the journal with the keyword in the note Actual ResultSearching for keywords in the note does not return results |
There was a problem hiding this comment.
Found a few bugs for you (or they might just be outdated tests)
@richard-jones
|
Bug 3 was an obsolete test that can be removed (and I have removed it), but Bugs 1 and 2 are due to an inaccurate test case that needs to be corrected and run. I've asked @amdomanska to look at that, as it relates to the flags feature which is actively under development in other PRs. Will bounce this back to you when they are ready. |
|
Test script for Bugs 1 and 2 are now updated, so ready for a re-review |
usman-cottagelabs
left a comment
There was a problem hiding this comment.
Bug 1 - resolved
Bug 2 - still there. I have also seen this same thing when testing Aga's flag ticket
|
This ticket is ready to go. Bug 2 resolved in Agas fix on the Flag ticket. |

Separates Notes from Applications/Journals at the storage and model level
This PR moves notes into their own index, so that they can be used by reference by any other system object which requires annotation. It consists of:
This PR...
Developer Checklist
Developers should review and confirm each of these items before requesting review
constantsormessagesfilesdates)url_fornot hard-codeddevelopReviewer Checklist
Reviewers should review and confirm each of these items before approval
If there are multiple reviewers, this section should be duplicated for each reviewer
constantsormessagesfilesdates)url_fornot hard-codeddevelopTesting
To test this feature you will need to:
There are no new feature tests for this work, we just need to confirm the following regression tests:
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#administrative_search/journals/test_notes_searchable_for_admin_and_not_for_public
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#administrative_search/journals/test_notes_not_searchable_for_public
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#administrative_search/journals/test_notes_searchable_for_editor
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#administrative_search/journals/test_notes_searchable_for_associate_editor
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#administrative_search/journals/test_notes_not_searchable_for_fixed_query_widget_joint_journalarticle_search
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#bulk_edit/applications/add_a_note
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#bulk_edit/journals_and_articles/journal_add_a_note
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#flagged_journals/flagged_journals
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#journal_form/associate_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#journal_form/editor_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#journal_form/maned_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#new_application_form/associate_editor_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#new_application_form/editor_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#new_application_form/maned_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#new_application_form/publishers_form
https://doaj.github.io/doaj-docs/feature/4316_separate_notes/testbook/index.html#quick_reject/quick_reject_feature/provide_a_custom_rejection_reason
Deployment
Configuration changes
There are no configuration options which need to be added removed for normal operation.
The following fields are affected, but are unlikely to need to be customised in testing or production environments:
Nonetheless, for deployment, there is configuration required which will need to be changed after a successful deploy and migration. These are:
Details of what to do with these fields is covered below under Deployment
Scripts
N/A
Migrations
This deployment will require READ ONLY mode to be enabled to ensure consistent data after the migration.
Prior to deployment of the branch, the following config must be set on the target machine:
Once the branch is deployed, run the following migration command
This will separate the notes from the Journals, Applications and DraftApplications, and may take some time to run.
Once the migration has completed, the config added above (SEAMLESS_JOURNAL_LIKE_OTHER_FIELDS) must be removed from the environment.
There is an additional field PUBLIC_QUERY_VALIDATOR__EXCLUDED_FIELDS which contains obsolete field references. It is ok for this to stay in production indefinitely, but post-release we should issue a small release to remove those unnecessary fields.
Monitoring
N/A
New Infrastructure
N/A
Continuous Integration
N/A