Skip to content

Feature/migrate session from rc #40

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jayckaiser
Copy link
Collaborator

Feature: Migrate Session from RC

Description & motivation

The RC/0.3.0 branch contains a number of updates to this package. Some are quality-of-life and not important to release on a strict timeline, and others are serious code refactors that add flexibility to the project as a whole.

This PR isolates one particular refactor: moving EdFiSession into its own class that handles all authentication and retry logic. This PR was requested by the Cloud Engineering team in preparation for a near-future update.

At a high level, this PR makes the following changes:

  • Move requests session logic into its own helper class that is initialized lazily and only connects when an ODS-request is made, or when manually called to do so.
  • Replace verbose_log print statements in favor of using the logging library.

As a side-effect of these changes, compatibility with Ed-Fi 2 has been removed in this update.

PR Merge Priority:

  • Low
  • Medium
  • High

Tests and QC done:

This has been tested interactively and by Mark in a dev process in South Carolina. One thing to still verify is that retries work identically as before on long-running GETs.

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.

1 participant