#1144 `Fork and Edit` functionality
Merged by pingou. Opened by farhaan.
farhaan/pagure fork-edit  into  master

Download 1144.patch
no initial comment

There is a GET for this endpoint?

I checked I only need POST for both the urls

1 new commit added

  • Fix POST in the url

Indentation is off

Did you check https://pagure.io/fork/farhaan/pagure/blob/fork-edit/f/pagure/templates/file.html#_94 ?

Checking the file type ?

2 new commits added

  • Add check for file and fix indentation
  • Add test

4 new commits added

  • Add check for file and fix indentation
  • Fix POST in the url
  • Add functionality to Fork and edit a file
  • Fix

This needs unit-tests :)

rebased

rebased

Why POST requests?

The URL supports POST and with GET I get a 404 which is not the supposed output.

Looks good, the only missing part is: checking if/when the button is showing up :)

@pingou in tests ?

@farhaan yes that would be easier to check :)

rebased

rebased

Why are you adding binary data since you're not using it anywhere?

Give some space in between your checks

Sorry you are with test.jpg, but not this one indeed :)

1 new commit added

  • Add tests and comments to explain

Doesn't show?

Even more: doesn't show on binary file

2 lines at the end

Could we explain why 404?

Could we explain why 400?

1 new commit added

  • Add test for different user

This checks if the user is not logged in

7 new commits added

  • Add test for different user
  • Add tests and comments to explain
  • Add checking fork and edit button in UI
  • Test added
  • Add check for file and fix indentation
  • Fix POST in the url
  • Add functionality to Fork and edit a file

Ok so remaining comments:

  • Explain the 400 error (cf other examples in the code)
  • Explain the 404 error
  • Add test checking if the Fork & Edit button is showing when the user is not logged in

7 new commits added

  • Add test for different user
  • Add tests and comments to explain
  • Add checking fork and edit button in UI
  • Test added
  • Add check for file and fix indentation
  • Fix POST in the url
  • Add functionality to Fork and edit a file

Looks good to me, thanks! :)

Pull-Request has been merged by pingou

Finally thank you :)

Metadata