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

feat/1251: Fetch applications feature flags from registry #1255

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

jurevans
Copy link
Collaborator

@jurevans jurevans commented Nov 13, 2024

Resolves #1251

This PR updates the application features to now be loaded async directly from the registry:

https://github.com/anoma/namada-chain-registry

Example flags to be read:

https://github.com/anoma/namada-chain-registry/blob/b5ac94e0c3e8e091b0668f005d90920fc64b12b1/namadahousefire/chain.json#L14-L21

DEMO

https://namada-interface-dev.netlify.app/staking

  • This is configured for namada-dryrun.abaaeaf7b78cb3ac, but it's good to also point to Housefire to test feature states for that as well

TESTING

  • Run namadillo with yarn dev:proxy - needed to access Github registry (we need to also test this from Netlfiy, I wonder if CORS with Github is an issue there too...)
  • Probably a good idea to delete any local storage, then specify as the indexer - Only Claim Staking should be enabled
  • Delete local storage, point to Housefire Indexer: https://indexer.knowable.run/, reload if necessary, all features should be enabled!
  • Point to a local indexer or devnet that is not in our registry, all features should be enabled

@jurevans jurevans self-assigned this Nov 13, 2024
@jurevans jurevans force-pushed the feat/1251-async-feature-flags branch 3 times, most recently from 3e8a1ea to 342c9a3 Compare November 14, 2024 11:29
@jurevans jurevans marked this pull request as ready for review November 14, 2024 11:29
@jurevans jurevans changed the title WIP - feat/1251: Fetch applications feature flags from registry feat/1251: Fetch applications feature flags from registry Nov 14, 2024
@jurevans jurevans force-pushed the feat/1251-async-feature-flags branch from 342c9a3 to 15d495e Compare November 14, 2024 11:31
@jurevans jurevans force-pushed the feat/1251-async-feature-flags branch from 3a8c753 to 2d0c3fc Compare November 14, 2024 19:40
@jurevans jurevans force-pushed the feat/1251-async-feature-flags branch from 2d0c3fc to 2d6fac3 Compare November 14, 2024 19:47
Copy link
Contributor

@euharrison euharrison left a comment

Choose a reason for hiding this comment

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

awesome!

@jurevans jurevans merged commit cad474e into main Nov 14, 2024
10 checks passed
@jurevans jurevans deleted the feat/1251-async-feature-flags branch November 14, 2024 19:58
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.

Namadillo: Fetch feature flags asynchronously
2 participants