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

refactor: change http-adapter to eager mode #3548

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Conversation

tdeekens
Copy link
Contributor

@tdeekens tdeekens commented Jun 7, 2024

Summary

We've been to lazy and should be more eager.

Description

After a lot of communication and alignment we realized that being eager on the http-adapter helps drive user expectations.

The background is that we toggle functionality through the http-adapter which is generally available to users. Having a "delayed" appearing through a reload for these functionalities is not ideal. It's acceptable for anything which sits behind LaunchDarkly and there has also the benefit to avoid the flicker.

Followings

  1. @CarlosCortizasCT will evaluate the delay waiting for flags would actually cost and if we can globally wait
  2. @tdeekens will investigate if we can integrate our http-adapter query into a more global GraphQL query and hydrate the memory-adapter with it to avoid flash flickering

The general storyline is also to get flopflip ready for React Suspense finally when time permits.

@tdeekens tdeekens self-assigned this Jun 7, 2024
@tdeekens tdeekens requested a review from a team as a code owner June 7, 2024 13:12
Copy link

vercel bot commented Jun 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mc-app-kit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 2:22pm
merchant-center-application-kit-components-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 2:22pm

Copy link

changeset-bot bot commented Jun 7, 2024

🦋 Changeset detected

Latest commit: ed7f8c3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@commercetools-frontend/application-shell Patch
@commercetools-frontend/cypress Patch
@commercetools-applications/merchant-center-template-starter-typescript Patch
@commercetools-applications/merchant-center-template-starter Patch
@commercetools-applications/merchant-center-custom-view-template-starter-typescript Patch
@commercetools-applications/merchant-center-custom-view-template-starter Patch
@commercetools-local/playground Patch
@commercetools-local/visual-testing-app Patch
@commercetools-backend/eslint-config-node Patch
@commercetools-backend/express Patch
@commercetools-backend/loggers Patch
@commercetools-frontend/actions-global Patch
@commercetools-frontend/application-components Patch
@commercetools-frontend/application-config Patch
@commercetools-frontend/application-shell-connectors Patch
@commercetools-frontend/assets Patch
@commercetools-frontend/babel-preset-mc-app Patch
@commercetools-frontend/browser-history Patch
@commercetools-frontend/codemod Patch
@commercetools-frontend/constants Patch
@commercetools-frontend/create-mc-app Patch
@commercetools-frontend/eslint-config-mc-app Patch
@commercetools-frontend/i18n Patch
@commercetools-frontend/jest-preset-mc-app Patch
@commercetools-frontend/jest-stylelint-runner Patch
@commercetools-frontend/l10n Patch
@commercetools-frontend/mc-dev-authentication Patch
@commercetools-frontend/mc-html-template Patch
@commercetools-frontend/mc-scripts Patch
@commercetools-frontend/notifications Patch
@commercetools-frontend/permissions Patch
@commercetools-frontend/react-notifications Patch
@commercetools-frontend/sdk Patch
@commercetools-frontend/sentry Patch
@commercetools-frontend/url-utils Patch
@commercetools-website/components-playground Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@CarlosCortizasCT CarlosCortizasCT left a comment

Choose a reason for hiding this comment

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

Thanks Tobi! 🙇

Copy link

gitstream-cm bot commented Jun 10, 2024

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

Copy link

gitstream-cm bot commented Jun 10, 2024

🥷 Code experts: emmenko

tdeekens, emmenko have most 👩‍💻 activity in the files.
tdeekens, emmenko have most 🧠 knowledge in the files.

See details

packages/application-shell/src/components/setup-flop-flip-provider/setup-flop-flip-provider.tsx

Activity based on git-commit:

tdeekens emmenko
JUN
MAY 12 additions & 2 deletions
APR 5 additions & 2 deletions
MAR 3 additions & 0 deletions 1 additions & 1 deletions
FEB
JAN

Knowledge based on git-blame:
tdeekens: 48%
emmenko: 27%

To learn more about /:\ gitStream - Visit our Docs

@tdeekens tdeekens merged commit 222dd0c into main Jun 10, 2024
22 checks passed
@tdeekens tdeekens deleted the td/eager-for-http-adapter branch June 10, 2024 11:48
@ct-changesets ct-changesets bot mentioned this pull request Jun 10, 2024
ddouglasz pushed a commit that referenced this pull request Jun 17, 2024
* refactor: change http-adapter to eager mode

* Create cold-lemons-whisper.md

* fix: ts-ignore comment position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants