bug from writing records #144

Closed
opened 2024-02-02 19:13:28 +00:00 by zramsay · 4 comments
Member

i get this error in the console, and no ability to view published records, after doing something funky (i think trying to publish an app deployment request without having published an app record)

i get this error in the console, and no ability to view published records, after doing something funky (i think trying to publish an app deployment request without having published an app record)
Member

Are you able to reproduce this error (if so, can you include the steps here)?

Are you able to reproduce this error (if so, can you include the steps here)?
Author
Member

to reproduce: publish a record that is valid yaml but an "invalid" record, e.g., the following records has a meta field with no attributes:

  type: GeneralRecord
  name: image-registration-record
  version: 0.0.2
  value: "cute-rare-animal"
  category: birbit
  tags:
    - golden
    - pheasant
    - trespassing
  meta:

then, the console will not work by throwing the previously uploaded screenshot error. At least, the console should ignore the malformed record rather than not display any of them. Ideally, laconicd would reject publication of a malformed record (which it definitely does not doo, but bad YAML will not get published)

to reproduce: publish a record that is valid yaml but an "invalid" record, e.g., the following records has a meta field with no attributes: ``` type: GeneralRecord name: image-registration-record version: 0.0.2 value: "cute-rare-animal" category: birbit tags: - golden - pheasant - trespassing meta: ``` then, the console will not work by throwing the previously uploaded screenshot error. At least, the console should ignore the malformed record rather than not display any of them. Ideally, laconicd would reject publication of a malformed record (which it definitely does not doo, but bad YAML will not get published)
ashwin referenced this issue from a commit 2024-02-08 06:17:59 +00:00
ashwin referenced this issue from a commit 2024-02-08 06:27:14 +00:00
Member

This has been handled now.

Have tested the changes with fixturenet-laconic-loaded stack (steps) with an additional step to publish the malformed record and checking it in console

@zramsay can you see if it works for you?

This has been handled now. - Relevant PRs: * https://git.vdb.to/cerc-io/laconic-sdk/pulls/56 * https://git.vdb.to/cerc-io/laconic-registry-cli/pulls/55 * https://git.vdb.to/cerc-io/laconic-console/pulls/46 - Releases: * https://git.vdb.to/cerc-io/laconic-sdk/releases/tag/v0.1.15 * https://git.vdb.to/cerc-io/laconic-registry-cli/releases/tag/v0.1.10 * https://git.vdb.to/cerc-io/laconic-console/releases/tag/v1.3.8 Have tested the changes with [fixturenet-laconic-loaded](https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/main/stack_orchestrator/data/stacks/fixturenet-laconic-loaded) stack ([steps](https://github.com/cerc-io/stack-orchestrator/blob/main/docs/laconicd-with-console.md)) with an additional step to publish the malformed record and checking it in console @zramsay can you see if it works for you?
Author
Member

yes

yes
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd-deprecated#144
No description provided.