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

PHNX-2108: Get data for row-content for quizzes #243

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

prajapac
Copy link
Contributor

@prajapac prajapac commented Oct 23, 2024

JIRA Link: PHNX-2108

This PR adds a Quizzes.viewSubmissionResults Rel (https://quizzes.api.brightspace.com/rels/view-quiz-submission-results). This is added for explicitly differentiating the submissionLink in the actor-quiz-attempt-activity-provider (vs. just looking for the relative-uri sub-entity), see related PRs below.

Related PRs

@prajapac prajapac requested review from a team, GurpinderSandhu and jreardon-smith and removed request for a team October 23, 2024 17:33
@prajapac prajapac marked this pull request as ready for review October 23, 2024 18:41
@prajapac prajapac requested a review from a team as a code owner October 23, 2024 18:41
@prajapac prajapac requested review from jstefaniuk-d2l, mariellemanlulu and cgordon-d2l and removed request for a team October 23, 2024 18:41
index.js Outdated
@@ -216,7 +216,8 @@ export const Rels = {
quiz: 'https://quizzes.api.brightspace.com/rels/quiz',
section: 'https://quizzes.api.brightspace.com/rels/quiz-section',
studyRecommendations: 'https://quizzes.api.brightspace.com/rels/studyRecommendations',
timing: 'https://quizzes.api.brightspace.com/rels/timing'
timing: 'https://quizzes.api.brightspace.com/rels/timing',
viewSubmissionResults: 'https://quizzes.api.brightspace.com/rels/view-quiz-submission-results'

Choose a reason for hiding this comment

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

submission is an interesting language choice here, is there a reason we are using that instead of say viewAttemptResults.

I also don't think we need to use the word quiz in-between view and submission, we are already in the Quiz subdomain.

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 named it that way to be consistent with the other consts, which generally seem to match the end of the url route, e.g. questionPool for https://quizzes.api.brightspace.com/rels/quiz-question-pool etc. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After offline discussion, we decided to name the rel const to viewQuizSubmissionResults for consistency

@prajapac prajapac merged commit cd921e4 into master Oct 29, 2024
1 check passed
@prajapac prajapac deleted the cprajapati/PHNX-2108 branch October 29, 2024 20:38
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.

5 participants