Skip to content

Commit

Permalink
Fix for issue #10207 non-existent env import (#11053)
Browse files Browse the repository at this point in the history
* get or create environment

* honor auto_create_context, update docs

* case of not providing environment

* create base class, re-use code import, reimport

* put common context code in base

* mistyped dict for data
  • Loading branch information
hblankenship authored Oct 19, 2024
1 parent 05faab6 commit c310a1f
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 264 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/integrations/importing.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ An import can be performed by specifying the names of these entities in the API
}
```

When `auto_create_context` is `True`, the product and engagement will be created if needed. Make sure your user has sufficient [permissions](../usage/permissions) to do this.
When `auto_create_context` is `True`, the product, engagement, and environment will be created if needed. Make sure your user has sufficient [permissions](../usage/permissions) to do this.

A classic way of importing a scan is by specifying the ID of the engagement instead:

Expand Down
Loading

0 comments on commit c310a1f

Please sign in to comment.