Skip to content

fix(types): Add missing JSON tags to DuplicateVoteEvidence and LightClientAttackEvidence types - #3543

Merged
alesforz merged 7 commits into
mainfrom
3528-evidence-missing-json-tags
Jul 23, 2024
Merged

alesforz merged 7 commits into
mainfrom
3528-evidence-missing-json-tags

Conversation

@alesforz

@alesforz alesforz commented Jul 22, 2024 •

Copy link
Copy Markdown
Collaborator

Closes #3528

Changes

Added missing JSON tags to DuplicateVoteEvidence and LightClientAttackEvidence types.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
    - [ ] Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@alesforz alesforz linked an issue Jul 22, 2024 that may be closed by this pull request
@alesforz alesforz self-assigned this Jul 22, 2024
@alesforz
alesforz requested a review from cason July 22, 2024 16:33
@alesforz alesforz added bug Something isn't working evidence labels Jul 22, 2024

@cason cason left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ready for review, in my opinion.

Comment thread types/evidence.go Resolved
@alesforz
alesforz marked this pull request as ready for review July 23, 2024 07:45
@alesforz
alesforz requested a review from a team as a code owner July 23, 2024 07:45
@alesforz
alesforz requested review from a team and cason July 23, 2024 07:45

@cason cason left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

We have to define to which release branches to backport this bug fix.

@alesforz
alesforz added this pull request to the merge queue Jul 23, 2024
Merged via the queue into main with commit fbca5ac Jul 23, 2024
@alesforz
alesforz deleted the 3528-evidence-missing-json-tags branch July 23, 2024 11:49
@alesforz alesforz added backport-to-v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels Jul 23, 2024
mergify Bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)
mergify Bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)

# Conflicts:
#	.changelog/v0.38.3/bug-fixes/3528-evidence-missing-json-tags.md
#	types/evidence_test.go
mergify Bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)

# Conflicts:
#	types/evidence_test.go
alesforz added a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (backport #3543) (#3548)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

Co-authored-by: Alessandro Sforzin <[email protected]>
alesforz added a commit that referenced this pull request Jul 24, 2024
…htClientAttackEvidence` types (backport #3543) (#3549)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <[email protected]>
Co-authored-by: Alessandro <[email protected]>
alesforz added a commit that referenced this pull request Jul 24, 2024
…htClientAttackEvidence` types (backport #3543) (#3550)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <[email protected]>
Co-authored-by: Alessandro <[email protected]>
alesforz pushed a commit that referenced this pull request Aug 14, 2024
…and `LightClientAttackEvidence` types (backport #3543) (#3549)"

This reverts commit 24b39c5.
alesforz pushed a commit that referenced this pull request Aug 15, 2024
Given the discussion in #3528, we are reverting the changes made by
#3543 in `v0.38.x` (backported with #3549).
Additionally, we are removing the changes made in #3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
alesforz pushed a commit that referenced this pull request Aug 15, 2024
Given the discussion in #3528, we are reverting the changes made by
#3543 in `v0.37.x` (backported with #3550).
Additionally, we are removing the changes made in #3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x bug Something isn't working evidence

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DuplicateVoteEvidence json serialization uses mixed-casing

2 participants