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

Replace get_resource_name with get_resource_id #864

Conversation

PanosCodes
Copy link
Contributor

Why

Although the function is named get_resource_name in reality it's generating the ID that is used as an id of the resource description as well as in the URLs of apipie.

Ideally what name is displayed in docs should have nothing to do with the internals of Apipie.

How

It deprecates .get_resource_name in favor of .get_resource_id to avoid confusion with ResourceDescription#name

Although the function is named `get_resource_name` in reality it's generating
the ID that is used as an id of the resource description as well as in the
URLs of apipie.

It replaces `.get_resource_name` with `.get_resource_id` to avoid confusion
with ResourceDescription#name.
@mathieujobin mathieujobin merged commit 43f95a6 into Apipie:master Apr 13, 2023
18 checks passed
@PanosCodes PanosCodes deleted the replace-get_resource_name-for-resource_id branch April 14, 2023 18:03
stormsilver added a commit to rednovalabs/apipie-rails that referenced this pull request May 11, 2023
This should be `get_resource_id`. The method `remove_method_description`
was not exercised by the specs so it wasn't caught. (see Apipie#864)

This was causing apipie to crash during application boot.
stormsilver added a commit to rednovalabs/apipie-rails that referenced this pull request May 12, 2023
This should be `get_resource_id`. The method `remove_method_description`
was not exercised by the specs so it wasn't caught. (see Apipie#864)

This was causing apipie to crash during application boot.

(cherry picked from commit 759009e)
mathieujobin pushed a commit that referenced this pull request May 12, 2023
This should be `get_resource_id`. The method `remove_method_description`
was not exercised by the specs so it wasn't caught. (see #864)

This was causing apipie to crash during application boot.
stormsilver added a commit to rednovalabs/apipie-rails that referenced this pull request May 24, 2023
This should be `get_resource_id`. The method `ignore_call?`
wasn't exercised by the specs so it wasn't caught.

(see Apipie#864)

This was causing an exception when recording examples.
mathieujobin pushed a commit that referenced this pull request May 29, 2023
This should be `get_resource_id`. The method `ignore_call?`
wasn't exercised by the specs so it wasn't caught.

(see #864)

This was causing an exception when recording examples.
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

2 participants