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

[WIP] Institutional Dashboard User Metrics Endpoint #10712

Conversation

Johnetordoff
Copy link
Contributor

@Johnetordoff Johnetordoff commented Aug 22, 2024

Purpose

To show the viability of certain BE features of the institutional dashboard

Changes

  • Makes a new InstitutionDashboardUserList that will display user info for the dashboard
  • Adds various queries for user institution data
  • add tests

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

John Tordoff added 3 commits April 17, 2024 14:14
…rOpenScience/osf.io into institutional-dashboard

* 'institutional-dashboard' of https://github.com/CenterForOpenScience/osf.io:
  WIP

# Conflicts:
#	api/institutions/views.py
#	api_tests/institutions/views/test_institution_dashboard_user.py
@Johnetordoff Johnetordoff changed the title WIP [WIP] Institutional Dashboard POC BE Aug 22, 2024
…rOpenScience/osf.io into institutional-dashboard

* 'institutional-dashboard' of https://github.com/CenterForOpenScience/osf.io:
  WIP

# Conflicts:
#	api/institutions/views.py
#	api_tests/institutions/views/test_institution_dashboard_user.py
@@ -6,12 +6,14 @@ class MetricsCSVRenderer(CSVRenderer):
CSVRenderer with updated render method to export `data` dictionary of API Response to CSV
"""

def render(self, data, media_type=None, renderer_context={}, writer_opts=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was having problems with this being a mutable argument.

@Johnetordoff Johnetordoff force-pushed the institutional-dashboard branch 2 times, most recently from c93701c to a74e06b Compare August 22, 2024 12:34
John Tordoff added 2 commits August 22, 2024 08:37
 into institutional-dashboard

* 'develop' of https://github.com/CenterForOpenScience/osf.io: (41 commits)
  Hotfixes for: double-encoded urls + dep upgrades
  fixed docker-compose requirements for local setups with venv inside project root (CenterForOpenScience#10697)
  use correct version of module for metrics
  update Dockerfile for recent lints
  remove deprecated version stanza from docker-composes
  update reqs to pull from github commit shas
  correct body location for api.ia POST requests
  update dataverse dep revision to get changes
  Update CHANGELOG, bump version
  [CR][ENG-5681] Great Big Python Upgrade (CenterForOpenScience#10648)
  Revert "[ENG-3685] Add permissions for withdrawn registration files (CenterForOpenScience#10650)" (CenterForOpenScience#10666)
  Check Registration READ perms on the Registration - Do not record download metrics for renders
  Fix signature
  Allow DOI metadata updates to be queued
  [ENG-3685] Add permissions for withdrawn registration files (CenterForOpenScience#10650)
  Update CHANGELOG, bump version
  [ENG-5030] Preprints Phase 2 - BE (CenterForOpenScience#10617)
  Update CHANGELOG, bump version
  Ensure Assumed-HAM users do not get autobanned
  [ENG-5762] Get GV set up in osf docker configs (CenterForOpenScience#10643)
  ...

# Conflicts:
#	api/users/serializers.py
#	conftest.py
@Johnetordoff Johnetordoff force-pushed the institutional-dashboard branch 8 times, most recently from 456b66d to 5df26a5 Compare August 22, 2024 17:58
@Johnetordoff Johnetordoff changed the title [WIP] Institutional Dashboard POC BE [WIP] Institutional Dashboard User Metrics Endpoint Aug 22, 2024
…rOpenScience/osf.io into institutional-dashboard

* 'institutional-dashboard' of https://github.com/CenterForOpenScience/osf.io:

# Conflicts:
#	api/institutions/views.py
#	api_tests/institutions/views/test_institution_dashboard_user.py
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.

1 participant