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

[Bug]: Reverted temporary changes made to a codebase that were never pushed were shown in the change diff in Bitbucket #36486

Closed
1 task done
MaxSunlife opened this issue Sep 23, 2024 · 4 comments
Assignees
Labels
Bug Something isn't working Community Reported issues reported by community members Git Auto-commit Issues related to autocommit Git Platform Issues related to the git & the app platform Git Product Issues related to version control product Medium Issues that frustrate users due to poor UX Needs More Info Needs additional information Needs Triaging Needs attention from maintainers to triage Production

Comments

@MaxSunlife
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

I hard coded a value to test something, but reversed the change before I pushed to the repo because that test value was never meant to be part of the update (only a test). However, when I pushed to the repo the change was visible in the repo's change diff page even though it was never pushed. After pushing we pulled to a different environment and confirmed that change was not part of the codebase. So why is it still in the change diff if that change was never pushed and isn't part of the repo?

image

Steps To Reproduce

  1. make an intended change
  2. make a separate temporary change
  3. revert the temporary change
  4. push intended change to the repo
  5. check the change dif to find the temporary change that was never pushed

Public Sample App

No response

Environment

Production

Severity

Critical (Broken Production apps)

Issue video log

No response

Version

Self-Hosted v1.19

@MaxSunlife MaxSunlife added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage labels Sep 23, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added Community Reported issues reported by community members Critical This issue needs immediate attention. Drop everything else Production labels Sep 23, 2024
@Nikhil-Nandagopal
Copy link
Contributor

@MaxSunlife did you commit the temporary change? If so, all committed changes are automatically pushed and that could explain how this happened.

@Nikhil-Nandagopal Nikhil-Nandagopal added Needs More Info Needs additional information Medium Issues that frustrate users due to poor UX Git Auto-commit Issues related to autocommit and removed Critical This issue needs immediate attention. Drop everything else labels Sep 23, 2024
@github-actions github-actions bot added Git Product Issues related to version control product Git Platform Issues related to the git & the app platform labels Sep 23, 2024
@MaxSunlife
Copy link
Author

MaxSunlife commented Sep 23, 2024 via email

@Nikhil-Nandagopal
Copy link
Contributor

@MaxSunlife ok I understand what you are experiencing now. The changes you are seeing are in the jsonPathKey variable which is actually calculated on the fly and does not need to be tracked via git at all. We can can probably pick up not tracking it as an enhancement but essentially what happened here is that the variable did not get recomputed but did get tracked and therefore showed an older value. I assume you are not seeing any discrepency in the behavior of the application.

@MaxSunlife
Copy link
Author

Thank you Nikhil, We decided to roll back the change in BitBucket and redo it on a new clean branch. However, it's encouraging to hear that you will fix this in an enhancement. Thanks!

@MaxSunlife MaxSunlife closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Community Reported issues reported by community members Git Auto-commit Issues related to autocommit Git Platform Issues related to the git & the app platform Git Product Issues related to version control product Medium Issues that frustrate users due to poor UX Needs More Info Needs additional information Needs Triaging Needs attention from maintainers to triage Production
Projects
None yet
Development

No branches or pull requests

5 participants