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: remove getAvailableIntegrations and start using the other call we already do #6144

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

Conversation

khendrikse
Copy link
Contributor

@khendrikse khendrikse commented Mar 19, 2025

We merge extensions that come from our extension API and from the netlify config. For some reason we were still calling an old endpoint to get extensions from our API again.

I've removed the call to the old endpoint and am using the extensions we already fetched.

I think this logic was there because we tried to support installing extensions from within the netlify.toml. But we do not have that documented, nor do we currently support it.

Check old issue: https://github.com/netlify/pod-composable-tooling/issues/269

🎉 Thanks for submitting a pull request! 🎉

Summary

Fixes #<replace_with_issue_number>


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@khendrikse khendrikse requested a review from a team as a code owner March 19, 2025 12:32
@khendrikse khendrikse force-pushed the cpla-2605/remove-get-available-integrations branch from a6b005f to b3df094 Compare March 19, 2025 12:40
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

Copy link
Contributor

@serhalp serhalp left a comment

Choose a reason for hiding this comment

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

LGTM

You probably want to change from chore: to fix: btw.

@@ -62,8 +53,9 @@ export const mergeIntegrations = async function ({

return {
slug: integration.slug,
version: integration.hostSiteUrl,
Copy link
Contributor

Choose a reason for hiding this comment

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

🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@serhalp wait gimme more info

Copy link
Contributor

Choose a reason for hiding this comment

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

Just confused about previously setting a field called "version" to a URL!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah it's called 'version' because it's the site version

@khendrikse khendrikse changed the title chore: remove getAvailableIntegrations and start using the other call we already do fix: remove getAvailableIntegrations and start using the other call we already do Mar 19, 2025
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

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.

3 participants