Skip to content

Fix OpenSearch and UptimeRobot failing validation on deploy - #144

Merged
clarkd merged 3 commits into
mainfrom
work/dc/fix-opensearch-uptimerobot-validation
Oct 13, 2026
Merged

clarkd merged 3 commits into
mainfrom
work/dc/fix-opensearch-uptimerobot-validation

Conversation

@clarkd

@clarkd clarkd commented Oct 13, 2026

Copy link
Copy Markdown
Member

📋 Summary

This PR fixes OpenSearch and UptimeRobot failing to redeploy to dev with a 500 from the Management API. Both plugins last deployed in March. Since then, deploy-time validation has got stricter, and each one has a field it now rejects.

  • UptimeRobot v2: the monitors import step set dataSourceConfig: {} on its data stream. The strict import step schema rejects that key (the file format key is config). The value was empty, so I've removed it.
  • OpenSearch v1: the Index autocomplete on the Search data stream loads its options from a data stream, but had no dataSourceConfig, which the UI schema requires for that source. I've added an empty one, as every other plugin does. I've also removed the old pagingConfig_mode / pagingConfig_offset_base keys from both data streams. The WebAPI handler never reads them, and squaredup validate rejects them.

Both plugins get a patch version bump. This PR touches two plugins, so the one-plugin-per-PR check will fail. I'm skipping the PR automation for this one and validated locally instead.

🔗 Related issue(s)

  • Found while redeploying plugins for SAAS-10250

🧩 Plugin details

  • Plugin name: OpenSearch (v1), UptimeRobot (v2)
  • Type of change:
    • Bug fix
    • New datastream
    • Enhancement to existing datastream
    • Performance improvement
    • Documentation / metadata / logo
    • Other (please describe):

🧪 Testing

squaredup validate passes locally for both plugins. Before these changes, it reported the same errors that dev's deploy hit, plus the paging keys. I also ran the deploy path's own archive validators (getDataStreamsFromArchive / getImportDefinitionsFromArchive) against both plugins, and both pass now.

I haven't tested against live OpenSearch or UptimeRobot instances. The changes only touch config the handler either doesn't read or treats the same way when it's empty.

⚠️ Breaking changes

Does this PR introduce any breaking changes?

  • No
  • Yes (please describe):

📚 Documentation

  • Documentation updated
  • No documentation changes needed

✅ Checklist

  • This PR changes a single plugin only
  • No secrets or credentials included
  • Plugin, datastream and UI naming follow SquaredUp guidelines
  • I agree to the Code of Conduct

🤖 Generated with Claude Code

clarkd and others added 3 commits October 13, 2026 23:08
The index autocomplete on the Search data stream loads its options from
a data stream but had no dataSourceConfig, which the UI schema requires
for that source. Add an empty one, as every other plugin does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The monitors import step set dataSourceConfig on its data stream, which
the strict import step schema rejects (the file format key is config).
The value was empty, so remove it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pagingConfig_mode and pagingConfig_offset_base are an old flattened
form the WebAPI handler never reads (it reads config.paging, and treats
a missing one as no paging, which is what mode none meant). The WebAPI
data stream schema used by squaredup validate rejects them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@clarkd clarkd added the bug Something isn't working label Oct 13, 2026
@github-actions

Copy link
Copy Markdown

🧩 Plugin PR Summary

📦 Modified Plugins

  • plugins/OpenSearch/v1
  • plugins/UptimeRobot/v2

📋 Results

Step Status
Scope & version ❌ Failed
Validation ⏭️ Skipped
Deployment ⏭️ Skipped

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: 5f2b0b88-0336-4aca-8eee-6d6c799c84eb
📥 Commits

Reviewing files that changed from the base of the PR and between 46726e1 and 519c223.

📒 Files selected for processing: 5
  • plugins/OpenSearch/v1/dataStreams/indices.json
  • plugins/OpenSearch/v1/dataStreams/search.json
  • plugins/OpenSearch/v1/metadata.json
  • plugins/UptimeRobot/v2/indexDefinitions/default.json
  • plugins/UptimeRobot/v2/metadata.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@clarkd
clarkd marked this pull request as ready for review October 13, 2026 22:10
@clarkd
clarkd requested a review from a team October 13, 2026 22:10
@clarkd
clarkd merged commit 2e6508a into main Oct 13, 2026
1 check failed
@clarkd
clarkd deleted the work/dc/fix-opensearch-uptimerobot-validation branch October 13, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant