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

Add custom methods to the workspace adapter #499

Merged
merged 9 commits into from
Jul 3, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Jul 2, 2024

Add new methods to the workspace adapter that can run custom code when a user performs specific actions:

  • before_workspace_create: run before a workspace is created on AnVIL
  • after_workspace_create: run after a workspace is created on AnVIL
  • after_workspace_import: run before a workspace is imported on AnVIL

Add a new adapter method for Workspaces that runs after a workspace
is created on AnVIL.
When cloning a workspace in using the WorkspaceClone view, call the
before_workspace_create and after_workspace_create methods where
appropriate.
This method is run after a workspace is imported.
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.74%. Comparing base (9ccd445) to head (cd6ea59).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #499    +/-   ##
========================================
  Coverage   99.74%   99.74%            
========================================
  Files         130      131     +1     
  Lines       23857    23959   +102     
========================================
+ Hits        23795    23897   +102     
  Misses         62       62            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

before_anvil_create, after_anvil_create, after_anvil_import
@amstilp amstilp marked this pull request as ready for review July 3, 2024 18:32
@amstilp amstilp merged commit b4218a3 into main Jul 3, 2024
12 checks passed
@amstilp amstilp deleted the feature/workspace-adapter-methods branch July 3, 2024 18:32
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