Release 1.61.0 - Url history fixes, version upgrades #1813
Merged
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.
Tests
Home page
Login page
[ ] It should respond with invalid email when email does not end with .gov.sg[ ] It should not allow submission when email is invalid[ ] Invalid OTP should not log the user in[ ] Valid OTP should log the user in[ ] After trying to enter wrong OTP 3 times, it should respond with OTP not found/expired (a new OTP must be requested)[ ] Visiting /user should redirect to login page when not logged inUser page
Sessions
[ ] Shows the homepage if user does not have an existing session[ ] Redirects to /user if user has an existing session (ie logged in previously on the same browser)URL creation
[ ] The create url modal opens when the "Create link" button is clicked.[ ] It should populate the short url input box on the create url modal with a random string when the refresh icon on the short url input box is pressed[ ] It should show the new short url on the users’ links table when a new link is created[ ] The new short url should be highlighted on the users' links table when a new link is created[ ] It should prevent creation of short urls pointing to long urls hosted on blacklisted domains[ ] It should show an success snackbar when a new url has been added[ ] It should show an error below the file input when a file larger than 10MB is chosen[ ] It should disable the submit button when a file larger than 10MB is chosen[ ] It should show the short url on users' link table when a new file link is created[ ] The new short url should be highlighted on the users' links table when a new file link is created[ ] It should show an success snackbar when a new file link has been added[ ] On link creation success, the create url modal remains open and displays isSearchable toggle and add-description fields[ ] When file link is created, the modal remains open and display isSearchable toggle and add-description fieldsURL Searching and Download
.csv
file.[ ] Searching on the user page search bar shows links that are relevant to the search term.[ ] Toggling the link to not be searchable would hide it from search[ ] Toggling the link to be searchable would allow it to be searchableTransition page
You may need to clear your cookies before testing this segment.
[ ] Accessing a short link with a trailing slash should not result in a broken transition page.[ ] Accessing a short link for the first time shows the transition page.[ ] After 6 seconds, user is redirected from the transition page to the correct destination long url.[ ] A skip button is displayed immediately.[ ] Visiting the same short link again does not show the transition page.Redirection
Drawer, Editing and Toaster logic
[ ] Drawer should open with the correct long url and state when a short url row is clicked[ ] Drawer can be closed on clickaway or when the close button is clicked.[ ] It should set short url active or inactive immediately when the toggle is switched (any caching for that short url is cleared)[ ] It should redirect to the amended url immediately when the long url is changed (any caching for that short url is cleared)[ ] It should show an error and not amend the file when a file of size >10mb is selected on replace file[ ] It should show a success snackbar when long url is changed[ ] It should show a success snackbar when link is transferred to another user.[ ] Url is updated/saved when user enters a new url, then clicks "save"[ ] Url is reverts to original when user enters a new url, then re-opens the drawer without clicking "save"[ ] Error validation (red underline + helperText) appears when value in edit long url textfield is invalid[ ] "Save" button is disabled (grey and unclickable) when value in edit long url textfield is invalid[ ] Unsuccessful link transfers do not close the drawer.[ ] Successful link transfers closes the drawer.[ ] Toasters to disappear when user clicks on the X only[ ] Toasters to disappear after 5sec[ ] Toasters to not disappear on clickaway (i.e. to prevent premature closure when user clickaway to save url)[ ] It should not allow foreign characters in the description field[ ] It should allow saving of description/contact as long as one of them is changed[ ] It should allow saving of a blank description or contact[ ] It should not allow contact emails which are not valid *.gov.sg emailsQR
User page - Sort & Filter
Most number of visits
and clicking apply[ ] Clicking on the button at the end of the search input should open the sort and filter panel[ ] Links should be sorted by their created time in descending order when enabling sort byDate of creation
and clicking apply[ ] Inactive links should be filtered out by checking onlyActive
and clicking apply[ ] Active links should be filtered out by checking onlyInactive
and clicking apply[ ] File links should be filtered out by checking onlyLink
and clicking apply[ ] Non-file links should be filtered out by checking onlyFile
and clicking apply[ ] Panel should be closed when clicking outside of it[ ] Panel should be closed and links sorted by created time with no filtering after clicking on reset. All links and files should be visible.[ ] Panel should be closed when apply is clicked[ ] It should reset the table to page 1 when apply is clickedLogging from GA event
Directory - filter & sort panel
Directory - desktop view
Directory - mobile view
--
Deploy Notes
Notes regarding deployment of the contained body of work. These should note any
new dependencies, new scripts, etc.
Related fixes
Code changes
description
when migrating urldescription
column inurl_histories
tableUpdate current databases
Health
health-staging
ALTER TABLE url_histories ADD "description" text NOT NULL DEFAULT '';
migrate-user-links
migrate-shortUrl-to-user
health-prod
since the model should be fixedEdu
edu-staging
ALTER TABLE url_histories ADD "description" text NOT NULL DEFAULT '';
migrate-user-links
migrate-shortUrl-to-user
edu-prod
ALTER TABLE url_histories ADD "description" text NOT NULL DEFAULT '';
migrate-user-links
migrate-shortUrl-to-user
GoGov
gogov-staging
(Not necessary inALTER TABLE url_histories ADD "description" text NOT NULL DEFAULT '';
gogov-staging
andgogov-prod
as previous migrations have added a default)migrate-user-links
migrate-shortUrl-to-user
gogov-prod
(Not necessary inALTER TABLE url_histories ADD "description" text NOT NULL DEFAULT '';
gogov-staging
andgogov-prod
as previous migrations have added a default)migrate-user-links
migrate-shortUrl-to-user