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
improvements in routing and the app as a whole (WIP) #233
Conversation
@Alwahsh - Please split your changes into commits with meaningful messages so that it's easy for us to review the whole thing. :) Example: https://github.com/glittergallery/GlitterGallery/pull/195/commits |
@rohitpaulk Alright :) |
@sarupbanskota delayed_job is already on master now as I put it in #240 :) |
328eec0
to
b0adab1
Compare
Modified my old commit and added a new one... Please let me know if I'm going the right way or you think I should do something differently. |
Test coverage raised to 82% . We're getting there :) |
Oops! I was working on a same thing :) Good work @Alwahsh. |
@charithhewage yup, I'm looking at each route one by one so I still didn't get rid of every useless one... That's why I don't want this to be merged till I finish it fully.
I didn't get that. Can you explain more? |
@Alwahsh Please correct me if i am wrong :). get '/:username/:project/:xid/master/:image_name/update' => 'projects#update', but can we use something like this. This is a good practice to improve the SEO. |
@charithhewage I've not arrived at the routes you mentioned yet... See the routes I've done are the ones that use :user_id and :id. |
@Alwahsh the commits split up is better. could you pull from master? thanks! |
Improved the routes for follow, unfollow and file upload.
Some improvements in the tested projects routes that lead to successful tests.
Add unfollow projects feature. Other minor improvements.
7351410
to
fd6956c
Compare
The routes file now should be able to work in the full app I assume but I still haven't refactored all of it. This is just done so as to allow for early merging to avoid merge conflicts. Other minimal improvements
196e063
to
97a2e0f
Compare
Now commits link really to commits. Moved the functionality that was implemented in commits view to its natural part which is trees. Removed some unused routes(we can add them back when their functions are implemented.)
What has been done in the previous commit:
This is currently ready to be merged... i.e: The app should function fully with it included. I'm still not done with the changes though. |
On Thu, Mar 19, 2015 at 11:21 AM, A notifications@github.com wrote:
yep, iirc rugged gives you a method for that. this would be a good place
thanks for this one.
+1
That came in from #195. The idea was that I wanted to support directory
yep, agreed.
|
one nit you could fix in subsequent changes: http://glittergallery-themonster.rhcloud.com/name/ranomd/commit/295896f8f231d80f898b881bdd6e9877226922cf doesn't need to go through a login. the only thing we want to login for is comments, or stuff to do with private repos, or following etc. |
improvements in routing and the app as a whole (WIP)
That idea came to mind but I thought I'd keep getting more ideas as I go on and this PR would never end :) There's a lot of things in my mind for example:
This is also what came to mind but I prefer we keep those for later if possible :)
I didn't make any modifications to the authorization logic because I'm actually waiting for #244 because I would like to keep all the authorization logic in the abilities.rb file :) Thanks for getting this merged... I hope to continue my work on it soon :) |
yup, no worries, continue with the overall fixes first, just remember to Sarup On Thu, Mar 19, 2015 at 4:20 PM, A notifications@github.com wrote:
|
@sarupbanskota sorry a quick question... For Pull requests... This functionality seems to either have been created then removed, or it was just started partially. Seems like it depends on a |
I'm currently trying to improve routing and the app in general while writing tests in the progress.
I think this pull request might be very big if I wait till the end so I prefer to keep this one here and post updates piece by piece and take your comments while in the progress.
This is not ready to be merged... The routes file is not a one that's ready for production at all.
Please make comments on things you see problems with so that the final pull request has a code that is approved by all :)