-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[configuration] Fix error messages & saving with null Alias #8349
Merged
driusan
merged 2 commits into
aces:24.1-release
from
CamilleBeau:2023_01_31_Project_Alias_Not_Null
Apr 5, 2023
Merged
[configuration] Fix error messages & saving with null Alias #8349
driusan
merged 2 commits into
aces:24.1-release
from
CamilleBeau:2023_01_31_Project_Alias_Not_Null
Apr 5, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@CamilleBeau Tests are failing |
@laemtl Fixed! |
@driusan I think this should go to 24.1, please confirm |
ridz1208
added
the
24.0.0-bugs
Issues or bug fix PRs that were raised during the testing of release 24.0.0
label
Mar 8, 2023
Yes, I think it should go to the release since it doesn't involve schema changes. |
CamilleBeau
force-pushed
the
2023_01_31_Project_Alias_Not_Null
branch
from
March 15, 2023 19:23
88ace06
to
7bea999
Compare
racostas
approved these changes
Mar 23, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
racostas
added
the
Passed manual tests
PR has been successfully tested by at least one peer
label
Mar 23, 2023
zaliqarosli
added a commit
to zaliqarosli/Loris
that referenced
this pull request
Jun 15, 2023
* [Issue tracker] - fix can't Delete attachment (aces#8337) Allow users to delete their own attachment. If a user does not have Issue Tracker: Close/Edit/Re-assign/Comment on All Issues, they cannot currently delete their own attachment. Resolves aces#8006 * [configuration] Fix error messages & saving with null Alias (aces#8349) This prevents the user from saving a Project configuration with a null Alias in a new project as well as existing projects. * [webpack] remove util shortcut as it is unusedand causes conflicts (aces#8634) The util shortcut seems to be completely unused in the code, the only place using the content of that directory references the whole path of the directory Resolves aces#8577 * [Tools] double_escape_report tool breaking on non-string values (aces#8484) This tool tries to run pregmatch on every value pulled from the instrument Data. there is a possibility that values coming from json_decode() are decoded into floats or arrays if that is how they have been saved. if it's the case the script should just skip them and not fail * [issue tracker] Populate reporter dropdown (aces#8469) In the issue tracker module, the reporter dropdown is populated with the assignee users instead of the reporter users. This fills the reporter dropdown with the right reporter values. Fixes aces#8429 * [examiner] Column for 'Instrument' in certification menu appears narrow (aces#8453) This is changing the CSS class used in the examiner page. The former class had a small percentage of the width causing the first field become narrow, by changing it to another class, the problem is solved. Fixes aces#8026 * [tools] support JSON instruments in fix_candidate_age.php (aces#8286) Fixes aces#8090 * [bvl_feedback] Fix Permissions for Feedback Summary & Thread List (aces#7826) Currently, only users with the access_all_profiles permission can see Feedback Threads and Open Thread Summary at the profile level. Even if a user adds a feedback entry, they won't be able to see their own feedback thread unless they have the access_all_profiles permission. This change allows users to see threads and the summary that exists for candidates that they have access to (i.e., if a user is affiliated with MTL, they can now see the feedback threads & summary of MTL candidates). Fixes aces#7190 * [new_profile/sex] Remove strtolower() and force uppercase (aces#8633) The keys in the new_profile module were lower case which forces the Sex library class to use a strtolower() function to validate the value and then submits the lowercase value in the SQL insert statement where SQL implicitly converts it to uppercase. This workflow is very risky as different versions of SQL or different databases may not recognise the lowercase and uppercase as the same word and treat it as a truncation. This is also simply bad practice and unnecessary here. * [NDB_BVL_Feedback] Fixing 500 error on instrument list page (aces#8694) A recent change (aces#7826) to the NDB_BVL_Feedback class causes the following 500 Error to appear when the instrument_list page is loaded. This is because references are made to Timepoint::singleton instead of TimePoint::singleton. Fix casing. * [Login] Case insensitive comparison of Authentication header The HTTP spec says the header name is case-insensitive. Some clients send it as "authentication" (lowercase). This makes our check for the header case-insensitive by lower-casing the headers before doing the comparison. * Fix PHPCS (aces#8719) * Fix nonaggregated column error in mri_violation provisioner (aces#8716) Fixes aces#8705, Fixes aces#8697 * [EEG Uploader] Handle Checksum value (aces#8729) Include checksum in value saved to database. * [instruments] Fix properly disabling/enabling 'Delete instrument data' button display (aces#8686) Currently, if the 'InstrumentResetting' config is set to 'No', the 'Delete instrument data' button is displayed and the user is able to clear the instrument. This fixes that by letting the if statement check a true boolean instead of string "true" by calling 'settingEnabled'. The PR also modifies the testing plan so this is tested in the future. * [electrophysiology_uploader] Added 'Help' content for the elctrophysiology_uploader module (aces#8728) Added 'Help' content for electrophysiology_uploader module. Fixes aces#8597 * [module_manager] Visibility of 'My Preferences' in menu reflects state (aces#8726) The 'My Preferences' menu item is no longer visible if the my_preferences module is not Active. Fixes aces#8695 * [Media] Fix Input callback not set (aces#8720) Add a onUserInput prop to the "Update File" ButtonElement Fixes aces#8700 * [battery_manager] React warning messages in console (aces#8724) A few number values were being passed as Strings in the props to Form elements. Change them to be numbers. Fixes aces#8703 * [user_accounts] Update TestPlan wording (aces#8718) This changes the wording slightly in the TestPlan of user_accounts to indicate that an email is only sent to a new user if the "Send email to user" button is selected. Fixes aces#6971 * 24.1 to 25.0 release patch (aces#8715) Combine files in the New_patches into one release file. * [document_repository] Include steps to test for multiple files (aces#8758) Updated some steps to include the newly added support for uploading multiple files at once. For testing assignment aces#8519. * [document_repository] Update help content (aces#8761) Added reference to new feature to support uploading multiple files at once. * [user_accounts] Update TestPlan.md (aces#8754) The pwned password example was not complex enough to pass the complexity check and trigger the pwned check, so change the example to another one which is more secure but also in a pwned database. * [acknowledgements] Update test plan (aces#8763) Correct step about clearing filters wording and add step to check the citation policy works. Fixes aces#8736 * [instrument & instrument_manager] test plans update (aces#8765) Transfer the permission test step from instruments module to instrument_manager module, since it is now managed there instead of in the config.xml * [dashboard] Load project description from ajax and run through DOMPurify (aces#8762) This makes sure the Project Description on the dashboard runs through DOMPurify. In order to do that, it was also necessary to move the description from being loaded in a smarty template to being loaded from an AJAX call (so that we can import the DOMPurify module.) Fixes aces#8750 * [configuration] Use unsafeInsert/unsafeUpdate for saving values (aces#8759) The values get double-escaped when modified now if they contain HTML. Use unsafe variants of database calls so that the values to not get modified when re-saved. Fixes aces#8748 * [new_profile] Fix date requirements and formats with EDC (aces#8767) Fixed NewProfileIndex to use the correct variable containing the EDC date To create a candidate, the date of birth for a candidate is now required only when useEDC = no in Candidate.class.inc. If useEDC = yes, DoB is null unless it's specified. Added the validation of the EDC date format If the Ym format is selected in the configuration, added a '-15' to the end of the EDC date to be compatible with the SQL type date Resolves aces#8742 * [Media] Fix warning invalid prop options (aces#8722) Update the prop option hiddenOptions for the fileVisibility SelectElement to be an object instead of an array. Resolves aces#8696 * [Survey] Fix loading of survey instruments (aces#8647) The module search path for survey instruments was incorrect. Set to the same search path as in tools/generic_includes.php Resolves aces#8546 * [new_profile] Fix Date Picker (aces#8775) Removed the legacy JQuery month picker, without it the issue is gone. Resolves aces#8753 * [api] Test multiple versions (aces#8778) This attempts to add tests for multiple versions of the API. The tests from v0.0.4-dev are copied to v0.0.3 classes and the version in the new classes changed to v0.0.3. * [survey_accounts] Fix help text (aces#8789) Replace `<br>` tag with ` \n` as per markdown spec in order to fix rendering of help text. * [Timepoint List] Hide visits that are from user unaffiliated projects (aces#8723) Adjusted the Timepoint_List module to also filter out the visits of projects that are not affiliated to the current user when they have permission to all sites. Resolves aces#8710 * [Candidate] Fix wrong comments to avoid confusion in future (aces#8791) The middle day of the month is used when date format is Y-M, not the first. --------- Co-authored-by: Shen <[email protected]> Co-authored-by: CamilleBeau <[email protected]> Co-authored-by: Rida Abou-Haidar <[email protected]> Co-authored-by: regis <[email protected]> Co-authored-by: miladheshmati <[email protected]> Co-authored-by: Suzanne Lee <[email protected]> Co-authored-by: Alexandra Livadas <[email protected]> Co-authored-by: Dave MacFarlane <[email protected]> Co-authored-by: Laetitia Fesselier <[email protected]> Co-authored-by: jeffersoncasimir <[email protected]> Co-authored-by: charlottesce <[email protected]> Co-authored-by: Saagar Arya <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
24.0.0-bugs
Issues or bug fix PRs that were raised during the testing of release 24.0.0
Passed manual tests
PR has been successfully tested by at least one peer
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Brief summary of changes
This PR prevents the user from saving a Project configuration with a null Alias in a new project as well as existing projects.
While testing, I also noticed that several of the error messages were broken, so those were fixed as well
Testing instructions (if applicable)
Link(s) to related issue(s)