You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Clearing Metadata Errors

Whenever you provision a C3 package to your tag, you will get a multitude of metadata warnings, and in some cases errors.
This results in the following yellow or red banner at the top of your static console.

to clear these errors, simply issue

DbMetadataIssue.removeAll()

in the static console or

c3.DbMetadataIssue.removeAll()

through a connected python session.

Cleaning your Tag

When developing a C3 package, you frequently need to provision and re-provision progressively changing versions of a given package.
This can result in older versions of your data lingering on your Tag even though you're no longer using it. Additionally, when you use
your tag for a different package, you may leave behind old data which is not used.

You can remove data from your tag with either of the following commands

Tag.removeData()

for JavaScript, and

c3.Tag.removeData()

for Python.

Warning: Please be aware that this command will remove all data from your tag. Please be sure you are really finished using that data,
Or back it up if necessary.

Checking Your Authorization

For some of the above commands, you may not be authorized to execute it. To check this, you can use the Authorizer Type.
For example, to check whether Tag.removeData is allowed, execute the following in JavaScript:

Authorizer.isAuthorized("Tag", "removeData")

or

Authorizer.actionAuthzRoles({typeName: {typeName: 'Tag'}, action: 'removeData'})

and the same in Python would be:

c3.Authorizer.isAuthorized("Tag", "removeData")

or

c3.Authorizer.actionAuthzRoles(spec={'typeName': {'typeName': 'Tag'}, 'action': 'removeData'})
  • No labels