[midPoint-git] [Evolveum/midpoint] f51a94: Fix repo values for RTaskWaitingReason

mederly noreply at github.com
Thu Apr 2 12:38:07 CEST 2020


  Branch: refs/heads/support-4.0
  Home:   https://github.com/Evolveum/midpoint
  Commit: f51a94b536e7211d58362e77b024084e5752934f
      https://github.com/Evolveum/midpoint/commit/f51a94b536e7211d58362e77b024084e5752934f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/enums/RTaskWaitingReason.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/util/RUtil.java

  Log Message:
  -----------
  Fix repo values for RTaskWaitingReason

In 3.9 this enum has values of 0, 1, 2. In 4.0 the "1" was removed,
shifting value of 2 to 1. Fortunately, since 4.0 we don't use values
other than 0 (at least it seems so); but in order to avoid migration
issues we now restored the deleted value of 1 as a placeholder.

Mapping of enums should be changed to be less fragile. Until that,
we CANNOT delete intermediary values from R-enums to avoid this kind
of problems.

This resolves MID-6117.

(cherry picked from commit ce6cc3630faa8a0a9aa180deff2891fd126befcc)




More information about the midPoint-svn mailing list