Skip to main content

Hello, 

We are trying to delete a unit on a container attribute using CDF toolkit. CDF toolkit identifies that there is a container change. However, this change is not reflected on the container and view schema after the deployment. No error raised.

Note: Adding and modifying container attribute unit works well.

Any ideas ? 

Thanks,

Hi Marwen,

In order to further troubleshoot your issue can you please provide the following details.

  • The command that you are using to delete the attribute of the container.
  • The version of the Toolkit (cdf --version)
  • Container YAML file.
  • What do you expect to happen when using the command to delete the attribute?

I’m looking forward to hearing back from you.


 

 

Hi, 

 

Apologies for the late reply. 

  • The command that you are using to delete the attribute of the container. => We are not trying to delete the attribute, just its unit. So I suppose it is just a modification. We are using the cdf-tk deploy --env=dev command.
  • The version of the Toolkit (cdf --version) =>  0.2.22
  • Container YAML file => see attached screenshots
  • What do you expect to happen when using the command to delete the attribute? => We expect when we delete the unit of the container attribute and deploy with cdf toolkit this will be reflected in CDF.
     
  • So to summarize : 
    When deploying with unit via cdf toolkit : 
     Yaml container definition : 
  • the result in CDF

    now change container definition to no unit : 

     

    Now deploy. The bellow is the result in CDF (no change) : 
     

    Thanks


The GraphQL you are seeing `TestUnit` is matching a view in DMS. When you do changes like that to a container you also have to delete and recreate the view such that the GraphQL can be regenerated with the change to the property.

 

Are you familiar with the difference between DMS and DML?


Reply