Skip to content

Revert "[POC] Changes to optimise the upload time for acrobat" - #794

Open
arugupta1992 wants to merge 10 commits into
stagefrom
revert-790-directUploadNopoll
Open

Revert "[POC] Changes to optimise the upload time for acrobat"#794
arugupta1992 wants to merge 10 commits into
stagefrom
revert-790-directUploadNopoll

Conversation

@arugupta1992

Copy link
Copy Markdown
Collaborator

Reverts #790

sanjayms01 and others added 9 commits May 22, 2026 15:41
…upy upload container (#775)

Resolves: [MWPW-194869](https://jira.corp.adobe.com/browse/MWPW-194869)

**Test URLs:**
- Before:
https://main--da-cc--adobecom.aem.live/drafts/arugupta/image-to-video/doodlebug/image-to-video-actual?unitylibs=stage
- After:
https://main--da-cc--adobecom.aem.live/drafts/arugupta/image-to-video/doodlebug/image-to-video-actual?unitylibs=MWPW-194869

---------

Co-authored-by: Arushi Gupta <[email protected]>
Co-authored-by: Sanjay Saravanan <[email protected]>
Co-authored-by: Vipul Gupta <[email protected]>
Co-authored-by: vipulg <[email protected]>
Co-authored-by: Nishant Thakur <[email protected]>
Co-authored-by: Ratko Zagorac <[email protected]>
Co-authored-by: Ruchika Sinha <[email protected]>
Co-authored-by: Manasvi Agrawal <[email protected]>
…778)

* Fix delay with config-based A/B testing api initiation

Resolves: [MWPW-194995(https://jira.corp.adobe.com/browse/MWPW-194995)

**Test URLs:**
- Before:
https://stage--da-dc--adobecom.aem.page/acrobat/online/compress-pdf?martech=off&unitylibs=stage
- After:
https://stage--da-dc--adobecom.aem.page/acrobat/online/compress-pdf?martech=off&unitylibs=target-test

**Implementation details:**
`this.pageConfigPromise = null (line 189)` initializes the field so it's
always defined on the instance.
`this.pageConfigPromise = this.ensurePageConfig() `(line 792, inside
initActionListeners when b === this.block) fires the fetch the moment
the verb-widget finishes rendering (for performance reasons), no await
so it doesn't block listener setup. The promise is stored so it can be
joined later.
`await (this.pageConfigPromise || this.ensurePageConfig()) `(line 580,
in handleFileUpload) if the widget has rendered (normal path), we await
the already in flight or resolved promise; if somehow pageConfigPromise
is null (edge case: upload triggered before initActionListeners ran with
the block), we fall back to calling it directly. The existing
pageConfigFetched guard inside ensurePageConfig still prevents double
execution.

---------

Co-authored-by: Arushi Gupta <[email protected]>
Co-authored-by: Arushi Gupta <[email protected]>
Co-authored-by: Sanjay Saravanan <[email protected]>
Co-authored-by: Vipul Gupta <[email protected]>
Co-authored-by: vipulg <[email protected]>
Co-authored-by: Nishant Thakur <[email protected]>
Co-authored-by: Ratko Zagorac <[email protected]>
Co-authored-by: Manasvi Agrawal <[email protected]>
<!-- Before submitting, please review all open PRs. -->

* Add your
* Specific
* Features or fixes

Resolves: [MWPW-NUMBER](https://jira.corp.adobe.com/browse/MWPW-NUMBER)

**Test URLs:**
- Before: https://main--unity--adobecom.aem.page/?martech=off
- After: https://<branch>--unity--adobecom.aem.page/?martech=off

---------

Co-authored-by: Ruchika Sinha <[email protected]>
<!-- Before submitting, please review all open PRs. -->

* Add your
* Specific
* Features or fixes

Resolves: [MWPW-NUMBER](https://jira.corp.adobe.com/browse/MWPW-NUMBER)

**Test URLs:**
- Before: https://main--unity--adobecom.aem.page/?martech=off
- After: https://<branch>--unity--adobecom.aem.page/?martech=off

---------

Co-authored-by: Ruchika Sinha <[email protected]>
Co-authored-by: Ruchika Sinha <[email protected]>
Co-authored-by: Sanjay Saravanan <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: Arushi Gupta <[email protected]>
Reverts #787

Co-authored-by: Ruchika Sinha <[email protected]>
@aem-code-sync

aem-code-sync Bot commented May 28, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

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.

3 participants