Skip to content
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

Marketing Dashboard and Program Detail Optimization by adding the Content Fragment Path #165

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

getAllCampaigns for Program List
executeQuery for Program Details
…page, which now is passed to the graphql query getProgramDetails which now has the path parameter

query ($programName: String, $programID:String, $path:ID)
…query string

- Corrected the `extractQueryVars` function to properly handle and return the correct value for `programName`, ensuring that the `+` character is not mistakenly replaced with a space.
- Updated the construction of `programQueryString` to include the `path` parameter only if `encodedPath` is not an empty string.
- These changes improve the accuracy of parameter handling and optimize the query string construction process.
@TyroneAEM TyroneAEM requested a review from shiv-gup August 26, 2024 19:40
Copy link

aem-code-sync bot commented Aug 26, 2024

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

scripts/graphql.js Outdated Show resolved Hide resolved
scripts/graphql.js Outdated Show resolved Hide resolved
…e performance

- Replaced array-based caching with an object-based caching system using a combination of `programName`, `campaignName`, and `deliverableType` as the cache key.
- Updated the `addThumbnailToItem` function to utilize the new caching mechanism, reducing redundant API calls.
- Converted the outer loop from `forEach` to `for...of` to ensure proper handling of asynchronous operations and to support the sequential execution of `await` calls.
Fixed Merge Conflicts
# Conflicts:
#	blocks/gmo-program-details/gmo-program-details.js
#	scripts/program-calendar.js

Added Thumbnail caching to blocks/gmo-program-details/gmo-program-details.js
Deleted file  scripts/program-calendar.js
- Modified the cache key generation logic to only include campaignName if it is not null or an empty string.
@shiv-gup shiv-gup merged commit 1b8f106 into assets-72024 Aug 29, 2024
0 of 2 checks passed
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.

2 participants