Book a Demo

Author Topic: V14 different browser order  (Read 6822 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
V14 different browser order
« on: May 08, 2018, 11:46:13 am »
Our corporate repository (SQL Server) has 11 project roots.  If I open the repository in v13.5 I get the familiar order of roots (since v11).
In v14 I get a completely different order and if I move the one that's supposed to be the first up one (using browser arrows) (towards the top - it's about 6th down), it jumps to number 2 and the whole list of roots changes order!

What's going on? Anyone else seen this?

If I exit EA and re-enter, the original, weird order comes up, it doesn't retain the previous order (as did all previous versions).

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: V14 different browser order
« Reply #1 on: May 08, 2018, 05:09:37 pm »
Haven't tried on SQL repository. Order seems ok on eap file.
I did notice that the up and down arrows seem to be disabled in the project browser though.
Happy to help
:)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: V14 different browser order
« Reply #2 on: May 08, 2018, 05:17:50 pm »
Haven't tried on SQL repository. Order seems ok on eap file.
I did notice that the up and down arrows seem to be disabled in the project browser though.
I tried it on an .EAP (A2K) clone of the repository and it also has the problem.  Haven't touched this clone in weeks.

Another bug not reported yet seems specific to SQL Server.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Benno Dielmann

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-1
    • View Profile
Re: V14 different browser order
« Reply #3 on: May 08, 2018, 07:52:37 pm »
This seems to be a bug.

I've got version 14.0.1418 and did the following:

1. Created a new empty Project (local project, i.e. file on my harddrive, ending with ".eapx")
2. Renamed the root node "Model" to "One"
3. Added a new root node "Two" (context menu -> "Add Root Node...")
4. Selected the newly created root node
5. Added a new root node "Three" => The new node is created above the root node "Two", not below as I would expect

The order of root nodes is now

One
Three
Two

6. I closed and reopened the project. It opens with a changed order of root nodes:

Three
Two
One

7. I changed the order with the arrow icons of the Project Browser toolbar to

One
Two
Three

8. Closed and reopened the project. The changed order was not remembered, it reverted to

Three
Two
One

=> Bug.

We will postpone going from EA 12.1 to EA 14 until this bug is fixed...

Benno
All models are wrong. Some are useful. - George E. P. Box

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: V14 different browser order
« Reply #4 on: May 09, 2018, 09:30:33 am »
Thanks for steps that we can try to reproduce.
 
5. Added a new root node "Three" => The new node is created above the root node "Two", not below as I would expect
At this point in time, the items are sorted alphabetically. You haven't added one to the end of an unsorted list. What you are seeing is correct.

6. I closed and reopened the project. It opens with a changed order of root nodes:

Three
Two
One
I'm still getting One,Three,Two. My suspicion is that you performed step 7 before reloading.

7. I changed the order with the arrow icons of the Project Browser toolbar ...
Things get interesting here... If I try to re-order with the arrows I don't see any change, but I can see a change in the database. When I reload the model the changes are reflected.

Reordering with Ctrl + Up/Down shows me the order immediately.

At this point, I have reproduced a bug. Unfortunately it's not that the model is loaded incorrectly.

I know it's hard to share models, could you try running the following query in the SQL scratch pad?

Code: [Select]
select Name,TPos from t_package where Parent_ID = 0 order by TPos
How does the result compare to the order of root nodes in your model?

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: V14 different browser order
« Reply #5 on: May 09, 2018, 11:19:03 am »
The order of root nodes is now

One
Three
Two

Ah when I tried it I used "Root Node 1", "Root Node 2","Root Node 3", etc so that might explain why I didn't see the bug.
Happy to help
:)

Benno Dielmann

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-1
    • View Profile
Re: V14 different browser order
« Reply #6 on: May 09, 2018, 07:18:39 pm »

6. I closed and reopened the project. It opens with a changed order of root nodes:

Three
Two
One
I'm still getting One,Three,Two. My suspicion is that you performed step 7 before reloading.

No. I performed the steps exactly as reported.

7. I changed the order with the arrow icons of the Project Browser toolbar ...
Things get interesting here... If I try to re-order with the arrows I don't see any change, but I can see a change in the database. When I reload the model the changes are reflected.

Strangely, for me the arrows do work, same as Ctrl+UP/Down.

Reordering with Ctrl + Up/Down shows me the order immediately.

At this point, I have reproduced a bug. Unfortunately it's not that the model is loaded incorrectly.

I know it's hard to share models, could you try running the following query in the SQL scratch pad?

Code: [Select]
select Name,TPos from t_package where Parent_ID = 0 order by TPos
How does the result compare to the order of root nodes in your model?

Is there any way to attach files to posts in this forum? I could provide the model as it is just an empty eapx project with three root nodes.

Anyway, your SQL query returns

Name;TPos;
One;1;
Two;2;
Three;3;

while, at the same time, the Project Browser shows the root nodes as

Three
Two
One

So there is clearly a bug.

Edit:
I found out that Project Browser sort order seems to be by Package_ID in descending order (instead of TPos).
« Last Edit: May 09, 2018, 08:57:22 pm by Benno Dielmann »
All models are wrong. Some are useful. - George E. P. Box

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 344
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: V14 different browser order
« Reply #7 on: May 16, 2018, 02:41:42 am »