Roundup Tracker - Issues

Issue 2551243

classification
yaml output of schema-dump.py broken
Type: behavior Severity: minor
Components: Command-line interface Versions:
process
Status: new works for me
:
: : rouilj, schlatterbeck
Priority: low : Effort-Low, StarterTicket

Created on 2022-11-24 18:03 by rouilj, last changed 2022-11-24 19:34 by rouilj.

Messages
msg7673 Author: [hidden] (rouilj) Date: 2022-11-24 18:03
In msg 7663 on issue 2551195 Ralf reported:

    Note that the yaml output of schema-dump.py was already broken, it tries
    to split a string on '<' assigning the result to a 2-tuple resulting in
    a ValueError. May very well be that this works with the standard schema, though.

I tested this against two server, one a demo (with csrf protection) and the other
an enhanced tracker. I can't reproduce the error.

I updated the script to set csrf protection headers and will see if Ralf can reproduce.
It may be his tracker only. If so, close this as not reproducible.
msg7675 Author: [hidden] (schlatterbeck) Date: 2022-11-24 19:03
My hunch why it fails in my tracker: I do have a class which has only one property (name). I guess the rudimentary parser is confused by this.
msg7677 Author: [hidden] (rouilj) Date: 2022-11-24 19:34
I don't think that's it. I added:

  single = Class(db, "single", name=String())

to the demo tracker and got:

   single:
     name:         String

in the yaml. Also on my big tracker I have a timelog which has a single interval
property.
History
Date User Action Args
2022-11-24 19:34:34rouiljsetmessages: + msg7677
2022-11-24 19:03:16schlatterbecksetmessages: + msg7675
2022-11-24 18:12:26rouiljsetresolution: works for me
2022-11-24 18:12:10rouiljsettitle: Note that the yaml output of schema-dump.py was already broken, it tries to split a string on '<' assigning the result to a 2-tuple resulting in a ValueError. May very well be that this works with the standard schema, though. -> yaml output of schema-dump.py broken
2022-11-24 18:03:00rouiljcreate