-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat(api): Publish typed issue view creation endpoint #123079
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from django.test.client import RequestFactory | ||
|
|
||
| from fixtures.apidocs_test_case import APIDocsTestCase | ||
| from sentry.testutils.helpers.features import with_feature | ||
|
|
||
|
|
||
| class OrganizationIssueViewsDocs(APIDocsTestCase): | ||
| def setUp(self) -> None: | ||
| self.login_as(user=self.user) | ||
| self.url = f"/api/0/organizations/{self.organization.slug}/group-search-views/" | ||
|
|
||
| @with_feature({"organizations:issue-views": True}) | ||
| def test_post(self) -> None: | ||
| data = { | ||
| "name": "My Issues", | ||
| "query": "is:unresolved", | ||
| "querySort": "date", | ||
| "projects": [], | ||
| "environments": [], | ||
| "timeFilters": {"period": "14d"}, | ||
| } | ||
|
|
||
| response = self.client.post(self.url, data) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The POST request in Suggested FixAdd Prompt for AI Agent |
||
| request = RequestFactory().post(self.url, data) | ||
|
|
||
| self.validate_schema(request, response) | ||
Uh oh!
There was an error while loading. Please reload this page.