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

Improve 2 achievements to rely on file #348

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Improve 2 achievements to rely on file #348

merged 2 commits into from
Nov 21, 2023

Conversation

pil0u
Copy link
Owner

@pil0u pil0u commented Nov 21, 2023

Summary of changes and context

Transform some ID-based achievements to be linked to a static file.
Removed the users from the 2022 Riddle achievement.

TODO on release: remove the Riddle achievement to people who wrongly unlocked it.

Sanity checks

I ran both achievements locally.

  • Linters pass
  • Tests pass
  • Related GitHub issues are linked in the description

@pil0u pil0u changed the title Prepare for future achievements Improve 2 achievements to rely on file Nov 21, 2023
@pil0u pil0u requested review from Aquaj and wJoenn November 21, 2023 20:18
Copy link
Collaborator

@wJoenn wJoenn left a comment

Choose a reason for hiding this comment

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

Est ce qu'on ferait pas plutot un yml avec chaques achievement comme key et une array d'id plutot ?
Si on a des achievements spéciaux tous les ans j'me dis que ca sera plus simple a gérer

@pil0u
Copy link
Owner Author

pil0u commented Nov 21, 2023

@wJoenn Là c'est plus pour aligner ce type de gestion un peu legacy. Y a sûrement "mieux", mais là ça fait le taf. Si faut refaire un truc ce sera pas dur.

Copy link
Collaborator

@wJoenn wJoenn left a comment

Choose a reason for hiding this comment

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

On pourrait peut etre utiliser soir aoc_id pour les deux soit uid pour les deux mais LGTM

@pil0u
Copy link
Owner Author

pil0u commented Nov 21, 2023

Bien vu, le truc c'est que pour les gens de 2020 je n'ai que l'aoc_id ;)

@pil0u pil0u merged commit 286c2b8 into main Nov 21, 2023
5 checks passed
@pil0u pil0u deleted the fix/achievements branch November 21, 2023 21:49
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.

2 participants