Skip to content

Fe 44 api wrapper#49

Open
Hagar-Usama wants to merge 4 commits intostagingfrom
fe-44-API-Wrapper
Open

Fe 44 api wrapper#49
Hagar-Usama wants to merge 4 commits intostagingfrom
fe-44-API-Wrapper

Conversation

@Hagar-Usama
Copy link
Copy Markdown
Contributor

@Hagar-Usama Hagar-Usama commented Oct 13, 2020

Closes #44

Copy link
Copy Markdown
Collaborator

@shakram02 shakram02 left a comment

Choose a reason for hiding this comment

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

Thanks, great job.

please don't forget to remove commented code.

I'm requesting changes mainly for the filename comment.

Comment thread src/components/grader/CourseSelector.js Outdated
Comment thread src/components/grader/DownloadResult.js Outdated
Comment thread src/components/grader/DownloadResult.js Outdated
Comment thread src/components/grader/Grader.js Outdated
Comment thread src/services/GradingService.js Outdated
Comment thread src/request.js
Comment thread src/services/GradingService.js
@Hagar-Usama Hagar-Usama linked an issue Oct 13, 2020 that may be closed by this pull request
@Hagar-Usama Hagar-Usama requested a review from shakram02 October 13, 2020 21:31
Comment thread .vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
} No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this file meant to be included in the commit?

function downloadFile() {
GradingService
.downloadResults(props.course, props.lab).then(res => {
fileDownload(res, "results" + new Date().valueOf() + ".zip");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this name should have an _ separator (between results and the timestamp). but that's not a major thing

Comment on lines +93 to +95
clientId="653543257974-p3uuv08hcftdhkolqpl2hpbbta2d1ck2.apps.googleusercontent.com"
scope="https://www.googleapis.com/auth/spreadsheets.readonly https://www.googleapis.com/auth/drive.readonly"
render={renderProps => (
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this a specific key for the application? is it okay if anyone can use this id?

if it's okay then leave it as is, otherwise it should be moved to an environment variable

@amohamed97 amohamed97 mentioned this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Wrapper

3 participants