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

🚀 Feature: Store Algolia Config in Source Code #27562

Open
2 tasks done
aramissennyeydd opened this issue Nov 8, 2024 · 3 comments
Open
2 tasks done

🚀 Feature: Store Algolia Config in Source Code #27562

aramissennyeydd opened this issue Nov 8, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@aramissennyeydd
Copy link
Contributor

🔖 Feature description

Currently, the config is stored in crawler.algolia.com/.../configuration/edit. There are some limitations there:

  1. Algolia expects a single constructor as the content of the editor, you can't easily separate out functions + other things.
  2. Changes are questionably versioned.
  3. Requires Admin access to make changes.

🎤 Context

Make it easier to make changes to the Algolia config.

✌️ Possible Implementation

Following this, we could explore inverting control of page rank + other algolia parameters to be part of each docs' front matter.

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

@aramissennyeydd aramissennyeydd added the enhancement New feature or request label Nov 8, 2024
@jhaals
Copy link
Member

jhaals commented Nov 11, 2024

Sounds good to have this in code instead of the UI 👍 Is there a guide on how to migrate?

@aramissennyeydd
Copy link
Contributor Author

@jhaals It looks like we'd need to use the https://www.algolia.com/doc/rest-api/crawler/#tag/config/operation/patchConfig API to update the configuration. I don't see a full guide on a migration though.

@jhaals
Copy link
Member

jhaals commented Nov 20, 2024

Oh I see. In that case I think we need to craft a github action that push changes as they come in. A bit limited on capacity to work on this and to my knowledge we only changed the ranking like once or twice in the last three years. Is there something that should be changed now? Happy to dump the config we have now and do a manual update if there are something specific that should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants