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

Rename route '/criteria' to '/criteria_stats' #1453

Merged
merged 1 commit into from Aug 26, 2020
Merged

Conversation

david-a-wheeler
Copy link
Collaborator

Rename the route '/criteria', which shows criteria statistics, to
'/criteria_stats'. This makes the route consistent with '/project_stats'.
It also means we can use '/criteria' to present
the criteria themselves (in a format we control and in any locale).

Technically this could be considered an API change.
However, we only serve this as HTML, not as JSON (yet), so anyone
processing this would have had to request the HTML & process it further.
In practices, we expect that few people call this, because it
simply gives statistics about just the criteria while ignoring projects.
It's typically more been useful for debugging or giving people a
quick summary about the criteria than anything else.

Note: After merging, you'll need to send the YAML translations to
translation.io, because this renames several keys.

Signed-off-by: David A. Wheeler dwheeler@dwheeler.com

Rename the route '/criteria', which shows criteria statistics, to
'/criteria_stats'. This makes the route consistent with '/project_stats'.
It also means we can use '/criteria' to present
the criteria themselves (in a format we control and in any locale).

Technically this could be considered an API change.
However, we only serve this as HTML, not as JSON (yet), so anyone
processing this would have had to request the HTML & process it further.
In practices, we expect that few people call this, because it
simply gives statistics about *just* the criteria while ignoring projects.
It's typically more been useful for debugging or giving people a
quick summary about the criteria than anything else.

Note: After merging, you'll need to send the YAML translations to
translation.io, because this renames several keys.

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
@codecov
Copy link

codecov bot commented Aug 23, 2020

Codecov Report

Merging #1453 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1453   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           47        47           
  Lines         1805      1805           
=========================================
  Hits          1805      1805           
Impacted Files Coverage Δ
app/controllers/static_pages_controller.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 378a76f...b139b67. Read the comment docs.

@david-a-wheeler
Copy link
Collaborator Author

@dankohn @jdossett - any objection to this minor rename?

I want to use /criteria for something else, so I first have to rename it - in this case /criteria_stats. I think that makes it more consistent with /project_stats anyway.

@david-a-wheeler
Copy link
Collaborator Author

No objections posted, I'm doing it.

@david-a-wheeler david-a-wheeler merged commit fa60643 into master Aug 26, 2020
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.

None yet

1 participant