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

Stats Page Support #1224

Merged
merged 4 commits into from
May 19, 2022
Merged

Stats Page Support #1224

merged 4 commits into from
May 19, 2022

Conversation

subdavis
Copy link
Contributor

@subdavis subdavis commented Apr 14, 2022

Summary of changes

Now, individual users can get personalized summaries of the data they have access to. This summary page can be customized to show summaries for...

  1. All datasets to which the user has write access.
  2. All datasets that have been "published"
  3. All datasets that a user has either read or write access to that have been shared.

API Response

Request

GET http://localhost:8010/api/v1/dive_annotation/labels?published=false&shared=false

Response Example

[
  {
    "_id": "Bull",
    "count": 1882,
    "datasets": [
      {
        "id": "62583302bb61f47e1adc5112",
        "name": "20070609_SLAP5808_Orig"
      }
    ]
  },
  {
    "_id": "Fem",
    "count": 11910,
    "datasets": [
      {
        "id": "62583302bb61f47e1adc5112",
        "name": "20070609_SLAP5808_Orig"
      },
      {
        "id": "62583176bb61f47e1adc50d6",
        "name": "20171027.214830.290.029136"
      }
    ]
  },
  {
    "_id": "Groupers_Seabass",
    "count": 1,
    "datasets": [
      {
        "id": "62583176bb61f47e1adc50d6",
        "name": "20171027.214830.290.029136"
      }
    ]
  }
]

Fixes #1158

subdavis and others added 4 commits April 14, 2022 11:00
* add getLabels api call

* add expandable data table for label summaries

* export generate colors

* add chips and designated colors

* add requested changes

* correct router order
@subdavis subdavis requested a review from marySalvi May 11, 2022 19:00
@subdavis
Copy link
Contributor Author

I missed this comment: #1239 (comment)

Is that still an issue? It should be resolved before merge. I'll look at it soon.

@marySalvi
Copy link
Collaborator

Yes, sorry I thought it was intentionally ignored.

@subdavis subdavis merged commit 38a639e into main May 19, 2022
@subdavis subdavis deleted the stats-page branch May 19, 2022 17:47
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.

Re-add Statistics Panel in Web Version
2 participants