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: moves session and url to resource attributes #103

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

tdstein
Copy link
Collaborator

@tdstein tdstein commented Mar 18, 2024

This change moves the url and session items from the underlying hash table used by dict to instance attributes.

Subsequently, these columns no longer appear as columns when converting from a list[Resource] to a pandas DataFrame.

The __setattr__ override behavior is also moved to the base Resource class.

Resolves #102

Copy link

github-actions bot commented Mar 18, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
505 418 83% 80% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/posit/connect/client.py 100% 🟢
src/posit/connect/content.py 73% 🟢
src/posit/connect/resources.py 100% 🟢
src/posit/connect/users.py 92% 🟢
TOTAL 91% 🟢

updated for commit: 4833f18 by action🐍

@tdstein tdstein force-pushed the tdstein/102 branch 3 times, most recently from 42d1054 to 238b1d0 Compare March 19, 2024 14:42
@tdstein tdstein marked this pull request as ready for review March 19, 2024 14:49
tests/posit/connect/test_users.py Outdated Show resolved Hide resolved
src/posit/connect/resources.py Show resolved Hide resolved
@tdstein tdstein merged commit 45f5226 into main Mar 19, 2024
7 checks passed
@tdstein tdstein deleted the tdstein/102 branch March 19, 2024 16:08
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.

Remove session and url from the underlying hash table in Resource.
2 participants