Skip to content
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

510/remove JSON REST interface #538

Closed
wants to merge 24 commits into from
Closed

510/remove JSON REST interface #538

wants to merge 24 commits into from

Conversation

chrisma
Copy link
Contributor

@chrisma chrisma commented Apr 3, 2019

  • Remove jbuilder gem
  • Remove jbuilder files
  • Only respond to HTML, not JSON, simplifying controllers
  • Refactor RequestController

Ref #510

Continued in #541

@chrisma chrisma added the WIP work is still in progess for this PR label Apr 3, 2019
@chrisma chrisma changed the title 510/remove json rest 510/remove JSON REST interface Apr 3, 2019
@chrisma chrisma added Review Required and removed WIP work is still in progess for this PR labels Apr 3, 2019
Copy link
Contributor

@krichly krichly left a comment

Choose a reason for hiding this comment

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

Maybe, we could think about moving/merging functionality from request to VM in a new issue.

app/controllers/requests_controller.rb Show resolved Hide resolved
else
requests = Request.where(user: current_user)
end
@pending_requests = requests.select(&:pending?)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@chrisma chrisma Apr 25, 2019

Choose a reason for hiding this comment

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

Good point. Rails enums automatically create scopes, i.e. Request.all.select(&:pending?) == Request.pending

@chrisma chrisma mentioned this pull request Apr 25, 2019
@chrisma chrisma added invalid This doesn't seem right and removed Review Required labels Apr 25, 2019
@chrisma chrisma closed this Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants