Skip to content

6776 remove unused routes#6781

Closed
denys281 wants to merge 2 commits intodiaspora:developfrom
denys281:6776-api-routes-non-existing-user
Closed

6776 remove unused routes#6781
denys281 wants to merge 2 commits intodiaspora:developfrom
denys281:6776-api-routes-non-existing-user

Conversation

@denys281
Copy link
Copy Markdown
Contributor

@denys281 denys281 commented Apr 2, 2016

@theworldbright

PR for #6776

@denschub
Copy link
Copy Markdown
Member

denschub commented Apr 4, 2016

Have you checked if there are any other invalid routes?

@denys281
Copy link
Copy Markdown
Contributor Author

denys281 commented Apr 5, 2016

@denschub no, but I will check.

@denschub
Copy link
Copy Markdown
Member

How did your checks go?

@denys281
Copy link
Copy Markdown
Contributor Author

denys281 commented Apr 22, 2016

@denschub just started. Create doc for invalid routes: https://docs.google.com/spreadsheets/d/1rX6KRalSBKGm-aZrqSgDnO-xXmnNI-TGTSK5KybS8vI/edit?usp=sharing

But I don't now application well so maybe some of them aren't invalid. So usually it is resources in routes but now action in controller.

@denys281
Copy link
Copy Markdown
Contributor Author

@denschub Finished with document. What are the next steps?

@denschub
Copy link
Copy Markdown
Member

How about... removing them? :)

@denys281
Copy link
Copy Markdown
Contributor Author

Ok :)

Comment thread config/routes.rb Outdated
Diaspora::Application.routes.draw do

resources :report, :except => [:edit, :new]
resources :report, :except => [:edit, :new, :show]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the new Ruby 1.9 hash syntax.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use %i or %I for array of symbols.

@denys281
Copy link
Copy Markdown
Contributor Author

@denschub ready.

@jhass
Copy link
Copy Markdown
Member

jhass commented Aug 9, 2016

Merged as ef72942

Sorry for taking so long to take a look at this.

Thank you!

@jhass jhass closed this Aug 9, 2016
@jhass jhass added this to the 0.6.0.0 milestone Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants