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

update notifications string key naming #181

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

aforaleka
Copy link
Contributor

remove the extra NOTIFICATIONS. prefix by updating the codegen script, matching tooltips

Copy link

vercel bot commented Nov 28, 2023

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

Name Status Preview Comments Updated (UTC)
v4-localization ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2023 10:13pm

Copy link
Contributor

@ruixhuang ruixhuang left a comment

Choose a reason for hiding this comment

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

This is going to break existing deployment since Abacus uses old strings:

https://github.com/dydxprotocol/v4-abacus/blob/df7c7e7eb98a6cb01084949b2282300d9b18e59d/src/commonMain/kotlin/exchange.dydx.abacus/state/manager/NotificationsProvider.kt#L202

How about keeping the existing json, and adding the new ones without the "NOTIFICATIONS" root? This way, old deployment can still work, and we can delete the old json content after updating Abacus.

@jaredvu
Copy link
Contributor

jaredvu commented Nov 28, 2023

@ruixhuang The current notification stringKeys that the script generates is NOTIFICATIONS.NOTIFICATIONS.___. I'm not so sure that Aleka's fix would affect the string in Abacus.

@aforaleka aforaleka merged commit 56c9ea0 into main Nov 28, 2023
2 checks passed
@aforaleka aforaleka deleted the remove-notifications-prefix-from-string-key branch November 28, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants