Files
team/server
46a4e86f4d [MM-69366] Scope property field lookups by object type (#37146)
* [MM-69366] Scope property field lookups by object type

Add GetFieldByNameForObjectType and route the access-control attribute
lookups through it, so a user custom profile attribute is no longer
confused with the internal classification fields that share its name.
Deprecate the name-only GetFieldByName (kept only for the plugin API)
and move internal callers onto the scoped variant.

* Add test store mock expectations for GetFieldByNameForObjectType

The startup migrations now look up fields via the scoped method, so the
testlib mock store needs matching expectations — notably the managed
category field, whose ID is cached at startup.

* Fix store test to create valid PSAv2 property fields

Setting ObjectType makes a field PSAv2, which requires a valid target
type, so the test fields now use the system target level (with an empty
target ID) instead of an unset target type.

---------

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-25 08:17:13 -04:00
..
…
2026-05-20 13:21:14 -03:00
2026-04-21 02:33:20 -07:00
…