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

Fixes #1466 - Limit display to a configurable number of resources #1488

Merged
merged 7 commits into from
Mar 10, 2023

Conversation

jonespm
Copy link
Member

@jonespm jonespm commented Mar 3, 2023

Display this limit to the user

I've tested this locally, I need to test if the header works with CORS on the server.

I could have also added this metadata to the JSON but that seems like it would have been a little more work changing the format of the JSON and providing this in the header should work good.

Okay I tested this out, looks like it works fine.

@jonespm jonespm marked this pull request as ready for review March 6, 2023 15:26
@jonespm jonespm changed the title Fixes #1466 - Limit to a configurable set of resources Fixes #1466 - Limit display to a configurable number of resources Mar 7, 2023
Copy link
Contributor

@ssciolla ssciolla left a comment

Choose a reason for hiding this comment

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

This looks like it will work. I'll test it next. Let's have a discussion about the globals versus header approach. Your choice may be correct, but I'd like to hear the rationale.

assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
dashboard/settings.py Outdated Show resolved Hide resolved
dashboard/views.py Outdated Show resolved Hide resolved
dashboard/views.py Show resolved Hide resolved
@ssciolla ssciolla added 🪳 bug Something isn't working Frontend ⚙️ backend labels Mar 9, 2023
Co-authored-by: Sam Sciolla <35741256+ssciolla@users.noreply.github.com>
jonespm and others added 3 commits March 10, 2023 14:38
Check if value is set
Change divs to Typography
Fix a few other standard formatting issues
Co-authored-by: Sam Sciolla <35741256+ssciolla@users.noreply.github.com>
@jonespm jonespm requested a review from ssciolla March 10, 2023 19:47
Copy link
Contributor

@ssciolla ssciolla left a comment

Choose a reason for hiding this comment

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

LGTM! Tested and seems to be working as intended.

assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
assets/src/containers/ResourcesAccessed.js Outdated Show resolved Hide resolved
@jonespm jonespm merged commit fad414c into tl-its-umich-edu:master Mar 10, 2023
@jonespm jonespm deleted the issue_1466 branch March 10, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resources Accessed view times out and does not load the bar chart in some courses
2 participants