Skip to content

Conversation

DaisyGuti
Copy link
Contributor

@DaisyGuti DaisyGuti commented Sep 17, 2025

Ticket

Resolves #4031

  • Added optimistic locking for the saves
  • If you try to save an old version of the domain now you get a message, "A newer version of this form exists. Please try again." And the page is refreshed with the latest version from the db.

Context for reviewers

Chat on Slack.

Example of the message you'll see:
Screenshot 2025-09-26 at 10 07 31 AM

Setup

  1. Open two windows or tabs and login/: https://getgov-dg.app.cloud.gov/requests/
  2. Select a domain request to Edit and open the same step in both windows/tabs
  3. Edit it one window and save
  4. Edit it in the other window and save, it should not save and you should see the message "A newer version of this form exists. Please try again." and the page should refresh with the latest save (from the other tab/window)
Screenshot 2025-09-26 at 10 07 31 AM

The same should occur if you try to save from Admin.

Code Review Verification Steps

As the original developer, I have

Satisfied acceptance criteria and met development standards

  • Met the acceptance criteria, or will meet them in a subsequent PR
  • Created/modified automated tests
  • Update documentation in READMEs and/or onboarding guide

Ensured code standards are met (Original Developer)

  • If any updated dependencies on Pipfile, also update dependencies in requirements.txt.
  • Interactions with external systems are wrapped in try/except
  • Error handling exists for unusual or missing values

Validated user-facing changes (if applicable)

  • Follow the process for requesting a design review. If code is not user-facing, delete design reviewer checklist
  • Verify new pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
  • Checked keyboard navigability
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)

As a code reviewer, I have

Reviewed, tested, and left feedback about the changes

  • Pulled this branch locally and tested it
  • Verified code meets all checks above. Address any checks that are not satisfied
  • Reviewed this code and left comments. Indicate if comments must be addressed before code is merged
  • Checked that all code is adequately covered by tests
  • Verify migrations are valid and do not conflict with existing migrations

Validated user-facing changes as a developer

Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.

  • New pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
  • Checked keyboard navigability
  • Meets all designs and user flows provided by design/product
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
  • (Rarely needed) Tested as both an analyst and applicant user

As a designer reviewer, I have

Verified that the changes match the design intention

  • Checked that the design translated visually
  • Checked behavior. Comment any found issues or broken flows.
  • Checked different states (empty, one, some, error)
  • Checked for landmarks, page heading structure, and links

Validated user-facing changes as a designer

  • Checked keyboard navigability
  • Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
  • Tested with multiple browsers (check off which ones were used)
    • Chrome
    • Microsoft Edge
    • FireFox
    • Safari
  • (Rarely needed) Tested as both an analyst and applicant user

References

Screenshots

Copy link

🥳 Successfully deployed to developer sandbox dg.

@DaisyGuti DaisyGuti moved this to 🎯 Ready in .gov Product Board Sep 17, 2025
Copy link

🥳 Successfully deployed to developer sandbox dg.

Copy link

🥳 Successfully deployed to developer sandbox dg.

Copy link

🥳 Successfully deployed to developer sandbox dg.

@DaisyGuti DaisyGuti marked this pull request as ready for review September 18, 2025 20:36
@DaisyGuti DaisyGuti requested review from a team September 18, 2025 20:36
Copy link

🥳 Successfully deployed to developer sandbox dg.

@DaisyGuti DaisyGuti marked this pull request as draft September 18, 2025 20:46
@DaisyGuti DaisyGuti marked this pull request as ready for review September 18, 2025 22:23
Copy link

🥳 Successfully deployed to developer sandbox dg.

@DaisyGuti DaisyGuti added dev issue is for the dev team design-review dev ticket needing design review labels Sep 18, 2025
Copy link

🥳 Successfully deployed to developer sandbox dg.

@gabo0oo gabo0oo requested review from gabo0oo and removed request for a team September 18, 2025 23:08
@gabo0oo gabo0oo removed their request for review September 27, 2025 00:56
Copy link
Contributor

@abe-alam-ecs abe-alam-ecs left a comment

Choose a reason for hiding this comment

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

LGTM! Reviewed code and tests -- well written and thorough.

Pulled the code locally and tested on form submissions.
Screenshot 2025-09-29 at 9 49 07 AM

@katypies katypies removed the status in .gov Product Board Oct 1, 2025
Copy link

github-actions bot commented Oct 1, 2025

🥳 Successfully deployed to developer sandbox dg.

Copy link

github-actions bot commented Oct 3, 2025

🥳 Successfully deployed to developer sandbox dg.

1 similar comment
Copy link

github-actions bot commented Oct 3, 2025

🥳 Successfully deployed to developer sandbox dg.

erinysong and others added 9 commits October 6, 2025 14:29
* Update /your-portfolios URL to /your-organizations

* Fix card margins and icon alignment

* Set fixed width for portfolio card containers

* Adjust font size on organizations page

* Update navbar dropdown font size

* Update dropdown icon color

* Update submenu font size and color

* Remove z indexing of header

* Adjust mobile menu font color

* Adjust mobile menu font size

* Update organizations image

* Change paragraph margin on Your organizations

* Adjust mobile layout of portfolio cards

* Redirect home to Your organizations page for multiple portfolio users

* Add background image to desktop view

* Update line height of organizations menu links

* Add border to secondary nav
create sandbox -ap
* Add domain-suborganization as domain subpage

* Fix portfolio navbar bug
* fixed revert with old tests

* updates

* reverted all test changes

* removed debug html

* Restore mobile menu

* ran docker app black to reformat

* fixed duplicate and added back the comment in DomainExport noting about portfolio and suborganization

* ran linter

* removed rows expected from path

* ran app black again

---------

Co-authored-by: Erin <[email protected]>
Co-authored-by: lizpearl <[email protected]>
Copy link

github-actions bot commented Oct 7, 2025

🥳 Successfully deployed to developer sandbox dg.

Copy link

github-actions bot commented Oct 9, 2025

🥳 Successfully deployed to developer sandbox dg.

@DaisyGuti DaisyGuti moved this to 👀 In review in .gov Product Board Oct 15, 2025
Copy link
Contributor

@Katherine-MN Katherine-MN left a comment

Choose a reason for hiding this comment

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

LGTM!

@abe-alam-ecs
Copy link
Contributor

abe-alam-ecs commented Oct 16, 2025

See this slack thread:

Here are some screenshots of my testing in dg. I am confirming with Daisy if I am testing the correct way.... the changes look good, and run locally, but not in Daisy's sandbox. Wondering if there's another ticket that has been pushed up more recently to dg.

Initial (edits made, but not saved on two tabs):
Screenshot 2025-10-16 at 10 34 55 AM (2)

Screenshot 2025-10-16 at 10 36 27 AM (2)

Saved on Tab 1:
Screenshot 2025-10-16 at 10 39 48 AM (2)

Screenshot 2025-10-16 at 10 38 39 AM (2)

Saved on Tab 2:
Screenshot 2025-10-16 at 10 40 07 AM (2)

Screenshot 2025-10-16 at 10 40 42 AM (2)

Copy link
Contributor

@abe-alam-ecs abe-alam-ecs left a comment

Choose a reason for hiding this comment

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

I checked the code and also pulled Daisy's branch locally to test. Please see my comment here.

To prevent being a blocker for Daisy further, I will be approving this PR as I suspect another PR was pushed to getgov-dg while I was out of office.

Here are screenshots of local testing:

Image Image

See my previous comment & review for testing of non-admin. The code has not changed there significantly. LGTM.

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

Labels

design-review dev ticket needing design review dev issue is for the dev team

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Approved domains have requests that aren't in the approved state

9 participants