Why dont I see more recent history before pulling?

0
I'm not new to Mendix, but quite new to Git in Mendix and I find it hard to grasp. Below a my daily routine, which can't be right. Am I doing something wrong?   I'm using Mx 10.18.1 and see my colleagues have pushed changes in the bottom right. When I click on that number (5), I only see my own last commits in the history window that just opened. What's the logic of the history window if I don't see the latest pushed commits? There is no relation between the displayed number (5) and the information shown in the history.   Now I need to close the window, do a pull and then again open the history? OK, let's pull, as I don't have any changes, this should be easy. Why do I get this warning? It's not a warning BTW, it's blocking me from pulling...   Ah, apparently the theme-compiled.css has changed, but that's invisible in the changes pane. Well, let's Revert all changes and then pull again. Finally I can Pull and Show history to see the changes of my colleagues. Way too many steps to "Update" my app, don't you think?
asked
2 answers
1

Changing the History view so it can also show remote changes is on our roadmap. This requires a rewrite of the History dialog (which we intend to rebuild as a non-blocking panel instead of a blocking dialogue), which is why it's sadly non-trivial.

 

The themecache issue is very persistent, and we will pick this up again after 10.21 (March 2025). Gitignore is a workaround that works.

answered
0

This is indeed due to the way Git works. Git tracks changes locally so it will only check for new commits when a pull is done. In order to do a Pull, your changes have to be committed to Git because Git will also do a merge of the pulled changes.

The flow of this is usually not very intrusive but it does work different than SVN which was used by Mendix previously. What makes it annoying sometimes is, like you said, the change of the compiled css file. This is a generated file and ideally should be added to the gitignore file so that it wont be picked up.

I usually select the option 'Commit locally' if I want to pull but not ready to have my changes pushed yet. This options is under the dropdown on the Commit screen, by default 'Commit and Push' is selected.

answered