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

refactor: replace ctx.params, ctx.session, and ctx.url with ctx.client #361

Merged
merged 12 commits into from
Dec 16, 2024

Conversation

tdstein
Copy link
Collaborator

@tdstein tdstein commented Dec 13, 2024

Now that Client exists on the Context, we can remove all usage of ctx.params, ctx.session, and ctx.url with calls to ctx.client.

Copy link

github-actions bot commented Dec 13, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1880 1751 93% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/posit/connect/_api_call.py 77% 🟢
src/posit/connect/bundles.py 98% 🟢
src/posit/connect/client.py 99% 🟢
src/posit/connect/content.py 96% 🟢
src/posit/connect/context.py 100% 🟢
src/posit/connect/cursors.py 97% 🟢
src/posit/connect/env.py 100% 🟢
src/posit/connect/groups.py 82% 🟢
src/posit/connect/me.py 100% 🟢
src/posit/connect/metrics/metrics.py 100% 🟢
src/posit/connect/metrics/shiny_usage.py 100% 🟢
src/posit/connect/metrics/usage.py 100% 🟢
src/posit/connect/metrics/visits.py 100% 🟢
src/posit/connect/oauth/associations.py 100% 🟢
src/posit/connect/oauth/integrations.py 100% 🟢
src/posit/connect/oauth/oauth.py 100% 🟢
src/posit/connect/oauth/sessions.py 100% 🟢
src/posit/connect/permissions.py 99% 🟢
src/posit/connect/resources.py 91% 🟢
src/posit/connect/tasks.py 100% 🟢
src/posit/connect/users.py 96% 🟢
src/posit/connect/vanities.py 94% 🟢
src/posit/connect/variants.py 100% 🟢
TOTAL 97% 🟢

updated for commit: 8359a4e by action🐍

@tdstein tdstein changed the title refactor: remove usage of ResourceParaeters, ctx.url, and ctx.session refactor: replace ctx.params, ctx.session, and ctx.url with ctx.client Dec 13, 2024
@tdstein tdstein requested a review from schloerke December 13, 2024 20:51
src/posit/connect/vanities.py Outdated Show resolved Hide resolved
@tdstein tdstein marked this pull request as ready for review December 16, 2024 19:09
Base automatically changed from client_requests to main December 16, 2024 19:10
@tdstein tdstein merged commit e6809f3 into main Dec 16, 2024
35 checks passed
@tdstein tdstein deleted the tdstein/client-requests branch December 16, 2024 19:22
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.

2 participants