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

Issue/react-cay #1390

Merged

Conversation

cayb0rg
Copy link
Contributor

@cayb0rg cayb0rg commented Jun 30, 2022

No description provided.

Copy link
Member

@clpetersonucf clpetersonucf left a comment

Choose a reason for hiding this comment

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

I've been working on actually viewing each of the new pages/components in context in the application, and am running into a few cases where values are missing or incorrect. Understandably a lot of these are edge case views to begin with. The requested changes here probably aren't comprehensive yet - I'll add more feedback as I go.

fuel/app/classes/controller/widgets.php Outdated Show resolved Hide resolved
src/components/draft-not-playable.jsx Outdated Show resolved Hide resolved
src/components/scores.jsx Outdated Show resolved Hide resolved
src/components/widget-summary.jsx Outdated Show resolved Hide resolved
src/util/api.js Outdated
return fetch('/api/json/question_set_get/', fetchOptions({ body: `data=${formatFetchBody([instId, playId])}` }))
.then(qset => qset.json())
}

export const apiGetQuestionSetHistory = (instId) => {
return fetch('/api/instance/history', fetchOptions({ body: `data=${formatFetchBody([instId])}` }))
Copy link
Member

Choose a reason for hiding this comment

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

I can understand the confusion with the API calls, but this is using the formatting required for the old (v1) API: those hitting /api/json/xxx. Newer API endpoints are added within the requisite controllers, in this case controllers/api/instance.php. This particular request is formatted for v1, which requires everything to be POST - but the instance API controller is expecting this particular call to be a GET request. It currently 405s.

Copy link
Member

@clpetersonucf clpetersonucf left a comment

Choose a reason for hiding this comment

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

There are additional changes to be made to some of these files but for the most part, aside from a few edge cases that are outside the scope of this PR, it's functional. I'm going to approve and merge into the main react branch prior to making additional tweaks.

@clpetersonucf clpetersonucf merged commit b6c9116 into ucfopen:issue/support-dashboard-in-react Jul 19, 2022
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.

2 participants