Skip to content

Conversation

@cotrin
Copy link
Collaborator

@cotrin cotrin commented May 24, 2024

To avoid having to create dictionary for future applications, I created logic that will automatically create the dictionary based on the text information on dashboards and widgets.

What is still missing:

  • Endpoints to get widget info and to edit widget were manually done and not using the SDK
  • The script is not integrated with the CLI, so its based on the account token at the moment.
  • Change the logic to only edit the entities (dashboards/widgets) after the dictionary is done.
  • Sorting the dictionary alphabetically seems like a good idea, but has not been done yet.
  • Lacking information on the properties of widgets that contain such information, so a proof of concept was made with the information I was able to gather myself.

import { removeDuplicatesAndEmptyStrings } from "./remove-strings";

async function dictionary() {
const accountToken = "YOUR-ACCOUNT-TOKEN";

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "YOUR-ACCOUNT-TOKEN" is used as [authorization header](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant