Skip to content

Conversation

@candiduslynx
Copy link
Contributor

@candiduslynx candiduslynx commented Sep 29, 2023

This allows using centralized JSON schema definition instead of tagging every scheduler.Strategy entry in plugin specs

@github-actions github-actions bot added the feat label Sep 29, 2023
@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: 47 lines in your changes are missing coverage. Please review.

Comparison is base (5dc9654) 48.89% compared to head (ad4b12c) 48.96%.

❗ Current head ad4b12c differs from pull request most recent head cf0e468. Consider uploading reports for the commit cf0e468 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1254      +/-   ##
==========================================
+ Coverage   48.89%   48.96%   +0.06%     
==========================================
  Files          89       90       +1     
  Lines        8313     8324      +11     
==========================================
+ Hits         4065     4076      +11     
  Misses       3873     3873              
  Partials      375      375              
Files Coverage Δ
scheduler/scheduler.go 68.52% <ø> (+12.83%) ⬆️
scheduler/strategy.go 21.66% <21.66%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

github-actions bot commented Sep 29, 2023

⏱️ Benchmark results

  • Glob-8 ns/op: 91.72

@candiduslynx candiduslynx marked this pull request as ready for review September 29, 2023 04:49
@github-actions github-actions bot added feat and removed feat labels Sep 29, 2023
func randSeq(n int) string {
b := make([]rune, n)
rand.Seed(time.Now().UnixNano())
rnd := rand.New(rand.NewSource(time.Now().UnixNano()))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this is merged after #1255 the diff goes away

Copy link
Member

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

Was a bit hard to see what changed due to the file contents moving, but seems like it's mainly the addition of func (Strategy) JSONSchema() *jsonschema.Schema and a test for it?

@kodiakhq kodiakhq bot merged commit 1cec01d into main Sep 29, 2023
@kodiakhq kodiakhq bot deleted the feat/jsonschema/scheduler-strategy branch September 29, 2023 08:29
kodiakhq bot pushed a commit that referenced this pull request Oct 2, 2023
🤖 I have created a release *beep* *boop*
---


## [4.12.0](v4.11.1...v4.12.0) (2023-10-02)


### Features

* Add JSON schema to scheduler strategy ([#1254](#1254)) ([1cec01d](1cec01d))


### Bug Fixes

* **deps:** Update github.com/apache/arrow/go/v14 digest to 00efb06 ([#1257](#1257)) ([e56f6f8](e56f6f8))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 7ded38b ([#1263](#1263)) ([332c255](332c255))
* **deps:** Update google.golang.org/genproto digest to e6e6cda ([#1258](#1258)) ([1b75050](1b75050))
* **deps:** Update google.golang.org/genproto/googleapis/api digest to e6e6cda ([#1259](#1259)) ([eb6a97d](eb6a97d))
* **deps:** Update google.golang.org/genproto/googleapis/rpc digest to e6e6cda ([#1260](#1260)) ([49940fd](49940fd))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.11.0 ([#1252](#1252)) ([41a6561](41a6561))
* **deps:** Update module github.com/getsentry/sentry-go to v0.24.1 ([#1262](#1262)) ([be03068](be03068))
* **deps:** Update module github.com/grpc-ecosystem/go-grpc-middleware/v2 to v2.0.1 ([#1261](#1261)) ([cf57d20](cf57d20))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/codegen that referenced this pull request Oct 2, 2023
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 2, 2023
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants