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

Fix extra render when uploading invalid zip file #342

Merged

Conversation

sibinhho99
Copy link
Collaborator

@sibinhho99 sibinhho99 commented Oct 1, 2023

Description

Related Issue

#343

Motivation and Context

Small bug which causes internal error when uploading invalid zip file instead of returning error message to the client

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@sibinhho99 sibinhho99 added the Type: Bug A problem with existing functionality label Oct 1, 2023
@sibinhho99 sibinhho99 self-assigned this Oct 1, 2023
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 0.198%. remained the same when pulling a3c6b63 on sibinhho99:api into 44cf9f5 on WING-NUS:feature/ssid_coursemology_integration.

@sibinhho99 sibinhho99 linked an issue Oct 1, 2023 that may be closed by this pull request
2 tasks
@sibinhho99 sibinhho99 merged commit d6a720f into WING-NUS:feature/ssid_coursemology_integration Oct 1, 2023
2 of 3 checks passed
sibinhho99 added a commit that referenced this pull request Oct 1, 2023
sibinhho99 added a commit that referenced this pull request Oct 1, 2023
@sibinhho99
Copy link
Collaborator Author

Superseded by #345

huyuxin0429 pushed a commit that referenced this pull request Oct 22, 2023
* Fix extra render when uploading invalid zip file
huyuxin0429 pushed a commit that referenced this pull request Oct 22, 2023
huyuxin0429 pushed a commit that referenced this pull request Jan 15, 2024
* Adds POST route for creating new assignments via API (#338)

* Add API key and sample GET and POST

* Implement POST API route for creating assignments

* Add API key authentication handler

* Run rubocop on assignments_controller

* Reduce linter-flagged issues

* Add API Phase 1 documentation (#336)

* Add API Phase 1 documentation

* Api/sub sim (#331)

* Added API for GET all submission similarities of an assignment

* Fix extra render when uploading invalid zip file (#342)

* Fix extra render when uploading invalid zip file

* Revert "Fix extra render when uploading invalid zip file (#342)" (#344)

This reverts commit d6a720f.

* Fix extra render when uploading invalid zip file

* Add API route for GET Pair of flagged submission details (#341)

* Add tests and bug fixes for api/v1/submission_similarities index and show

* Add RSpec tests for POST /api/v1/courses/{course_id}/assignment/

* Update similarity percentage format it doc

* Remove unused files and routes

* Update/ Clarify API doc

* added pagination

* added to use the will_paginate gem

* Added such that limit has higher precedence over pagination

---------

Co-authored-by: sibinhho99 <sibinhho99@gmail.com>
Co-authored-by: florentianayuwono <76247368+florentianayuwono@users.noreply.github.com>
@huyuxin0429 huyuxin0429 mentioned this pull request Jan 15, 2024
6 tasks
huyuxin0429 added a commit that referenced this pull request Jan 15, 2024
* Adds POST route for creating new assignments via API (#338)

* Add API key and sample GET and POST

* Implement POST API route for creating assignments

* Add API key authentication handler

* Run rubocop on assignments_controller

* Reduce linter-flagged issues

* Add API Phase 1 documentation (#336)

* Add API Phase 1 documentation

* Api/sub sim (#331)

* Added API for GET all submission similarities of an assignment

* Fix extra render when uploading invalid zip file (#342)

* Fix extra render when uploading invalid zip file

* Revert "Fix extra render when uploading invalid zip file (#342)" (#344)

This reverts commit d6a720f.

* Fix extra render when uploading invalid zip file

* Add API route for GET Pair of flagged submission details (#341)

* Add tests and bug fixes for api/v1/submission_similarities index and show

* Add RSpec tests for POST /api/v1/courses/{course_id}/assignment/

* Update similarity percentage format it doc

* Remove unused files and routes

* Update/ Clarify API doc

* added pagination

* added to use the will_paginate gem

* Added such that limit has higher precedence over pagination

---------

Co-authored-by: Michael Gau <61722401+mengyewgau@users.noreply.github.com>
Co-authored-by: sibinhho99 <sibinhho99@gmail.com>
Co-authored-by: florentianayuwono <76247368+florentianayuwono@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug A problem with existing functionality
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

🐛 Error when uploading invalid zip file via API
2 participants