Skip to content
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

Merged
merged 23 commits into from
Oct 1, 2021
Merged

feat(workflow): Time To Resolution API #28910

merged 23 commits into from
Oct 1, 2021

Conversation

iProgramStuff
Copy link
Contributor

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.

@iProgramStuff iProgramStuff requested a review from a team as a code owner September 28, 2021 18:50
@github-actions
Copy link
Contributor

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;

Copy link
Member

@wedamija wedamija left a 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?

@iProgramStuff iProgramStuff changed the base branch from master to feat/grouphistory September 28, 2021 23:17
@iProgramStuff
Copy link
Contributor Author

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.

@iProgramStuff iProgramStuff changed the title feat(workflow): Time To Resolution API Endpoint feat(workflow): Time To Resolution API Sep 29, 2021
Base automatically changed from feat/grouphistory to master September 29, 2021 18:22
@iProgramStuff iProgramStuff merged commit 197cbb0 into master Oct 1, 2021
@iProgramStuff iProgramStuff deleted the feat/ttrendpoint branch October 1, 2021 16:09
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants