Bug 1168381 - PR1 - Created a view that unites all releases, changed tables to makes ajax calls, added pagination, added new MethodView, created scripts on migrate_repo, created a new getReleases function#44
Conversation
|
As you probably saw, travis showed some coding style issues, could you fix those? Thanks |
|
Finnaly, after four commits. :) |
|
Well done, this is much faster than the previous version! However, clicking on the title of a column should change the order, it seems broken on my system ?! |
|
You're right, I forgot this feature! The sorting will be made on server side. I think that in future, we can add some relevant filters on this page. |
|
Sort feature was added. In the previous version of this page, by default, "ready", "complete" and "SubmitedAt" was added to "order by" expression always, this behavior was maintained, however with my database dump the results seem confusing. If I remove this fields(see releases.py, line 113), the results makes sense (for me). |
|
Are you sure it is fixed? I don't see any results when clicking on the columns ? I see this in the terminal: By the way, having some JS & Python tests to make sure this feature doesn't regress would be great! |
|
The request is right, you tried sort by "Mozilla Revision". Probably I found the problem, now my tests makes sense. Try to test again, please. |
|
The code coverage decreases, because, I created new functions and original getReleases() function is utilized by a single request now, I guess.... |
|
By writing tests :) Example: https://github.com/mozilla/ship-it/blob/master/kickoff/test/views/test_releases.py |
|
Ah, OK! Take a look the last commit, you is able to sort. If any something else is wrong, I fix all together. |
|
This is great, thanks! |
There was a problem hiding this comment.
Many of this function is duplicate from getReleases. We don't like code duplication, could you factorize this? Thanks
There was a problem hiding this comment.
You're right, I kept the logic, because, I did not know if any other place (or other system) use getReleases() function. Can I change getReleases() function to use only the new View ?
There was a problem hiding this comment.
Sure, just add a argument to change it behavior depending on the context
|
Hi, I made some changes, please, take a look, again. |
|
very happy with your changes, thanks! |
|
By the way, don't hesitate to merge all patches into a single commit with a clear description, thanks! |
|
After I made the first commit and some new commits to the same PR, how I can merge all commits? Should I use squash command described in following doc? |
…to makes ajax calls, added pagination, added new MethodView, created scripts on migrate_repo, getReleases changed to support pagination
|
I think I got it. Cool... haha |
Bug 1168381 - PR1 - Created a view that unites all releases, changed tables to makes ajax calls, added pagination, added new MethodView, created scripts on migrate_repo, created a new getReleases function
No description provided.