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

Refs #37596 - Add an api request method to table index instead of always assuming 'get' #10223

Closed
wants to merge 1 commit into from

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Jun 25, 2024

No description provided.

@MariaAga
Copy link
Member

MariaAga commented Jul 1, 2024

The code is fine, but can you give an example of where its needed?

@ekohl ekohl changed the title Refs #37596 - Add a api request method to table index instead of always assuming 'get' Refs #37596 - Add an api request method to table index instead of always assuming 'get' Jul 1, 2024
}) => {
let response = useAPI(
replacementResponse ? null : 'get',
replacementResponse ? null : method,
apiUrl.includes('include_permissions')
? apiUrl
: `${apiUrl}?include_permissions=true`,
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated, but this assumes the API URL didn't use any GET parameters before. I'd think that isn't a safe assumption and think it should parse things.

@github-actions github-actions bot added the Stale label Sep 30, 2024
Copy link

github-actions bot commented Oct 8, 2024

Thank you for your contribution! This PR has been inactive for 3 months, closing for now. Feel free to reopen when you return to it. This is an automated process.

@github-actions github-actions bot closed this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants