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

Offline mode for imported git repositories #78

Open
openvmp opened this issue Jan 15, 2024 · 1 comment
Open

Offline mode for imported git repositories #78

openvmp opened this issue Jan 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@openvmp
Copy link
Contributor

openvmp commented Jan 15, 2024

Update the "git" project factory class so that the behavior changes if there is already a cloned copy of the repo:

  • if the exact revision is specified and it is a tag, then do nothing
  • if the exact revision is specified and it is a branch, then attempt to update it if the last update happened more than T1 time ago
  • do not log any error (warning only) if the update attempt failed less than T2 time since the last successful update
  • do not log any error and, preferrably, do not waste any time waiting, if it is determined with a high degree of likelihood that there is no Internet connectivity

Maintain default values for T1 (1 hour) and T2 (1 day) and allow the user to override the defaults in the "user config" (user_config.py).
Implement all of that without introducing any non-pure-Python dependencies.

@openvmp openvmp added the enhancement New feature or request label Jan 15, 2024
@openvmp
Copy link
Contributor Author

openvmp commented Mar 9, 2024

The only part left is detecting network connectivity. Perhaps a context flag needs to be added to forbid any networking requests in addition to the initial requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant