Skip to content

Commit e0f1609

Browse files
committed
Remove unwanted comments from the generated interface
1 parent e738a0e commit e0f1609

File tree

3 files changed

+32
-48
lines changed

3 files changed

+32
-48
lines changed

coderd/database/querier.go

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries.sql.go

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/insights.sql

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@ GROUP BY utp.num, utp.template_ids, utp.name, utp.type, utp.display_name, utp.de
786786
-- We do not start counting from 0 at the start_time. We check the last status change before the start_time for each user. As such,
787787
-- the result shows the total number of users in each status on any particular day.
788788
WITH
789-
-- dates_of_interest defines all points in time that are relevant to the query.
790-
-- It includes the start_time, all status changes, all deletions, and the end_time.
789+
-- dates_of_interest defines all points in time that are relevant to the query.
790+
-- It includes the start_time, all status changes, all deletions, and the end_time.
791791
dates_of_interest AS (
792792
SELECT @start_time::timestamptz AS date
793793

@@ -809,9 +809,9 @@ dates_of_interest AS (
809809

810810
SELECT @end_time::timestamptz AS date
811811
),
812-
-- latest_status_before_range defines the status of each user before the start_time.
813-
-- We do not include users who were deleted before the start_time. We use this to ensure that
814-
-- we correctly count users prior to the start_time for a complete graph.
812+
-- latest_status_before_range defines the status of each user before the start_time.
813+
-- We do not include users who were deleted before the start_time. We use this to ensure that
814+
-- we correctly count users prior to the start_time for a complete graph.
815815
latest_status_before_range AS (
816816
SELECT
817817
DISTINCT usc.user_id,
@@ -823,10 +823,10 @@ latest_status_before_range AS (
823823
AND (ud.user_id IS NULL OR ud.deleted_at > @start_time::timestamptz)
824824
ORDER BY usc.user_id, usc.changed_at DESC
825825
),
826-
-- status_changes_during_range defines the status of each user during the start_time and end_time.
827-
-- If a user is deleted during the time range, we count status changes prior to the deletion.
828-
-- Theoretically, it should probably not be possible to update the status of a deleted user, but we
829-
-- need to ensure that this is enforced, so that a change in business logic later does not break this graph.
826+
-- status_changes_during_range defines the status of each user during the start_time and end_time.
827+
-- If a user is deleted during the time range, we count status changes between the start_time and the deletion date.
828+
-- Theoretically, it should probably not be possible to update the status of a deleted user, but we
829+
-- need to ensure that this is enforced, so that a change in business logic later does not break this graph.
830830
status_changes_during_range AS (
831831
SELECT
832832
usc.user_id,
@@ -838,8 +838,8 @@ status_changes_during_range AS (
838838
AND usc.changed_at <= @end_time::timestamptz
839839
AND (ud.user_id IS NULL OR usc.changed_at < ud.deleted_at)
840840
),
841-
-- relevant_status_changes defines the status of each user at any point in time.
842-
-- It includes the status of each user before the start_time, and the status of each user during the start_time and end_time.
841+
-- relevant_status_changes defines the status of each user at any point in time.
842+
-- It includes the status of each user before the start_time, and the status of each user during the start_time and end_time.
843843
relevant_status_changes AS (
844844
SELECT
845845
user_id,
@@ -855,14 +855,14 @@ relevant_status_changes AS (
855855
changed_at
856856
FROM status_changes_during_range
857857
),
858-
-- statuses defines all the distinct statuses that were present just before and during the time range.
859-
-- This is used to ensure that we have a series for every relevant status.
858+
-- statuses defines all the distinct statuses that were present just before and during the time range.
859+
-- This is used to ensure that we have a series for every relevant status.
860860
statuses AS (
861861
SELECT DISTINCT new_status FROM relevant_status_changes
862862
),
863-
-- We only want to count the latest status change for each user on each date and then filter them by the relevant status.
864-
-- We use the row_number function to ensure that we only count the latest status change for each user on each date.
865-
-- We then filter the status changes by the relevant status in the final select statement below.
863+
-- We only want to count the latest status change for each user on each date and then filter them by the relevant status.
864+
-- We use the row_number function to ensure that we only count the latest status change for each user on each date.
865+
-- We then filter the status changes by the relevant status in the final select statement below.
866866
ranked_status_change_per_user_per_date AS (
867867
SELECT
868868
d.date,

0 commit comments

Comments
 (0)