-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/crons-ingest-kafka
* master: (79 commits) feat(perf-issues): Add performance issue detection timing runner command (#44912) Revert "chore: Investigating org slug already set to a different value (#45134)" fix(hybrid-cloud): Redirect to org restoration page for customer domains (#45159) bug(replays): Fix 500 error when marshaling tags field (#45097) ref(sourcemaps): Redesign lookup of source and sourcemaps (#45032) chore: Investigating org slug already set to a different value (#45134) feat(dynamic-sampling): Implement prioritize by project bias [TET-574] (#42939) feat(dynamic-sampling): Add transaction name prioritize option - (#45034) feat(dyn-sampling): add new bias toggle to project details for prioritise by tx name [TET-717] (#44944) feat(admin) Add admin relay project config view [TET-509] (#45120) Revert "chore(assignment): Add analytics when autoassigning after a manual assignment (#45099)" feat(sourcemaps): Implement new tables supporting debug ids (#44572) ref(js): Remove usage of react-document-title (#45170) chore(py): Consistently name urls using `organization-` prefix (#45180) ref: rename acceptance required checks collector (#45156) chore(assignment): Add analytics when autoassigning after a manual assignment (#45099) feat(source-maps): Update copy for source map debug alerts (#45164) ref(js): Remove custom usage of DocumentTitle (#45165) chore(login): update the login banners (#45151) ref(py): Remove one more legacy project_id from Environment (#45160) ...
- Loading branch information
Showing
246 changed files
with
6,209 additions
and
1,913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {GitHubIntegration} from './githubIntegration'; | ||
|
||
export function CodeOwner(params = {}) { | ||
return { | ||
id: '1225', | ||
raw: '', | ||
dateCreated: '2022-11-18T15:05:47.450354Z', | ||
dateUpdated: '2023-02-24T18:43:08.729490Z', | ||
codeMappingId: '11', | ||
provider: 'github', | ||
codeMapping: GitHubIntegration(), | ||
ownershipSyntax: '', | ||
errors: { | ||
missing_user_emails: [], | ||
missing_external_users: [], | ||
missing_external_teams: [], | ||
teams_without_access: [], | ||
users_without_access: [], | ||
}, | ||
...params, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from django.http import Http404 | ||
from rest_framework.request import Request | ||
from rest_framework.response import Response | ||
|
||
from sentry.api.base import Endpoint, pending_silo_endpoint | ||
from sentry.api.permissions import SuperuserPermission | ||
from sentry.models import Project | ||
from sentry.relay import projectconfig_cache | ||
|
||
|
||
@pending_silo_endpoint | ||
class AdminRelayProjectConfigsEndpoint(Endpoint): | ||
private = True | ||
permission_classes = (SuperuserPermission,) | ||
|
||
def get(self, request: Request) -> Response: | ||
project_id = request.GET.get("projectId") | ||
|
||
project_keys = [] | ||
if project_id is not None: | ||
try: | ||
project = Project.objects.get_from_cache(id=project_id) | ||
for project_key in project.key_set.all(): | ||
project_keys.append(project_key.public_key) | ||
|
||
except Exception: | ||
raise Http404 | ||
|
||
project_key = request.GET.get("projectKey") | ||
if project_key is not None: | ||
project_keys.append(project_key) | ||
|
||
configs = {} | ||
for key in project_keys: | ||
cached_config = projectconfig_cache.get(key) | ||
if cached_config is not None: | ||
configs[key] = cached_config | ||
else: | ||
configs[key] = None | ||
|
||
# TODO if we don't think we'll add anything to the endpoint | ||
# we may as well return just the configs | ||
return Response({"configs": configs}, status=200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.