Repository navigation
feat(jirapoll): limit one issue to 250 records and 768 KB per cycle #9879
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
base: main
Are you sure you want to change the base?
Changes from all commits
527843f
e0d3663
c060643
f2c408c
a8cfc1c
95d4ad7
c999cae
71112a5
5d27b04
6635f32
ea42aab
a85a142
34f1a18
fa9fcb0
094cc3b
afeda2c
048b710
00f8edb
2d83300
a772539
01d47ae
ede31d1
0d65b81
5847e8c
870f3e7
c17b58a
60dbfaa
07a34db
73eac9c
2fa4335
5814593
d94f734
bf9f4b2
abd309f
ca2a217
f32dd09
3607b26
c5bc2b0
ff8b695
ed3327b
d073774
16452f2
acbb149
28eb759
0a619f0
cd9d329
c696b96
04b0aad
abef7cc
cfd8196
875ac79
423d60c
9905ace
577e263
b6933a0
1216ae9
bf8aafc
191c0d7
ee0693e
a81de2a
b56a622
3dbd497
b3b6024
194ca1f
94672e4
29f4acc
1fb717e
2340925
df8e164
d226986
f9a7ed2
9f04b42
b5e4b01
22151d0
6aaaab7
820d2b8
61aa0df
277a2c8
92c5078
8827fae
48c7b23
4f0e8d7
57ef4f1
c177c77
dae1b92
07582e1
8ff4790
dff9273
50cdf0a
d80f8ba
2030ac4
299e2f0
9c87e7e
96699c2
473e176
eb0498f
59289b6
352b540
c389854
42af816
5b3e07e
b66e01c
6df1f09
5140bb0
96805f5
aca40b6
3d9df68
2ec3341
1c73a81
50a8999
20982f4
42a15a0
e1bf398
5ffdb8e
f821b61
c964f48
e247b90
ead3b82
77b2215
bbac702
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,8 +98,9 @@ const DefaultJiraAPIURL = "https://api.atlassian.com" | |
|
|
||
| // DefaultJiraPollQuery is the JQL predicate the Jira poller uses when | ||
| // tracker.jira.poll.query is unset. It is always scoped to the configured | ||
| // project (see JiraTrackingConfig.PollJQL). | ||
| const DefaultJiraPollQuery = "statusCategory != Done ORDER BY updated DESC" | ||
| // project (see JiraTrackingConfig.PollJQL). It carries no ORDER BY, so the | ||
| // poller serves the oldest change first (ADR 0085, Decision item 2). | ||
| const DefaultJiraPollQuery = "statusCategory != Done" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] backward-incompatible Behavioral change with no schema change. DefaultJiraPollQuery drops its Suggested fix: Call out the ordering change in the release notes or the PR description. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9879 (comment) The finding is still open. Follow up in the newer thread. Resolving this duplicate. Unresolve it if you disagree. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] backward-incompatible The exported constant Suggested fix: Mention the default-ordering change in the release notes or the introducing PR's body, and use a |
||
|
|
||
| // JiraTrackingConfig holds Jira issue-tracking settings: the Jira site and | ||
| // project this repository is connected to, the cross-project issue | ||
|
|
@@ -239,7 +240,7 @@ func ScopeJQLToProject(project, query string) string { | |
| // keys and the predicate's parentheses (see ValidJiraProjectKey and | ||
| // JQLParensBalanced): this function only formats. | ||
| func ScopeJQLToProjects(projects []string, query string) string { | ||
| predicate, orderBy := splitJQLOrderBy(query) | ||
| predicate, orderBy := SplitJQLOrderBy(query) | ||
| predicate = strings.TrimSpace(predicate) | ||
| // Quote each key so a reserved-word key (AND, OR, IN) stays a value. | ||
| quoted := make([]string, len(projects)) | ||
|
|
@@ -261,9 +262,9 @@ func ScopeJQLToProjects(projects []string, query string) string { | |
| return scoped | ||
| } | ||
|
|
||
| // splitJQLOrderBy splits query at its last ORDER BY that is outside a | ||
| // SplitJQLOrderBy splits query at its last ORDER BY that is outside a | ||
| // quoted string, returning the predicate and the ORDER BY clause. | ||
| func splitJQLOrderBy(query string) (string, string) { | ||
| func SplitJQLOrderBy(query string) (string, string) { | ||
| query = strings.TrimSpace(query) | ||
| quoted := quotedRanges(query) | ||
| matches := jqlOrderByRe.FindAllStringIndex(query, -1) | ||
|
|
||
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.
[low] backward-incompatible
DefaultJiraPollQuery changes from
statusCategory != Done ORDER BY updated DESCtostatusCategory != Done, and the poller now supplies its own ordering and look-back, so adopters who left poll.query unset get a different default order and JQL shape. This comes from the stacked base PRs rather than this PR's own commits (dependency scoping could not be verified, so it is in the reviewed diff); the PR body's "no default changes" refers to its own commits.Suggested fix: Make sure the stack PR that introduces the change carries the release-note or breaking-change marking.
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.
Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9879 (comment)
The finding is still open. Follow up in the newer thread.
Resolving this duplicate. Unresolve it if you disagree.
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.
Resolved by the review agent: this is an older copy of a finding that a newer review thread also carries: #9879 (comment)
The finding is still open. Follow up in the newer thread.
Resolving this duplicate. Unresolve it if you disagree.