• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MarkUsProject / Markus / 8031400082
92%

Build:
DEFAULT BRANCH: master
Ran 24 Feb 2024 03:29PM UTC
Jobs 2
Files 584
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Feb 2024 03:07PM UTC coverage: 91.748%. Remained the same
8031400082

push

github

web-flow
Fix Bug in Updating Assignments (#6962)

* fix-assignment-destroy-bug

Due to the nesting of button_to into form_for, in the generated HTML, Rails included two hidden _method attributes -the first being 'put' for form_for and the second being 'delete' for button_to-, and (by default behaviours) priority was given to the second definition, so when trying to update an assignment, Rails automatically tried to destroy it! Nesting the button_to helper into the form_for helper is by definition wrong, since HTML does not allow for nested forms (and both of these helpers generate forms), so the behavior of doing this is undefined. To fix, I took the button_to declaration out, so it is no longer nested inside form_for.

* Delete functionality for peer-review assessments.

Turns out that, when editing an assessment, a different partial (peer_review_form) is rendered if the assessment is of type peer-review, so I added the new delete button (currently found only in the _edit partial) to that partial as well. Not sure if it is worth it to extract this button definition into a different partial and reuse it.

* Fix problem with missing flash message

In the context of deleting an assignment, the green flash for informing the user that the assignment was successfully deleted works as expected except in one scenario: if the assignment was just created. That is, if you create a new assignment adn then on the spot (i.e. without leaving the edit page) try to delete, it will delete successfuly but the green flash message will not show. I think this has something to do with how flash messages work in Rails deep down, but could not figure exactly the cause. The added line removes the :success key of the flash so it can start fresh with the flash responder.

422 of 1082 branches covered (39.0%)

Branch coverage included in aggregate %.

39027 of 41915 relevant lines covered (93.11%)

108.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 rspec - 8031400082.1 24 Feb 2024 03:29PM UTC 0
94.83
GitHub Action Run
2 jest - 8031400082.2 24 Feb 2024 03:30PM UTC 0
57.95
GitHub Action Run
Source Files on build 8031400082
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8031400082
  • b6208ecc on github
  • Prev Build on master (#7950051800)
  • Next Build on master (#8043034268)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc