Skip to main content

Delete a field from a view without changing data model version

  • December 11, 2024
  • 2 replies
  • 47 views

Marwen TALEB
MVP

Hello, 

 

We recently decided to not show a field X in one view. X is still in the container, since containers are immutable. We just changed the definition of the view. We did this change without bumping the data model version.

This resulted into a surprising outcome: deployment was successful using CDF toolkit but the field is still in the view and can be queried. 

Only when we incremented the version of the data model the field disappeared. 

We expect one of these two outcomes:

  • Raising an error in cdf tool kit if change will not be considered only when the version changes. Cdf tool kit does this in some cases. IMHO this should part of these cases.
  • Taking into account the field deletion in the current version

 

Happy to discuss.

 

Thanks

 

 

 

2 replies

Forum|alt.badge.img+3
  • Seasoned
  • December 11, 2024

It seems that in order for data models to provide functionality to query previous versions as changes are made, the only acceptable behaviour would have to be the first expectation, in order to preserve that model’s queryability.


Marwen TALEB
MVP
  • Author
  • MVP
  • December 12, 2024

@Jesse Jenken , indeed!