Project

General

Profile

Actions

bug #8767

closed

Workflow support for publish flag

Added by Andreas Müller over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Highest
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

When changing an unpublished synonym to a MAN aftwards the MAN is published. This is not correct. The publish flag should have the same value as the synonym before.

Please also check for similar operations.

These operations are:

  • swap synonym and accepted taxon - works
  • change synonym to MAN - works
  • change MAN to synonym - works
  • change accepted to synonym - works
  • change synonym to accepted taxon - works
  • move synonym/homotypic group to another taxon - works, but open issue: check synonyms of the homotypic group
  • move accepted to new parent - works

Related issues

Related to EDIT - bug #9426: Set publish flag for Synonyms in accordance with accepted taxon publish flag ClosedKatja Luther

Actions
Related to EDIT - bug #9516: Check publish flag of all homotypic synonyms when movingNewKatja Luther

Actions
Actions #1

Updated by Katja Luther over 4 years ago

  • Target version changed from Release 5.12 to Release 5.13
Actions #2

Updated by Katja Luther over 4 years ago

  • Target version changed from Release 5.13 to Release 5.14
Actions #3

Updated by Andreas Müller over 4 years ago

  • Target version changed from Release 5.14 to Release 5.15
Actions #4

Updated by Andreas Müller about 4 years ago

  • Target version changed from Release 5.15 to Release 5.18
Actions #5

Updated by Katja Luther over 3 years ago

  • Target version changed from Release 5.18 to Release 5.19
Actions #6

Updated by Andreas Müller over 3 years ago

  • Target version changed from Release 5.19 to Release 5.21
Actions #7

Updated by Andreas Müller over 3 years ago

  • Related to bug #9426: Set publish flag for Synonyms in accordance with accepted taxon publish flag added
Actions #8

Updated by Andreas Müller over 3 years ago

  • Tags changed from euro+med to euro+med, fast
Actions #9

Updated by Katja Luther over 3 years ago

This is fixed, also for pp synonyms.

I also adapted the changeSynonymToAcceptedTaxon, the newly created taxon has the same publish state as the synonym, is this the wanted behaviour?

And the clone method of TaxonBase also clones the publish flag now.

Actions #10

Updated by Katja Luther over 3 years ago

  • Status changed from New to Resolved
  • Assignee changed from Katja Luther to Andreas Müller
  • % Done changed from 0 to 60
Actions #11

Updated by Andreas Müller over 3 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Andreas Müller to Katja Luther

Katja Luther wrote:

I also adapted the changeSynonymToAcceptedTaxon, the newly created taxon has the same publish state as the synonym, is this the wanted behaviour?

Yes I think this is ok. Maybe only in case the publish Flag of the new taxon differs from the publish flag of the parent of the new taxon we could add a warning dialog saying that it differs and that it should be checked for correctnes.

Actions #12

Updated by Katja Luther over 3 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Katja Luther to Andreas Müller

Andreas Müller wrote:

Katja Luther wrote:

I also adapted the changeSynonymToAcceptedTaxon, the newly created taxon has the same publish state as the synonym, is this the wanted behaviour?

Yes I think this is ok. Maybe only in case the publish Flag of the new taxon differs from the publish flag of the parent of the new taxon we could add a warning dialog saying that it differs and that it should be checked for correctnes.

now there is a message box when the publish flags differ.

Actions #13

Updated by Andreas Müller over 3 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Andreas Müller to Katja Luther

The message pops up 2x now

Actions #14

Updated by Andreas Müller over 3 years ago

Also swapping synonym with accepted has strange behavior: only the names swap but the publish flag stays. E.g. if old accepted is published the new accepted is also published and if the old synonym is unpublished the new synonym is also unpublished. This I think is unwanted.
In the rare case that the both status differ, we should keep the flag with the according taxon but warn that the flags differ.

Actions #15

Updated by Andreas Müller over 3 years ago

Accordingly we should check ALL operations to handle the publish flag correctly.

Actions #16

Updated by Katja Luther over 3 years ago

Andreas Müller wrote:

The message pops up 2x now

With the actual nightly build I can not reproduce this.

Actions #17

Updated by Andreas Müller over 3 years ago

Andreas Müller wrote:

The message pops up 2x now

I can not reproduce this anymore.

Actions #18

Updated by Andreas Müller over 3 years ago

Andreas Müller wrote:

Accordingly we should check ALL operations to handle the publish flag correctly.

E.g. also move synonym to another accepted taxon should do the same check as synonymToAccepted. If the old accepted taxon has a different publish flag then the new accepted taxon a warning should appear.

Actions #19

Updated by Andreas Müller over 3 years ago

By the way, currently this is handled as an info (i) but I think a warning would be better.

Actions #20

Updated by Katja Luther over 3 years ago

Changing an unpublished accepted to a synonym of an published accepted taxon, how should we handle this? Keep the publish flag from the old accepted taxon and warn?

Actions #21

Updated by Andreas Müller over 3 years ago

Katja Luther wrote:

Changing an unpublished accepted to a synonym of an published accepted taxon, how should we handle this? Keep the publish flag from the old accepted taxon and warn?

Yes, I think a warning is needed here. In general we should always warn if not all related taxa (taxon/syn itself, old parent/accepted, new parent/accepted) do have the same pub. status.

Actions #22

Updated by Katja Luther over 3 years ago

  • Status changed from Feedback to Resolved

implemented the publish check also for accepted to syn.

Actions #23

Updated by Katja Luther over 3 years ago

  • Assignee changed from Katja Luther to Andreas Müller
Actions #24

Updated by Katja Luther over 3 years ago

  • Description updated (diff)
Actions #25

Updated by Katja Luther over 3 years ago

  • Description updated (diff)
Actions #26

Updated by Andreas Müller over 3 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Andreas Müller to Katja Luther

Testing swap:

  • if parent taxon has state 1 and old+new taxon state 2 no warning appears
  • if warning appears it says mentions only 2 taxa not all 3. To not to have a warning for each different case we should have 1 warning saying "Parent taxon, old accepted taxon and new accepted taxon do not all have the same ..."
Actions #27

Updated by Andreas Müller over 3 years ago

Katja, can you please test correct functionality for each of the above operations and leave a message in this ticket what you have tested.

E.g.

swap: parent 0, taxon 0, syn 1 => message appears (OK)
swap: parent 1, taxon 0, syn 1 => no message (FALSE)
swap: parent 1, taxon 1, syn1 => no message (OK)
...

Actions #28

Updated by Katja Luther over 3 years ago

For operations like swap I do not see the need to test for the parent if the old and the new accepted have the same publish status, because the status of the child is still the same.

Actions #29

Updated by Andreas Müller over 3 years ago

Katja Luther wrote:

For operations like swap I do not see the need to test for the parent if the old and the new accepted have the same publish status, because the status of the child is still the same.

OK, you are right. In this special case it is not really needed to check all 3 related taxa.

Actions #30

Updated by Andreas Müller over 3 years ago

  • Description updated (diff)
Actions #31

Updated by Andreas Müller over 3 years ago

Tested Syn => MAN/ppSyn

acc 1, syn 0 => MAN 0 (OK)
acc 0, syn 1 => MAN 1 (OK)
acc 0, syn 0 => MAN 0 (OK)

Actions #32

Updated by Andreas Müller over 3 years ago

Tested MAN/ppSyn => Syn

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 0 (FALSE)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

The new synonym always looses its state when publish flag was checked. But it should keep the state (without warning in this case).

Actions #33

Updated by Andreas Müller over 3 years ago

Tested change accepted to synonym

Old parent 1, old acc 1, new acc 1 => new syn 0, w/o warning (FALSE, should be 1 w/o warning)
Old parent 1, old acc 1, new acc 0 => new syn 0, with warning (OK)
Old parent 1, old acc 0, new acc 1 => new syn 1, w/o warning (FALSE, should be 1 with warning)
Old parent 1, old acc 0, new acc 0 => new syn 0, with warning (FALS, should be 0 w/o warning)

Actions #34

Updated by Andreas Müller over 3 years ago

Andreas Müller wrote:

Tested change accepted to synonym

Old parent 1, old acc 1, new acc 1 => new syn 0, w/o warning (FALSE, should be 1 w/o warning)
Old parent 1, old acc 1, new acc 0 => new syn 0, with warning (OK)
Old parent 1, old acc 0, new acc 1 => new syn 1, w/o warning (FALSE, should be 1 with warning)
Old parent 1, old acc 0, new acc 0 => new syn 0, with warning (FALS, should be 0 w/o warning)

The evaluation assumes that the state of the old parent does not matter as discussed via email.

Actions #35

Updated by Andreas Müller over 3 years ago

change synonym to accepted taxon

Old acc 1, old syn 1, new parent 1 => new acc 1 w/o warning (OK)
Old acc 1, old syn 0, new parent 1 => new acc 0 with warning (OK)
Old acc 1, old syn 1, new parent 0 => new acc 1 with warning (OK)
Old acc 1, old syn 0, new parent 0 => new acc 0 w/o warning (OK)
Old acc 0, old syn 1, new parent 1 => new acc 1 w/o warning (OK), old acc should have no influence

This operation looks ok.

Actions #36

Updated by Katja Luther over 3 years ago

Andreas Müller wrote:

Tested MAN/ppSyn => Syn

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 0 (FALSE)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

The new synonym always looses its state when publish flag was checked. But it should keep the state (without warning in this case).

this is fixed.

Actions #37

Updated by Andreas Müller over 3 years ago

Tested move synonym/homotypic group to another taxon

Old acc 1, old syn 1, new acc 1 => new syn 1 w/o warning (OK)
Old acc 1, old syn 0, new acc 1 => new syn 0 with warning (OK)
Old acc 1, old syn1 1, old syn2 0, new acc 1 => new syn1 1, new syn2 0 w/o warning (FALSE, the homotypic synonym syn2 should also be checked) - if any of the synonyms in the HG differs from state of the new acc taxon the warning should come
Old acc 1, old syn 1, new acc 0 => new syn 1 with warning (OK)
Old acc 1, old syn 0, new acc 0 => new syn 0 w/o warning (OK)

Generally correct, but not yet implemented for full homotypic group

Actions #38

Updated by Andreas Müller over 3 years ago

Katja, can you do the same check for "move accepted to new parent". I don't if this is already fully fixed, committed and build in nightly

Actions #39

Updated by Katja Luther over 3 years ago

Andreas Müller wrote:

Andreas Müller wrote:

Tested change accepted to synonym

Old parent 1, old acc 1, new acc 1 => new syn 0, w/o warning (FALSE, should be 1 w/o warning)
Old parent 1, old acc 1, new acc 0 => new syn 0, with warning (OK)
Old parent 1, old acc 0, new acc 1 => new syn 1, w/o warning (FALSE, should be 1 with warning)
Old parent 1, old acc 0, new acc 0 => new syn 0, with warning (FALS, should be 0 w/o warning)

The evaluation assumes that the state of the old parent does not matter as discussed via email.

I think the warnings should come when the new accepted taxon and the synonym have different publish flags and I checked it again and it looks like this:

old acc 1, new acc 1 => new syn 1
old acc 1, new acc 0 => new syn 1 with warning
old acc 0, new acc 1 => new syn 0 with warning
old acc 0, new acc 0 => new syn 0

Actions #40

Updated by Katja Luther over 3 years ago

Andreas Müller wrote:

Katja, can you do the same check for "move accepted to new parent". I don't if this is already fully fixed, committed and build in nightly

moved acc 0, new parent 1 => warning
moved acc 0, new parent 0 => no warning
moved acc 1, new parent 1 => warning -> false

Actions #41

Updated by Katja Luther over 3 years ago

Katja Luther wrote:

Andreas Müller wrote:

Katja, can you do the same check for "move accepted to new parent". I don't if this is already fully fixed, committed and build in nightly

moved acc 0, new parent 1 => warning
moved acc 0, new parent 0 => no warning
moved acc 1, new parent 1 => warning -> false

this is fixed, now:

moved acc 0, new parent 1 => warning
moved acc 0, new parent 0 => no warning
moved acc 1, new parent 1 => no warning
moved acc 1, new parent 0 => warning

Actions #42

Updated by Andreas Müller over 3 years ago

  • Subject changed from Change Synonym to Misapplied Name handles publish flag not correctly to Workflow support for publish flag
Actions #43

Updated by Andreas Müller over 3 years ago

Katja Luther wrote:

Andreas Müller wrote:

Tested MAN/ppSyn => Syn

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 0 (FALSE)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

The new synonym always looses its state when publish flag was checked. But it should keep the state (without warning in this case).

this is fixed.

for me it does not work yet

Actions #44

Updated by Andreas Müller over 3 years ago

Katja Luther wrote:

Andreas Müller wrote:

Andreas Müller wrote:

Tested change accepted to synonym

Old parent 1, old acc 1, new acc 1 => new syn 0, w/o warning (FALSE, should be 1 w/o warning)
Old parent 1, old acc 1, new acc 0 => new syn 0, with warning (OK)
Old parent 1, old acc 0, new acc 1 => new syn 1, w/o warning (FALSE, should be 1 with warning)
Old parent 1, old acc 0, new acc 0 => new syn 0, with warning (FALS, should be 0 w/o warning)

The evaluation assumes that the state of the old parent does not matter as discussed via email.

I think the warnings should come when the new accepted taxon and the synonym have different publish flags and I checked it again and it looks like this:

old acc 1, new acc 1 => new syn 1
old acc 1, new acc 0 => new syn 1 with warning
old acc 0, new acc 1 => new syn 0 with warning
old acc 0, new acc 0 => new syn 0

I agree about the handling of the warning and I tested again and everything works, except for 1x for the second case (no warning appeared) but I could not reproduce, so I guess in general it works. However, we should watch it a bit.

P.S: Looks like I mixed case 2 and 3 somehow in my original message

Actions #45

Updated by Katja Luther over 3 years ago

Andreas Müller wrote:

Katja Luther wrote:

Andreas Müller wrote:

Tested MAN/ppSyn => Syn

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 0 (FALSE)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

The new synonym always looses its state when publish flag was checked. But it should keep the state (without warning in this case).

this is fixed.

for me it does not work yet

maybe I missed to commit, I try again, when jenkins is ready.

Actions #46

Updated by Katja Luther over 3 years ago

Katja Luther wrote:

Andreas Müller wrote:

Katja Luther wrote:

Andreas Müller wrote:

Tested MAN/ppSyn => Syn

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 0 (FALSE)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

The new synonym always looses its state when publish flag was checked. But it should keep the state (without warning in this case).

this is fixed.

for me it does not work yet

maybe I missed to commit, I try again, when jenkins is ready.

tested again with nightly on test server:

acc 1, MAN 0 => Syn 1 (FALSE)
acc 1, MAN 1 => Syn 1 (OK)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 0 (FALSE)

but with local server with same TaxonServiceImpl it is:

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 1 (OK)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 1 (OK)

Actions #47

Updated by Katja Luther over 3 years ago

Now also MAN -> Synonym works as expected:

acc 1, MAN 0 => Syn 0 (OK)
acc 1, MAN 1 => Syn 1 (OK)
acc 0, MAN 0 => Syn 0 (OK)
acc 0, MAN 1 => Syn 1 (OK)

Actions #48

Updated by Katja Luther over 3 years ago

  • Description updated (diff)
  • Status changed from Feedback to Resolved
  • Assignee changed from Katja Luther to Andreas Müller

I think we can close this ticket, I checked all operations mentioned above.

Actions #49

Updated by Katja Luther over 3 years ago

  • Description updated (diff)

create follow up ticket for the publish check of the whole homotypic group

Actions #50

Updated by Katja Luther over 3 years ago

  • Related to bug #9516: Check publish flag of all homotypic synonyms when moving added
Actions #51

Updated by Andreas Müller over 3 years ago

  • Status changed from Resolved to Closed
  • Assignee changed from Andreas Müller to Katja Luther
  • Priority changed from New to Highest
  • % Done changed from 60 to 100

Yes this can be closed.

Actions #52

Updated by Andreas Müller about 3 years ago

  • Tags changed from euro+med, fast to euro+med
Actions

Also available in: Atom PDF