-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add changelog column to jira_issues #149
Conversation
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.
Thank you @mariusgrigaitis for raising the PR 👍 !!
Could you please add a sample result in the PR body?
Co-authored-by: Ved misra <47312748+misraved@users.noreply.github.com>
Thanks for review. I have updated sample results as well as added your suggestion. However due to size of changelogs (JSON), I have truncated the sample output. |
Hello @mariusgrigaitis, Would it be possible to append This adjustment could help optimize query execution time when the Below is a suggested code change for consideration: options := jira.SearchOptions{
StartAt: 0,
MaxResults: limit,
Expand: "names",
}
if slices.Contains(d.QueryContext.Columns, "changelog") {
options.Expand = options.Expand + ", changelog"
} Let me know your thoughts on this approach. Thanks! 🚀 |
I wonder if it does have a side-effect on caching? Aka if you fetch a record first without changelog and later - with, I believe you would get the cached version |
That is correct; we might have a cache issue in this case. |
Commenting here for future reference, as we have some alternative approaches:
|
Hello @mariusgrigaitis, Could you please review the discussion and make any necessary changes based on it, if required? Thank you! |
@ParthaI as per discussion, I don't believe any changes are required with assumption that adding expand is not expensive (and I don't believe it is) |
Example query results
Results
Returns changelog (JSON)