question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: several empty keys are added when the last top-level key is removed via the CLI

See original GitHub issue

IN https://github.com/meltano/meltano/pull/6308 I found that if you have an additional meltano.yml file like so:

# schedules.meltano.yml
schedules:
- name: run_github_commits
  interval: '@daily'
  job: github_data

If you remove that schedule via the CLI that file will look like:

# schedules.meltano.yml
plugins: {}
schedules: []
jobs: []
environments: []

This isn’t ideal because the diff can be confusing. Functionally it’s fine, but I’d expect either the final file to either be schedules: [] or just blank.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tayloramurphycommented, Jul 19, 2022

@aaronsteers yes, this is low priority and in the product backlog.

1reaction
edgarrmondragoncommented, Jul 18, 2022
  • Does this happen for all files where the final key is removed? So, if we only have one meltano.yml file (with no project_id or other top level keys), do we still get the other top-level keys appearing when the last schedule is removed?
  • Does this happen for other top-level keys? For instance, if I only have environments and I remove them all in the CLI, do the other keys “pop in” once the last top-level key is removed?

@aaronsteers this only happens in included files when all top-level shared keys (environments, schedules, jobs, plugins) are left empty after an operation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common validation errors when creating issue forms
The error can be fixed by correcting the value to be a non-empty string. If the field is not required, you should delete...
Read more >
NEAR CLI | NEAR Documentation - NEAR docs
The NEAR Command Line Interface (CLI) is a tool that enables to interact with the NEAR network directly from the shell. Among other...
Read more >
CLI Interface - cloud-init 22.4.2 documentation
This executes cloud config Module Reference configured to run in the init, config and final stages. The modules are declared to run in...
Read more >
Each child in an array or iterator should have a unique "key ...
Keys help React identify which items have changed, are added, or are removed. Keys should be given to the elements inside the array...
Read more >
Removing Invalid Entries in the Add/Remove Programs Tool
Start Registry Editor (Regedit.exe). Locate the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. Locate the key to be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found