sentry icon indicating copy to clipboard operation
sentry copied to clipboard

feat(configurations): Add initial API endpoints

Open cmanallen opened this issue 9 months ago • 2 comments

TODO

cc @ryan953 blueprint is included

cmanallen avatar May 13 '24 19:05 cmanallen

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

github-actions[bot] avatar May 13 '24 19:05 github-actions[bot]

This PR has a migration; here is the generated SQL for src/sentry/migrations/0714_create_configuration_table.py ()

--
-- Create model ConfigurationModel
--
CREATE TABLE "sentry_configuration" ("id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "slug" varchar(32) NOT NULL, "organization_id" bigint NOT NULL);
CREATE UNIQUE INDEX CONCURRENTLY "sentry_configuration_organization_id_slug_010449d8_uniq" ON "sentry_configuration" ("organization_id", "slug");
ALTER TABLE "sentry_configuration" ADD CONSTRAINT "sentry_configuration_organization_id_slug_010449d8_uniq" UNIQUE USING INDEX "sentry_configuration_organization_id_slug_010449d8_uniq";
CREATE INDEX CONCURRENTLY "sentry_configuration_slug_f76d4d64" ON "sentry_configuration" ("slug");
CREATE INDEX CONCURRENTLY "sentry_configuration_slug_f76d4d64_like" ON "sentry_configuration" ("slug" varchar_pattern_ops);
CREATE INDEX CONCURRENTLY "sentry_conf_organiz_68fa9b_idx" ON "sentry_configuration" ("organization_id", "slug");

github-actions[bot] avatar May 13 '24 19:05 github-actions[bot]

Codecov Report

Attention: Patch coverage is 95.41284% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 77.95%. Comparing base (1c4445a) to head (d49eaef). Report is 199 commits behind head on master.

:exclamation: Current head d49eaef differs from pull request most recent head 66c567a

Please upload reports for the commit 66c567a to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #70799      +/-   ##
==========================================
+ Coverage   74.69%   77.95%   +3.25%     
==========================================
  Files        6512     6509       -3     
  Lines      290225   290092     -133     
  Branches    50235    50202      -33     
==========================================
+ Hits       216778   226134    +9356     
+ Misses      66952    57657    -9295     
+ Partials     6495     6301     -194     
Files Coverage Δ
src/sentry/api/api_owners.py 100.00% <100.00%> (ø)
src/sentry/api/urls.py 100.00% <100.00%> (ø)
src/sentry/configurations/endpoints.py 100.00% <100.00%> (ø)
src/sentry/options/defaults.py 100.00% <100.00%> (ø)
src/sentry/relay/config/__init__.py 91.94% <ø> (ø)
src/sentry/configurations/storage.py 92.53% <92.53%> (ø)

... and 793 files with indirect coverage changes

codecov[bot] avatar May 15 '24 20:05 codecov[bot]