Skip to content

OPDATA-5659 Improve PoR EA messaging for schedule-based data suppression#4689

Open
Subarna-Singh wants to merge 3 commits intomainfrom
OPDATA-5659
Open

OPDATA-5659 Improve PoR EA messaging for schedule-based data suppression#4689
Subarna-Singh wants to merge 3 commits intomainfrom
OPDATA-5659

Conversation

@Subarna-Singh
Copy link
Contributor

Closes #OPDATA-5659

Description

https://smartcontract-it.atlassian.net/browse/OPDATA-5659

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2026

🦋 Changeset detected

Latest commit: c942c53

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/proof-of-reserves-adapter Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Subarna-Singh Subarna-Singh marked this pull request as ready for review March 2, 2026 09:27
`Current: ${currentUTC.toISOString()}, ` +
`Window: [${startUTC.toISOString()} - ${endUTC.toISOString()}], ` +
`NextWindowStart: ${nextWindowStart.toISOString()}`
Logger.info(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will log every 10 seconds while the window is closed, right? Isn't that a lot of log spam?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is. I can remove the logging and just it in the error message.

`Window: [${startUTC.toISOString()} - ${endUTC.toISOString()}], ` +
`NextWindowStart: ${nextWindowStart.toISOString()}`
Logger.info(message)
throw new Error(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this cause a 400 or 500 error? Do we want to use an AdapterError and decide explicitly what status code to return?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants