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

Add support for the openfoodfacts-events API (leaderboard, badge and gamification system) #349

Closed
1 task
Tracked by #33
teolemon opened this issue Dec 30, 2021 · 3 comments · Fixed by #386
Closed
1 task
Tracked by #33
Assignees

Comments

@teolemon
Copy link
Member

teolemon commented Dec 30, 2021

What

Why

@jasmeet0817
Copy link
Contributor

Yeah, i plan to retake this one up but someone in mid January, anyways i think this lower priority than some of the other stuff

@teolemon
Copy link
Member Author

Did you start working on any of the API routes, or is that something a community member could start working on for the DART package potentially ?

@teolemon teolemon changed the title Add support for the event badge and gamification system Add support for the openfoodfacts-events API (leaderboard, badge and gamification system) Jan 11, 2022
@teolemon
Copy link
Member Author

I clarified that there's no code dependancy between the 2 in the initial issue. If a community member would like to pick it up, so that we can demo getting one badge (image taking) and showing it in Smoothie, at the Fellowship wrapup event, that would be great.

@monsieurtanuki monsieurtanuki self-assigned this Feb 14, 2022
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Feb 15, 2022
New files:
* `api_events_test.dart`: Tests around Events API.
* `BadgeBase.dart`: Events API: badge.
* `BadgeBase.g.dart`: generated
* `EventCreate.dart`: Events API: event create.
* `EventCreate.g.dart`: generated
* `events.dart`: Client calls of the Events API (Open Food Facts).
* `EventsBase.dart`: Events API: event.
* `EventsBase.g.dart`: generated
* `LeaderboardEntry.dart`: Events API: leaderboard entry.
* `LeaderboardEntry.g.dart`: generated

Impacted files:
* `JsonHelper.dart`: added a nullable timestamp conversion method.
* `OpenFoodAPIConfiguration.dart`: added host entries for Events API.
* `openfoodfacts.dart`: exported new Events related files.
* `UriHelper.dart`: added Events related method `getEventsUri`.
monsieurtanuki added a commit that referenced this issue Feb 15, 2022
New files:
* `api_events_test.dart`: Tests around Events API.
* `BadgeBase.dart`: Events API: badge.
* `BadgeBase.g.dart`: generated
* `EventCreate.dart`: Events API: event create.
* `EventCreate.g.dart`: generated
* `events.dart`: Client calls of the Events API (Open Food Facts).
* `EventsBase.dart`: Events API: event.
* `EventsBase.g.dart`: generated
* `LeaderboardEntry.dart`: Events API: leaderboard entry.
* `LeaderboardEntry.g.dart`: generated

Impacted files:
* `JsonHelper.dart`: added a nullable timestamp conversion method.
* `OpenFoodAPIConfiguration.dart`: added host entries for Events API.
* `openfoodfacts.dart`: exported new Events related files.
* `UriHelper.dart`: added Events related method `getEventsUri`.
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Mar 30, 2022
…d methods

Deleted files:
* `EventCreate.dart`
* `EventCreate.g.dart`

Impacted files:
* `api_events_test.dart`: removed commented code around `createEvent`
* `events.dart`: removed method `createEvent`
* `openfoodfacts.dart`: removed export of `EventCreate`
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Mar 30, 2022
Impacted file:
* `api_getRobotoff_test.dart`: unrelated robotoff result upgrade
monsieurtanuki added a commit that referenced this issue Mar 30, 2022
Deleted files:
* `EventCreate.dart`
* `EventCreate.g.dart`

Impacted files:
* `api_events_test.dart`: removed commented code around `createEvent`
* `api_getRobotoff_test.dart`: unrelated robotoff result upgrade
* `events.dart`: removed method `createEvent`
* `openfoodfacts.dart`: removed export of `EventCreate`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants