Releases: apigee/registry
v0.6.16
v0.6.15
This release mainly contains a fix to the registry
tool for #1228. Now the --config
option can be used to read registry
tool configuration from a file in an arbitrary location.
Changelog
v0.6.14
Changelog
- 76ddac3 Add snyk scan workflow (#1223)
- 82fd89e Trim the "@-" suffix from resource names before calling the List*Revisions APIs. (#1218)
- bce4232 add detailed help for get command (#1217)
- 74166d9 enable testing with no active configuration (#1215)
- 5c4748c default --nested to yaml output (#1214)
- 1c8a972 fix SpecRevisionTag foreign key migration query (#1213)
- 680bdef improve deployment query performance (#1211)
- 31e01c2 migrate should run without --no-migrate flag (#1210)
- a29d48b db migrate on startup (#1207)
v0.6.13
yaml storage, gcloud create
- registry apply
--yaml
option to store artifacts as yaml - registry config configurations create
--gcloud
option uses gcloud settings - improved help for various commands
- builds now use
go 1.20
Changelog
- 11486e8 Remove code needed for Go versions below 1.18 (#1201)
- 995ef9f allow nil bodies in create resource endpoints (#1202)
- c601ea6 switch builder to golang:1.20-bullseye (#1200)
- dbcf45d set builder to golang:1.20.4, remove toybox (#1197)
- 46787a5 improve apply and config command help (#1194)
- 33b2bb5 ensure migrate artifacts is idempotent (#1195)
- 391037f rewrite migrateArtifactsToRevisions to avoid dups (#1193)
- d52c911 Update setup-go action to v4 (#1190)
- 74de29d Update Go version to 1.20 (#1187)
- 074c047 Indent usage string, available commands, and available plugins (#1186)
- cd48182 Only print Available Plugins when the list is not empty. (#1185)
- 7af9790 add --gcloud flag to registry create (#1184)
- 9b8f9a4 Remove "All Rights Reserved." from copyright (#1183)
- f3ddf3b support both serialized protos and YAML (#1181)
- 8dab302 default version to empty, not latest (#1178)
- 78104e2 registry apply --yaml for artifacts (#1174)
- 0fef98b remove defaultTestServer conflict (#1173)
- e9cc44a use consistent yml extensions (#1171)
- 487c59d fix disable flag input (#1170)
- a07cc36 mega test coverage (#1169)
v0.6.12
registry tool plugins, enforcing lower-case restrictions on resource names
- Following AIP-122, we require that resource names be lowercase.
- Assorted improvements were made to the registry tool's linter plugin
- A new
kubectl
-style plugin mechanism was added that, for example, allowsregistry-experimental
subcommands to be called from theregistry
tool withregistry experimental
.
Changelog
- 2023f33 show available plugins in registry cli (#1167)
- ce5d8c3 remove glob chars from spectral target filename (#1165)
- b04c507 add debug flag that retains temporary files (#1166)
- 2d8c94b clear error when spectral is not installed (#1164)
- 8da9343 export project data (#1161)
- c420459 update project properties with registry apply (#1160)
- 1a03f32 validate +zip compression when indicated (#1162)
- 2e1642e names must be lowercase (#1158)
- 41f933b deprecate --max-actions in favor of --actions (#1157)
v0.6.11
Changelog
- f8221ae github workflow for check results (#1155)
- c8e4f30 github workflow for check results (#1155)
- ef59380 github action to install and setup the registry cli tool (#1156)
- 655faed enable CGO for sqlite3 (#1151)
- dc0c23a update actions/checkout version (#1147)
- 34dcf30 fix differences from rules audit (#1146)
- 1c547f1 Use "global" as the default location when location is unspecified (i.e. empty). (#1145)
- 093648a Loosen test constraint (appropriately) (#1144)
- 2b74ea4 Replace log...Fatal() calls with returned errors. (#1143)
- e9340da drop the APG_ prefix from env vars (#1142)
- 6e76c8a Convert remaining Cobra Run: instances to RunE: (#1137)
- 657836f Convert registry tool flags to variable-bound. (#1136)
- 5eecd98 Switch "registry annotate/label" to RunE (#1135)
- fd9fe50 Update dependency on longrunning protos (by rerunning code generators) (#1134)
- 8a0f3ba update docs for reference fields and update generated code (#1126)
v0.6.10
Changelog
- 31b1be9 quick fix to report failures from running the token-source. (#1132)
- a38ff58 Update 'compute lint' to use linter plugins. (#1125)
- 8155257 Automatically uncompress all spec data returned by the visitor package. (#1124)
- b3e1ddb Download specs gzipped for 'compute vocabulary' and visitor list operations. (#1122)
- e475a1e Use correct mime type for lint artifacts. (#1120)
v0.6.9
Improved query performance and registry
tool quality.
This release improves query performance of the registry server and updates the registry
tool with bug fixes, consistency improvements, and tests.
- New indexes are added to support faster listing of artifacts stored under spec and deployment resources.
- The
WorkerPool
utility is improved to return errors directly (improving reporting and testability) and errors that were causing tasks to be lost were fixed. - A typo causing
registry compute vocabulary
to fail for protocol buffer specs was fixed. - More subcommands download specs compressed, improving support for analysis of large specs.
compute score
and compute scorecardsubcommands now observe
registry.project` configuration.- configuration commands are simplified to allow
registry config set address
,registry config set project
, etc. - test coverage is now 70% (69.96%).
Upgrading
To ensure the latest indexes are added to an existing database, run the following:
registry rpc admin migrate-database
Changelog
- 7f91bf5 fix race condition in task (#1119)
- ddc4fbb Pass "true" for continueOnError from WorkerPoolIgnoreError. (#1117)
- 2e9fc58 Add basic tests of
registry compute complexity
for protos, openapi, and discovery (#1116) - 45b1c05 openapi and discovery-format tests for
registry compute vocabulary
(#1115) - 90ff63f add continueOnError param to WorkerPool (#1114)
- df7c3b4 return task error from WorkerPool (#1111)
- 5caf5e4 Fix error in "compute vocabulary" for protos, add test of proto vocabulary computation (#1112)
- ce5776d Accept gzip-encoded content in GetBytesForSpec() (#1109)
- 6781b69 make registry apply accept a list of files (#1101)
- e0951df fix token-source config prop (#1103)
- 8465753 enable usage and error messages, minor refactoring (#1100)
- 3e1e160 optimize db: add index, rewrite query (#1098)
- 7d83afe use grpctest.SetupRegistry() to simply tests (#1091)
- 1b9ba77 derive and encode openapi version in mimetype (#1092)
- 237026a address staticcheck lint errors (#1093)
- 73dadc5 report which file had error (#1095)
- 007e271 resolve name for compute score / scorecard (#1088)
- 1de4b89 add default namespace "registry" to config props (#1087)
- 8c73f01 ensure cmd use documents positional args (#1086)
- 5699873 rename test helper file to eliminate coverage hit (#1085)
- 1b41b14 Remove
registry vocabulary
subcommands (moved to-experimental
). (#1083) - ec6745c remove examples (#1082)
v0.6.8
registry apply
improvements
This release fixes what was probably the most annoying problem with registry apply
: because deployments expect to point to spec revisions, and spec revision ids aren't known until they are created, it was impossible to create a spec and a deployment that referenced it in a single YAML file.
This fixes that by observing that when we apply YAML files, we create specs before we create deployments, so deployment YAML can be written to point to a spec (without a revision ID) and when it is applied, registry apply
will just get and use the latest revision of that spec. So now we can apply YAML files that look like this:
apiVersion: apigeeregistry/v1
kind: API
metadata:
name: registry
data:
displayName: Apigee Registry API
versions:
- metadata:
name: v1
data:
displayName: v1
specs:
- metadata:
name: openapi
data:
filename: openapi.yaml
description: OpenAPI description of the Registry API
mimeType: application/x.openapi+gzip;version=3
sourceURI: https://raw.githubusercontent.com/apigee/registry/main/openapi.yaml
deployments:
- metadata:
name: prod
data:
apiSpecRevision: v1/specs/openapi
endpointURI: https://apigeeregistry.googleapis.com
Note that the apiSpecRevision
field just points to a spec and registry apply
will automatically look up the revision to use (and if a revision ID is included, we will continue to use that).
We also inadvertently broke the --version
flag in v0.6.7
. That is fixed now.
~/.registry/bin$ ./registry --version
registry version v0.6.8
Changelog
v0.6.7
Registry tool ease-of-use and server performance improvements
This includes minor improvements to the registry
tool command-line experience:
- Bulk (parallel) actions generally only warn when individual actions fail. Previously some would exit.
- Usage information is not printed when
registry get
doesn't find anything (usage information is usually irrelevant and distracting in these situations).
The registry-server
also has performance and monitoring improvements, notably:
- Indexes were added to speed listing of artifacts under revisioned resources (specs and deployments).
- Support for Prometheus monitoring was added.
Changelog
- b9f77d1 WorkerPools always warn (and never exit on errors) (#1077)
- c46b9de When
registry get
matches nothing, print "Not Found" to stderr and don't report an error. (#1073) - 4ee8fd6 instrument for prometheus (#1076)
- 50ec9b4 Add indexes to specs and deployments. (#1071)
- d9a0ebf Unhide generated rpc commands for Admin and Provisioning methods. (#1074)
- a405b01 Add benchmark that lists artifacts under each resource type. (#1068)
- 3248ec6 read nightly build for docker (#1067)
- a3511c9 Fix error in README (#1063)
- db1f198 Update golangci-lint version (#1064)
- 8b55e1e update github workflows and actions (#1065)
- d412d6c Replace wildcards with specific file names in download script. (#1062)