Fish Trophy

brennie got a fish trophy!

Fish Trophy

Set the correct root URL in RB.TextBasedReviewableView

Review Request #10701 — Created Sept. 7, 2019 and submitted

Information

Review Board
master

Reviewers

The RB.TextBasedReviewableView was using an incorrect root path
Instead of just being the path relative to the FQDN, it was using the
entire URL. This resulted in Backbone never matching URLs since it was
trying to match fragments against full URLs. The view would then be
stuck in the rendered view mode at all times.

Verified that the TextBasedReviewableView can switch between rendered
and source modes on Python 2.7, 3.5, 3.6, and 3.7.

Summary ID Author
Set the correct root URL in RB.TextBasedReviewableView
The `RB.TextBasedReviewableView` was using an incorrect root path Instead of just being the path relative to the FQDN, it was using the entire URL. This resulted in Backbone never matching URLs since it was trying to match fragments against full URLs. The view would then be stuck in the rendered view mode at all times. Testing done: - Verified that the TextBasedReviewableView can switch between rendered and source modes on Python 2.7, 3.5, 3.6, and 3.7. - Ran JS tests.
f9faaaa2f8144b6c7f4f43ea4b9ed8bd6d53ee19 Barret Rennie
Description From Last Updated

Good opportunity to add a unit test :)

chipx86chipx86

Can you pull the this.model.get('fileAttachmentID') out into its own variable? I don't mind template literals but they're a lot easier …

chipx86chipx86

Col: 67 Missing semicolon.

reviewbotreviewbot

Col: 42 Missing semicolon.

reviewbotreviewbot

Col: 67 Missing semicolon.

reviewbotreviewbot

Col: 42 Missing semicolon.

reviewbotreviewbot

Just one blank line here.

chipx86chipx86
chipx86
  1. 
      
  2. Show all issues

    Good opportunity to add a unit test :)

  3. Show all issues

    Can you pull the this.model.get('fileAttachmentID') out into its own variable? I don't mind template literals but they're a lot easier to read and manage if they're pretty limited in what they execute.

  4. 
      
brennie
brennie
Review request changed
Commits:
Summary ID Author
Set the correct root URL in RB.TextBasedReviewableView
The `RB.TextBasedReviewableView` was using an incorrect root path Instead of just being the path relative to the FQDN, it was using the entire URL. This resulted in Backbone never matching URLs since it was trying to match fragments against full URLs. The view would then be stuck in the rendered view mode at all times. Testing done: Verified that the TextBasedReviewableView can switch between rendered and source modes on Python 2.7, 3.5, 3.6, and 3.7.
de8ef0c32dfc2a996bdb53dd7dddf541340ea9c5 Barret Rennie
Set the correct root URL in RB.TextBasedReviewableView
The `RB.TextBasedReviewableView` was using an incorrect root path Instead of just being the path relative to the FQDN, it was using the entire URL. This resulted in Backbone never matching URLs since it was trying to match fragments against full URLs. The view would then be stuck in the rendered view mode at all times. Testing done: - Verified that the TextBasedReviewableView can switch between rendered and source modes on Python 2.7, 3.5, 3.6, and 3.7. - Ran JS tests.
7c8dade28968911259e28feec919e0e38b1b8818 Barret Rennie

Checks run (1 failed, 1 succeeded)

flake8 passed.
JSHint failed.

JSHint

brennie
Review request changed
Commits:
Summary ID Author
Set the correct root URL in RB.TextBasedReviewableView
The `RB.TextBasedReviewableView` was using an incorrect root path Instead of just being the path relative to the FQDN, it was using the entire URL. This resulted in Backbone never matching URLs since it was trying to match fragments against full URLs. The view would then be stuck in the rendered view mode at all times. Testing done: - Verified that the TextBasedReviewableView can switch between rendered and source modes on Python 2.7, 3.5, 3.6, and 3.7. - Ran JS tests.
7c8dade28968911259e28feec919e0e38b1b8818 Barret Rennie
Set the correct root URL in RB.TextBasedReviewableView
The `RB.TextBasedReviewableView` was using an incorrect root path Instead of just being the path relative to the FQDN, it was using the entire URL. This resulted in Backbone never matching URLs since it was trying to match fragments against full URLs. The view would then be stuck in the rendered view mode at all times. Testing done: - Verified that the TextBasedReviewableView can switch between rendered and source modes on Python 2.7, 3.5, 3.6, and 3.7. - Ran JS tests.
ab65dbf76fbecc62c5fef6849eccd3eeb81f94fd Barret Rennie

Checks run (1 failed, 1 succeeded)

flake8 passed.
JSHint failed.

JSHint

brennie
chipx86
  1. 
      
  2. Show all issues

    Just one blank line here.

  3. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to master (47444c9)