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

Merge conflict is shown when edits are done on a different book #1609

Open
elsylambert opened this issue Aug 24, 2023 · 10 comments
Open

Merge conflict is shown when edits are done on a different book #1609

elsylambert opened this issue Aug 24, 2023 · 10 comments
Assignees

Comments

@elsylambert
Copy link
Contributor

When two users working on two different files/books on en_tn, merge their work to master, the user user sees merge conflict and is not able to merge the work done until logging back in.

@birchamp
Copy link
Contributor

birchamp commented Sep 5, 2023

@elsylambert This seems like a high priority that would happen often. Is that true?

@birchamp
Copy link
Contributor

birchamp commented Oct 6, 2023

@kintsoogi and @theNerd247 are working on the merge process in gE right now and we should wait until they have a solution to see if it affects this.

@elsylambert
Copy link
Contributor Author

@RevantCI Please test the case where you found the problem in branch merge.

@RevantCI
Copy link
Collaborator

RevantCI commented Dec 5, 2023

Hi @elsylambert This is the issue that I had mentioned in our call yesterday https://github.com/Bridgeconn/uw-lab/blob/50d4ec9b188ff4f7d40be57738a108079366060e/dcs-branch-merger/README.md#checkdtbranchtousrbranch-this-is-not-working-properly
In the DCS Merger RCL the CheckDtBranchToUsrBranch function does not work as the name suggests.
However this function is not used by TC Create so don't think it can be tested in TC Create it can be tested in the RCL if required.
Joel is the one who worked on this RCL POC, he can give the specifics steps for the issue as required here or in the RCL repo as a new issue.

@RevantCI
Copy link
Collaborator

RevantCI commented Dec 5, 2023

We will be testing the issue #1609 fixed by Noah above on TC Create and updating it here soon.

@Joel-C-Johnson
Copy link
Collaborator

Accidentally closed this issue while adding a comment. I have reponed this issue.

@Joel-C-Johnson
Copy link
Collaborator

Hi @elsylambert This is the issue that I had mentioned in our call yesterday https://github.com/Bridgeconn/uw-lab/blob/50d4ec9b188ff4f7d40be57738a108079366060e/dcs-branch-merger/README.md#checkdtbranchtousrbranch-this-is-not-working-properly In the DCS Merger RCL the CheckDtBranchToUsrBranch function does not work as the name suggests. However this function is not used by TC Create so don't think it can be tested in TC Create it can be tested in the RCL if required. Joel is the one who worked on this RCL POC, he can give the specifics steps for the issue as required here or in the RCL repo as a new issue.

PR ScreenShot :
image
dcs-branch-merger:
image

This function in the DCS branch merger RCL will help check if there are any updates in the master branch (as demonstrated in the RCL demo: "This demo is a test of checking for an update of the user branch from master."). Currently, it checks from the user branch to the master branch, but it should be the other way around—from master to the user branch. Additionally, if you look at the PR screenshot, it shows 'master << test-CV,' which I believe is incorrect. It should create a PR like 'test-CV << master,' which helps determine if the master branch has any changes.

@Joel-C-Johnson
Copy link
Collaborator

We will be testing the issue #1609 fixed by Noah above on TC Create and updating it here soon.

tested it with the latest release (1.4.1), and it works as expected.

Steps for editing different books:

  • Login to tC create app in two browsers (use two credentials)
  • select the same org, resource, and lang for both credentials
  • select file TIT in one browser and PHM in another browser.
  • edit both files and save, then merge the files. (Clicking "merge my work" from the dashboard)
  • there are no conflict messages when we try to merge the files

Steps for editing same books:

  • Login to tC create app in two browsers (use two credentials)
  • select the same org, resource, and lang for both credentials
  • select file TIT in both browsers.
  • edit both files and save, then merge the files. (Clicking "merge my work" from the dashboard)
  • there will be conflicts messages when we try to merge the files

@Joel-C-Johnson
Copy link
Collaborator

Hi @elsylambert , Tested and merged the issue PR to develop and moved to QA App

@elsylambert
Copy link
Contributor Author

Works as expected in translationCore Create - v1.17 build 277-90c96ed.

  • When edits are made by two different users in two different books, no conflict is seen. Changes can be merged to master.
  • When edits are made by two different users in a same book but different rows, no conflict is seen. Changes can be merged to master.
  • When edits are made by two different users in a same book and same row, conflict is seen. Changes cannot be merged to master.
    This works as expected behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants