Book a Demo

Author Topic: Profile Helper overwrites itself  (Read 3765 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Profile Helper overwrites itself
« on: May 19, 2020, 04:11:48 pm »
Hey everyone,


If you construct a profile where stereotype A extends metaclass M, and stereotype B specializes stereotype A, the Profile Helper doesn't work.

Specifically, if you bring up the helper for either stereotype and specify some tag groupings, M._tagGroups and M.tagGroupings get overwritten. Meaning you can't use the Profile Helper to specify tag groupings for two stereotypes which extend the same metaclass, because the second time you do it EA overwrites the result from the first time.

This is especially strange since the profile helper correctly identifies the metaclass from stereotype B. In other words, it works out the right metaclass by following both specializations and extensions, but it doesn't bother to check if there are any tag groupings in it.

If you edit the attributes manually, the resulting profile behaves as expected and groups all A and B tags as instructed.


/Uffe
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Profile Helper overwrites itself
« Reply #1 on: May 19, 2020, 04:18:35 pm »
Reported.
My theories are always correct, just apply them to the right reality.