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 stats to group response #92

Open
noctera opened this issue Sep 24, 2022 · 2 comments
Open

Add stats to group response #92

noctera opened this issue Sep 24, 2022 · 2 comments
Assignees
Labels
difficulty/medium hacktoberfest kind/api kind/docs Improvements or additions to documentation kind/enhancement New feature or request priority/medium
Milestone

Comments

@noctera
Copy link
Member

noctera commented Sep 24, 2022

We have get routes for language packages and groups
GET: /api/languagePackage
GET: /api/languagePackage/{languagePackageId}/group
which return information about all the existing language packages and groups.

While the language package route as an optional stats parameter that allows adding stats about the existing vocabs

"stats": {
      "vocabularies": {
        "all": 0,
        "active": 0,
        "inactive": 0,
        "unresolved": 0,
        "unactivated": 0,
        "learnedToday": {
          "dueToday": 0,
          "correct": 0,
          "wrong": 0
        }
      }
    }

the group route does not have such.
In order to show stats in the group tag of the library, we have to add

  1. stats in the group route
    image

  2. and to the included groups in the language package route.
    image

@noctera noctera added kind/enhancement New feature or request kind/docs Improvements or additions to documentation kind/api difficulty/medium priority/medium labels Sep 24, 2022
@noctera noctera moved this to 🗒️ ToDo in Todo Sep 24, 2022
@noctera noctera added this to Todo Sep 24, 2022
@noctera noctera added this to the v1.4.0 milestone Sep 25, 2022
@tintinthong
Copy link

Hello, I would like to take on this issue for hacktoberfest. Is that ok??

@noctera
Copy link
Member Author

noctera commented Sep 28, 2022

Yes, I will assign you

@noctera noctera assigned noctera and tintinthong and unassigned noctera Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium hacktoberfest kind/api kind/docs Improvements or additions to documentation kind/enhancement New feature or request priority/medium
Projects
Status: 🗒️ ToDo
Development

No branches or pull requests

2 participants