-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(workflow): Time To Resolution API #28910
Conversation
This PR has a migration; here is the generated SQL BEGIN;
--
-- Create model GroupHistory
--
CREATE TABLE "sentry_grouphistory" ("id" bigserial NOT NULL PRIMARY KEY, "status" integer NOT NULL CHECK ("status" >= 0), "prev_history_date" timestamp with time zone NULL, "date_added" timestamp with time zone NOT NULL, "actor_id" bigint NULL, "group_id" bigint NOT NULL, "prev_history_id" bigint NULL, "project_id" bigint NOT NULL, "release_id" bigint NULL);
ALTER TABLE "sentry_grouphistory" ADD CONSTRAINT "sentry_grouphistory_actor_id_085453d6_fk_sentry_actor_id" FOREIGN KEY ("actor_id") REFERENCES "sentry_actor" ("id") DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE "sentry_grouphistory" ADD CONSTRAINT "sentry_grouphistory_prev_history_id_905ec402_fk_sentry_gr" FOREIGN KEY ("prev_history_id") REFERENCES "sentry_grouphistory" ("id") DEFERRABLE INITIALLY DEFERRED;
CREATE INDEX "sentry_grouphistory_actor_id_085453d6" ON "sentry_grouphistory" ("actor_id");
CREATE INDEX "sentry_grouphistory_group_id_5dedb22b" ON "sentry_grouphistory" ("group_id");
CREATE INDEX "sentry_grouphistory_prev_history_id_905ec402" ON "sentry_grouphistory" ("prev_history_id");
CREATE INDEX "sentry_grouphistory_project_id_c2403854" ON "sentry_grouphistory" ("project_id");
CREATE INDEX "sentry_grouphistory_release_id_a18ee4ae" ON "sentry_grouphistory" ("release_id");
CREATE INDEX "sentry_grouphistory_project_id_status_release_id_dbbe6354_idx" ON "sentry_grouphistory" ("project_id", "status", "release_id");
COMMIT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Could you base this branch off of the parent branch so that the diff only includes the changes in this pr?
Yeah, that's my bad. |
This endpoint will be used to graph the mean "time to resolution" for your team over time.
Returns a dict where each key is a day between start and end (calculated via start/end/statsPeriod params) - and is either zero-filled or contains the count of issues and average time to resolution for issues resolved in that bucket.