Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
beat.editor
beat.editor
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • beat
  • beat.editorbeat.editor
  • Issues
  • #239

Closed
Open
Opened Jun 27, 2019 by Flavio TARSETTI@flavio.tarsetti
  • Report abuse
  • New issue
Report abuse New issue

Library editor forces a dump of an optional key "uses:{}" for the available libraries when the field is empty

Summary

The library editor requires fixing. The key "uses" is set mandatory during the dump when it should actually be an optional field

Steps to reproduce

The bug is identified here:

https://gitlab.idiap.ch/beat/beat.editor/blob/v2/beat/editor/test/test_libraryeditor.py#L40 and explained in detail: beat.core!79 (closed)

What is the current bug behavior?

The current behavior forces the library to have a dump "uses" key

What is the expected correct behavior?

The schema of the library is explicit about it being an optional field. So if empty we should not get a "uses:{}" at the dump

The test needs to be fixed accordingly

Relevant code:

https://gitlab.idiap.ch/beat/beat.editor/blob/v2/beat/editor/test/test_libraryeditor.py#L40

Assignee
Assign to
[v2] 1 - Edition/Visualization for small editors
Milestone
[v2] 1 - Edition/Visualization for small editors
Assign milestone
Time tracking
None
Due date
None
1
Labels
E library
Assign labels
  • View project labels
Reference: beat/beat.editor#239