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

Adding a migrate method and adding the logic to convert status channels #30

Merged
merged 4 commits into from
Aug 13, 2021

Conversation

vincenzopalazzo
Copy link
Member

@vincenzopalazzo vincenzopalazzo commented Aug 12, 2021

This commit introduces a migrate procedure to be tested, and in addition, this includes a JSON conversion of the status channel.

It was stored like a map to make the access easy but it works out of the graphql convention. For this reason, the json payload now contains a list of the status channel, and the final user needs to manage the access to this data structure.

Missing steps are:

  • Adding metric version in the code, this needs to be in the payload to manage the conversion (Fixes Adding a deprecated procedure #17 ).
  • testing the migration options to migrate the actual map of status channels with a list of status channels.
  • Adding Go test in Github CI

Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com

This commit introduce a migrate procedure to be tested, and in addition, this include a json conversion of status channel.

It was stored like a map to make the access easy but it works out of the graphql convention. For this reason, the json payload now contains a list of status channel, and the final user need to manage the access to this datastructure.

Missing step are:
- [ ] Adding metric version in the code, this need to be in the payload to manage the conversion.
- [ ] testing the migration options to migrate the actual map of status channels with a list of status channels.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo vincenzopalazzo added enhancement New feature or request refactoring Some idea to make refactoring of the plugin format_change Require a change in a JSON format of the payload metric_one Refering to the metric_one of the ln-metrics-rfc plugin architecture labels Aug 12, 2021
@vincenzopalazzo vincenzopalazzo self-assigned this Aug 12, 2021
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo vincenzopalazzo merged commit 79c3135 into main Aug 13, 2021
jsarenik pushed a commit to jsarenik/go-lnmetrics.reporter that referenced this pull request Nov 29, 2021
Adding a migrate method and adding the logic to convert status channels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request format_change Require a change in a JSON format of the payload metric_one Refering to the metric_one of the ln-metrics-rfc plugin architecture refactoring Some idea to make refactoring of the plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a deprecated procedure
1 participant