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

Automatic Dictionary Feature #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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 Critical

The hard-coded value "YOUR-ACCOUNT-TOKEN" is used as
authorization header
.
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