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

chore(release): publish v1.1.0 #437

Merged
merged 20 commits into from
Oct 10, 2023
Merged

chore(release): publish v1.1.0 #437

merged 20 commits into from
Oct 10, 2023

Conversation

MicaiahReid
Copy link
Contributor

No description provided.

MicaiahReid and others added 20 commits September 18, 2023 14:07
### Description

<!-- Describe the bug this PR fixes or the feature it adds. Link to any
related issues and PRs -->

#### Breaking change?

<!-- If applicable, list the APIs/functionality which this PR breaks -->

### Example

<!-- If applicable, add an example on how this improves the application
-->

---

### Checklist

- [x] All tests pass
- [x] Tests added in this PR (if applicable)
### Description

Previously, a serialized `PredicateStatus` would have the format:
```JSON
{ "scanning": { "last_evaluated_block": ... }
```
where the predicate status type is the key that points to the data. This
PR changes this format to be:
```JSON
{
  "type": "scanning",
  "info": { "last_evaluated_block": ... }
}
```
### Checklist

- [x] All tests pass
fix: op_return predicate evaluation
FAQ's -> FAQs
Fixes some bugs found along the way

---

### Checklist

- [x] All tests pass
- [x] Tests added in this PR (if applicable)
Test coverage before: 47.07%
Test coverage after: 63.30%
### Description

Previously, when the unconfirmed predicate status was set after the
status originally was scanning, we were adding the number of evaluated
blocks with the previous statuses number of blocks. When scanning, we
have a running total of blocks scanned, so we don't need to use the
previously stored data.

---

### Checklist

- [x] All tests pass
- [x] Tests added in this PR (if applicable)
### Description

This changes the predicate status timestamps:
 - from String (converted from a u128) to a u64
- this means we are now storing the data in seconds rather than
milliseconds
- makes them optional (so they will not appear in a serialized status if
set to `None`)

#### Breaking change?

Previously the timestamp was in milliseconds, now it's in seconds.
Anyone depending on the timestamp being in milliseconds could be
impacted by this change.


---

### Checklist

- [ ] All tests pass
- [ ] Tests added in this PR (if applicable)
couple grammar tweaks
Tweaked grammar and voice
changes to the CI workflow.
adding auto deployments using docker container digest to the k8s repo.
dev and stg will auto approve, while prod will require manual approval

---------

Co-authored-by: Charlie <2747302+CharlieC3@users.noreply.github.com>
### Description

The new field `include_contract_abi` already was optional for the
user-facing type `StacksChainhookNetworkSpecification`, but was not
optional for the internal type `StacksChainhookSpecification`. Any time
we converted to a `StacksChainhookSpecification`, we'd
`.unwrap_or(false)`, which seemed okay.

However, a running Chainhook node has the `StacksChainhookSpecification`
type saved in redis, so whenever a pre-existing node is restarted after
upgrading, it is missing the required `include_contract_abi` field and
errors.

This PR makes the field optional everywhere.

I'll need to think about how to add tests to prevent this sort of bug in
the future.

### Checklist

- [x] All tests pass
- [ ] Tests added in this PR (if applicable)
@MicaiahReid MicaiahReid requested a review from lgalabru October 10, 2023 18:13
@MicaiahReid MicaiahReid temporarily deployed to Development-mainnet October 10, 2023 18:39 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Development-testnet October 10, 2023 18:39 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Staging-testnet October 10, 2023 18:45 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Development-mainnet October 10, 2023 18:50 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Development-testnet October 10, 2023 18:50 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Staging-mainnet October 10, 2023 18:50 — with GitHub Actions Inactive
@MicaiahReid MicaiahReid temporarily deployed to Staging-testnet October 10, 2023 18:50 — with GitHub Actions Inactive
Copy link
Contributor

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

Thank you @MicaiahReid!

@MicaiahReid MicaiahReid merged commit 238c8eb into main Oct 10, 2023
13 of 15 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants