Skip to content

fix: user office experiment safety document disables - #1228

Closed
yoganandaness wants to merge 28 commits into
developfrom
SWAP-4928-user-office-experiment-safety-document-disables
Closed

fix: user office experiment safety document disables#1228
yoganandaness wants to merge 28 commits into
developfrom
SWAP-4928-user-office-experiment-safety-document-disables

Conversation

@yoganandaness

@yoganandaness yoganandaness commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

Description

Fixed refreshing of Exp safety download button visibility by doing request polling of 3 times with delay of 2 seconds each, thereby avoid hard page refresh. Attached Video and Screenshot.

Motivation and Context

When an experiment safety review is approved, the download pdf button should be enabled. Since the status is computed through workflow, it takes some time. Currently, the browser needs to be refreshed to get the visibility of the button. However since this is an inconvenience, request polling has been implemented that fetches the new status and based on the new status, the button visibility is decided

How Has This Been Tested

Manually and attached e2e

Fixes

Avoiding Browser reload

Changes

In the Experiment Safety review summary page, the download button is placed. Instead of window reload, request polling using timeout has been implemented

In addition to the above, the menu has been slightly adjusted, where the experiment safety workflow has been moved next to the Proposal workflow

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@yoganandaness
yoganandaness requested a review from a team as a code owner October 16, 2025 15:47
@yoganandaness
yoganandaness requested review from bashanlam, janosbabik and simonfernandes and removed request for a team October 16, 2025 15:47
@yoganandaness

Copy link
Copy Markdown
Contributor Author
Screenshot 2025-10-16 at 17 48 44

@yoganandaness

Copy link
Copy Markdown
Contributor Author
Screen.Recording.2025-10-16.at.17.50.46.mov

@yoganandaness yoganandaness changed the title Swap 4928 user office experiment safety document disables fix: user office experiment safety document disables Oct 17, 2025

@simonfernandes simonfernandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks good. I assumed this is branched from #1209 and so I skipped over reviewing those profile button changes

@yoganandaness

Copy link
Copy Markdown
Contributor Author

It looks good. I assumed this is branched from #1209 and so I skipped over reviewing those profile button changes

Oh, thanks a lot for noticing @deepaksftc . I will see how i can pop those changes from this PR

@janosbabik

Copy link
Copy Markdown
Contributor

Hi @yoganandaness !
Do you want to try using GraphQL’s subscription operation here instead of polling?

@yoganandaness
yoganandaness marked this pull request as draft October 31, 2025 12:45
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

2 similar comments
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

1 similar comment
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions

github-actions Bot commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

…es' of github.com:UserOfficeProject/user-office-core into SWAP-4928-user-office-experiment-safety-document-disables
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

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.

4 participants