jmix-projects / jmix-old

DEPRECATED. Use https://github.com/jmix-framework/jmix
16 stars 3 forks source link

Dynamic attributes usage in Entity Log #448

Closed andreysubbotin closed 3 years ago

andreysubbotin commented 4 years ago

Log dynamic attributes as usual attributes

QA Notes:

Requirements

Steps:

  1. Create project
  2. add dynattr and audit addons in build.gradle:
    implementation "io.jmix.dynattr:jmix-dynattr-starter"
    implementation "io.jmix.dynattr:jmix-dynattr-ui-starter"

    implementation "io.jmix.audit:jmix-audit-starter"
    implementation "io.jmix.audit:jmix-audit-ui-starter"
  1. Create some entity and screens: editor and browser,
  2. add <dynattrui:dynamicAttributes/> facets to screens
  3. run application and setup dynamic attributes,
  4. setup audit including dynamic attribute,
  5. create/modify entities. ER:
    • Selected dynamic attributes logged (see it in Entity Log screen if Haulmont/jmix-ui#302 fixed or in audit_entity_log table in database)
owlet1997 commented 3 years ago

incorrect text of notification about applying changes after creating dynamic attribute: image should be "Changes applied"

owlet1997 commented 3 years ago

if instance was created with dynamic attribute of type boolean and value was 'false', after deleting this instance without updating this attribute is empty in the right table: image ER: this attribute is not empty and value is 'false'

owlet1997 commented 3 years ago

creating entities image image

dtaimanov commented 3 years ago

There are separate ticket for this bug: https://github.com/Haulmont/jmix-data/issues/43 "changesApplied" message will be fixed in that ticket too