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

More request customization #153

Merged
merged 14 commits into from
Jun 24, 2024
Merged

Conversation

iboates
Copy link
Collaborator

@iboates iboates commented May 26, 2024

Closes #133 and #82

This is a draft PR, it's not even close to being finished. It's also contingent on my tests branch PR here: #151

I have changed all the workspace endpoints to accommodate it. It should work, but I am wondering if it may be better to use something like request_params instead of kwargs, just so as not to potentially interfere with other keyword arguments. Such a parameter would I guess have to be a type of Dict[String, Any]

What do you guys think? For whichever option, I can add the functionality to the rest of the endpoints.

@iboates iboates marked this pull request as draft May 26, 2024 10:31
@iamtekson
Copy link
Collaborator

Thank you @iboates for initiating this PR. it looks great in shape!

@iboates
Copy link
Collaborator Author

iboates commented Jun 13, 2024

Just FYI im on vacation until July. I might pick at this anyway in the meantime though

@iamtekson
Copy link
Collaborator

No worried @iboates, take your time😀!

@iboates
Copy link
Collaborator Author

iboates commented Jun 22, 2024

@iamtekson @Zeitsperre I am now finished with this. You should be able to specify a dictionary of request parameters to the Geoserver init method which will then be applied to every subsequent request.

Originally I wanted to do it for each request, but the overwhelming DRY violations were too bothersome to ignore.

I also added a few new tests while I was at it, including one specifically to test that that this works.

Also, I replaced all the direct references to the requests lib with ones to the internally wrapped version.

@iboates iboates changed the title (DRAFT) More request customization More request customization Jun 22, 2024
@iboates iboates marked this pull request as ready for review June 22, 2024 23:51
Copy link
Collaborator

@iamtekson iamtekson left a comment

Choose a reason for hiding this comment

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

It looks good to me. Thank you very much for this wonderful PR @iboates

@iamtekson iamtekson merged commit c67d6ac into gicait:master Jun 24, 2024
5 checks passed
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.

Enable more customization of requests usage
2 participants