Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of Datafield Categories with baskets fails #2256

Closed
shake-spear opened this issue Dec 21, 2020 · 3 comments
Closed

Export of Datafield Categories with baskets fails #2256

shake-spear opened this issue Dec 21, 2020 · 3 comments
Assignees
Milestone

Comments

@shake-spear
Copy link

Expected Behavior

Exporting Custom Datafields using Configuration Baskets should also export Datafield Categories.

Current Behavior

Exporting Custom Datafields with Configuration Baskets ignores Datafield Categories. Definitions of datafield categories as well as assignment of datafields to categories get lost during export.

Possible Solution

Steps to Reproduce (for bugs)

  • add a new datafield category
  • create a new datafield
  • assign newly created category to newly created datafield
  • create one config basket exporting everything
  • import configuration basket into a new director installation

=> the newly created datafield gets imported - the datafield category is missing (the assignment of the datafield to the category either, i.e. the ID in the database in column category_id = NULL)

Your Environment

  • Director version (System - About): 1.8.0
  • Icinga Web 2 version and modules (System - About): 2.8.2
  • Icinga 2 version (icinga2 --version): r2.12.1-1
  • Operating System and version: Ubuntu 20.04.1 LTS
  • Webserver, PHP versions: apache2 / 2.4.41-4ubuntu3.1, php7.4 / 7.4.3-4ubuntu2.4
@Thomas-Gelf
Copy link
Contributor

Can be reproduced, thanks for reporting this!

@Thomas-Gelf Thomas-Gelf self-assigned this Jan 11, 2021
@Thomas-Gelf Thomas-Gelf added this to the 1.8.1 milestone Jan 11, 2021
@wp-perc
Copy link
Contributor

wp-perc commented Apr 9, 2021

+1

@Thomas-Gelf Thomas-Gelf modified the milestones: 1.8.1, 1.8.2 Jul 12, 2021
@dgoetz
Copy link
Contributor

dgoetz commented Feb 2, 2022

With 1.8.1 and the current master the behavior has changed in the way it complains about an "Integrity constraint violation" during restore of the snapshot as in the basket the id of the category is stored for the field, but the category is not (as far as I can see it), so it is worse than before in my eyes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants