-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Clarification] Issue Field History restarted to To Do status after resolved #129
Comments
Hey @dennysrega1ado thanks for opening this question. This issue is a great place to ask the clarification question! I have seen this behavior in other environments when some tickets are prematurely resolved and then moved back into an active ticket. For example, at the end of the day someone accidentally marks the ticket resolved, but then switches the status back to For this ticket, are you able to confirm if a similar behavior is seen within your Jira application? Alternatively, you may be able to see this in the underlying source |
🤔 Hi @fivetran-joemarkiewicz In addition, there seems to be a discrepancy between the status_id and the status values in the
|
@dennysrega1ado thanks for sharing these additional details. The disconnect between I do recall seeing a similar issue you are highlighting in the past. In Issue #100 we found that when an issue is closed but other fields are updated after the closed date it can cause some unexpected behavior upon incremental runs. The issue I shared resulted in Lastly, do confirm if this is an incremental issue, would you be comfortable running a full refresh and letting me know if that resolves the issue? If it does, then we know where to look for possibly resolving an issue. If not, then we may need to scope this out further. Thanks! |
@fivetran-joemarkiewicz it seems to be an incremental issue. I ran the Checking the underlying table As far as I know, I can't check historical changes over this ticket using JQL in Jira UI.
select
issue_id, time,
field_id,
value,
IS_ACTIVE
from pangea.jira.ISSUE_FIELD_HISTORY
where
ISSUE_ID= 68470
order by time desc; |
Thanks for sharing @dennysrega1ado and I would agree that this does seem to be an incremental issue as it was able to be accurately resolved following a full refresh. I still am not exactly sure where the issue may be originating. However, I am going to try and setup a test scenario on my end to try and recreate the issue you saw previously. From there I should be able to see if I can recreate the issue and then triage further from there to see what possible updates we need to apply to the underlying model code. I'll be sure to report back once I am able to recreate the issue and if I find any leads. Feel free to share any other insights in the meantime or if you start to see this issue on another ticket. |
@dennysrega1ado I attempted to recreate the issue locally, but was unable to obtain the same results you shared. I know these issues have resolved following the full refresh, but are you seeing any others since then? Additionally, was this a widespread issue or was this only impacting a few issues in your Jira instance? |
Hi @dennysrega1ado ! It seemed that the full refresh resolved this issue, but wondering if you've seen it pop up since then as well. |
Marking as stale since we've been unable to recreate the issue. If anyone else comes across this issue feel free to post in this thread and we will reopen. |
Hey @fivetran-reneeli, @fivetran-joemarkiewicz It happened again and the full-refresh fixed it. |
Thanks @dennysrega1ado for reaching back out and informing! Keep us updated! |
do you think upgrading from 0.17.0 to 0.18.0 will fix this issue or is unrelated? |
Hi @dennysrega1ado, the v0.18.0 release definitely may help, due to the lookback window now spanning 1 week vs a few days. But we'd have to know more about the specific root cause of the issue before suggesting any other solutions. |
Hi, we had upgraded to v0.18.0 in November as advised but still the issue intermittently occurs the latest being the select
date_day, issue_id, date_week, components, issue_day_id
from fivetran_jira.jira__daily_issue_field_history
where issue_id = '72302' order by date_day;
|
After going over resolved issues it seems our symptoms are aligned with this closed issue, however, we have upgraded to the version that it was resolved in |
Hi @syed-a-ali thanks for chiming in here! Happy to help look into this further. I wonder if the timing of the component being applied on the last day of the windowed week could be a lead 🤔. I'll look into this on our end. Are you seeing this issue for other issue fields in the table? If so, does it align with the last day of the week window being a pattern? Also, what warehouse type are you using. Thanks! |
Hi @fivetran-joemarkiewicz , thank you for your response. It is possible the last day of the window might affect this. Since we just ran a full refresh we may not presently have an active use case. However, we'll monitor the data and update here should more issues crop up. |
@syed-a-ali would you be able to share which warehouse you're using? I've attempted to recreate the same scenario (date of update and component being updated), but was unable to see the same issue. I tested on BigQuery, but I wonder if this issue is specific to a different warehouse. |
@fivetran-joemarkiewicz we're using Snowflake. Thanks. |
Thanks @syed-a-ali - I've been able to test a variety of scenarios on a Snowflake warehouse and came to the following conclusion:
Based on the above, do you know if in your scenario either:
If not, I'm struggling to understand what could be the issue here since I was only able to replicate the issue when waiting for more than 2 weeks time. If this does explain your scenario then there is a fairly straightforward fix (as long as you're using this dbt package via dbt Core). You can leverage the vars:
lookback_window: 4 ## In weeks. Default is 1 If you're using this as a Quickstart data model, then unfortunately a periodic full refresh will be required until we're able to support variable configuration. Hopefully this helps. Thanks! |
Is there an existing issue for this?
Describe the issue
Since I could not find the Fivetran community forum, I posted this issue here.
Why does the
issue_field_history
table continue recording "changes" if the issue has already been closed?It seems like the status was reset to
To Do
status.Relevant error log or model output
Expected behavior
I expect the
issue_field_history
to stop recording the issue since the ticket status has not changed.dbt Project configurations
Package versions
What database are you using dbt with?
snowflake
dbt Version
Additional Context
We are running DBT CLI in AWS ECS
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: