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

[Fix][Environments][Algolia Plugin] SUPP-298 Added safety check so that sync-to-algolia does not appear in an env's model #2959

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

murtaza-builder
Copy link
Contributor

Added safety check so that sync-to-algolia button does not appear, in an env's model so that changes of mixup dont arise.

…at sync-to-algolia does not appear in an env's model
Copy link

changeset-bot bot commented Jan 27, 2024

⚠️ No Changeset found

Latest commit: f11baf2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented Jan 27, 2024

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

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
nextjs-sdk-example ⬜️ Ignored (Inspect) Visit Preview Jan 31, 2024 5:02pm
qwik-city-sdk-example ⬜️ Ignored (Inspect) Visit Preview Jan 31, 2024 5:02pm
svelte-vite-example ⬜️ Ignored (Inspect) Visit Preview Jan 31, 2024 5:02pm

@@ -1,6 +1,6 @@
{
"name": "@builder.io/plugin-algolia",
"version": "0.0.5",
"version": "0.0.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not change the version directly here.

Generally, we run publish commands present in package.json file, which do these changes automatically. Also, we publish patch and above versions, only after we verify the fix with dev version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shyam-builder Need your thoughts in this specific change. Is it fine if disable syncing models to algolia if we are in an env? Basically somewht disabling plugins from an env.
wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why we would want to disable? I can see customers wanting to finish translation and all in a lower environment and push it up.

Copy link
Contributor

Choose a reason for hiding this comment

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

Specifically what breaks from an environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the installation and usage of plugin happens in same env/space its not a problem but if installation is done in main space and the usage (webhook url syncing) is done in env, it messes up the webhook url params.
Which could lead to confusion and improper working. Happened in SUPP-298.

Thus it would be better if plugins work in main space only

@murtaza-builder murtaza-builder marked this pull request as draft February 1, 2024 17:42
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.

None yet

3 participants