Releases: joyent/conch-api
v2.37.7
Release v2.37.7 [PR #963](https://github.com/joyent/conch/pull/963) - `add room information to pxe endpoints` === * Branch: ether/v2-room-in-pxe * Revision: f14da8abf * Labels: api, v2 People --- * Author: [karenetheridge](https://github.com/karenetheridge) * Merged By: [karenetheridge](https://github.com/karenetheridge) * Merged: 2019-12-06T16:41:03Z Commits --- * [44e03f](https://github.com/joyent/conch/commit/44e03fe802d26b498833de6842634f5c858b27fc) - `add room information to pxe endpoints` - - -
v2.37.6
Release v2.37.6 [PR #956](https://github.com/joyent/conch/pull/956) - `v2: setting nums` === * Branch: ether/v2/setting-nums * Revision: 1e327a8b0 * Labels: enhancement, v2 > They will still be stringified on db storage, however, and therefore strings when returned in a GET People --- * Author: [karenetheridge](https://github.com/karenetheridge) * Merged By: [karenetheridge](https://github.com/karenetheridge) * Merged: 2019-11-21T22:52:55Z Commits --- * [1a65c1](https://github.com/joyent/conch/commit/1a65c12a880a1220418260ddb252bc3106744a2b) - `allow device setting values to be numeric as well as stringy` - - -
v2.37.5
Release v2.37.5 [PR #955](https://github.com/joyent/conch/pull/955) - `fix SataSsdNum validation` === * Branch: v2/satassdnum * Revision: 7849ca52d * Labels: bug, v2, validation People --- * Author: [karenetheridge](https://github.com/karenetheridge) * Merged By: [karenetheridge](https://github.com/karenetheridge) * Merged: 2019-11-21T21:11:56Z Commits --- * [1dd24a](https://github.com/joyent/conch/commit/1dd24aaeaebeb45e51f40f6d774409681ba8e8c4) - `order of operations` - - -
v2.37.4
Release v2.37.4 [PR #954](https://github.com/joyent/conch/pull/954) - `v2.37.4 fixes` === * Branch: ether/v2.37.4-fixes * Revision: 7ce65fd69 * Labels: database, v2, validation > - bump version of sata_ssd_num validation that should have been done in v2.37.3 > - add unique constraint in rack on (room_id + name) (database constraints from #952; see also https://github.com/joyent/buildops-infra/issues/111) People --- * Author: [karenetheridge](https://github.com/karenetheridge) * Merged By: [karenetheridge](https://github.com/karenetheridge) * Merged: 2019-11-19T19:01:10Z Commits --- * [7fb278](https://github.com/joyent/conch/commit/7fb27879feef0161dc2d83965740527c40b8d577) - `version of sata_ssd_num validation should have been bumped` * [d0b7f9](https://github.com/joyent/conch/commit/d0b7f9eff414853394149f140ab65e657979d505) - `add unique constraint in rack on (room_id + name)` - - -
v3.0.0-b2
Release v3.0.0-b2
PR #936 - v3: b2 better database
- Branch: ether/v3-b2-better-database
- Revision: 17dbed7
- Labels: database, enhancement, refactor
- switch to a better and less buggy read-only db connection (better than the v2 fix in #935)
- edit each postgres connection's $0 for debugging purposes
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-07T00:21:06Z
Commits
- 7b10a0 -
properly use the read-only database user
- 378c9c -
increase log history size (loading validations consume 20+ lines)
- f9f14a -
make this a constant for easier reuse
- 5dde80 -
label each postgres connection, for debugging purposes
PR #938 - fixes for v3.0.0-b2
- Branch: ether/v3-b2-fixes
- Revision: e1d990c
- Labels: database
- accomodate db migration 0094 added to v2 (#937)
- tighten restrictions on allowed conch shell versions, now that kosh is released
- fix v3 build creation script
- tighten criteria for sending "no endpoint found" rollbar message (ignore
/devicecfg/...
)
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-07T19:09:09Z
Commits
- 642f70 -
some of these constraints and indexes may already be removed in v2
- c9692f -
fix minimum conch shell version to 3.0.0
- 7fdeef -
fix this script
- af55fd -
tighten criteria for sending "no endpoint found" rollbar message
PR #940 - v3 b2 enhancements
- Branch: ether/v3-b2-enhancements
- Revision: 5730292
- Labels: api, enhancement, v3.0
Adds new functionality to existing endpoints:
- all /room/* endponts can now also use room 'alias' in the path
- add ?serials_only to multi-device endpoints
Add
POST /device/:id_or_serial/build
for #931.
People
- Author: karenetheridge
- Reviewed By: dustinryerson - APPROVED
- Merged By: karenetheridge
- Merged: 2019-11-12T17:16:33Z
Commits
- 61ec25 -
this endpoint takes an array, so indicate that in the schema name
- bebfcf -
it makes no sense to have an empty payload in these POST endpoints
- b88bc1 -
add POST /device/:id_or_serial/build
- 429f55 -
Add ?serials_only option to GET /workspace/*/device and GET /build/*/device
- e0dd96 -
support referring to room by alias in all /room endpoints
PR #945 - v3 b2 fixes and enhancements
- Branch: ether/v3-b2-fixes
- Revision: 6d92fdd
- Labels: bug, database, docs, enhancement, tests, v3.0
fixes and internal enhancements that do not affect endpoints, except in error handling
- send message to rollbar for long or large message responses
- fix this bad use of no_db in tests
- some documentation fixes
- remove no-longer-used smartos files
- add --updated-since option to
thin_device_reports
- new command to reset user passwords and clear auth tokens
- gracefully handle SMTP errors
- make user_account.name unique
- fix for
create_user
: the user was not receiving the password if it was randomly-generated
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-12T23:56:02Z
Commits
- 4056b1 -
send message to rollbar for long or large message responses
- ad2180 -
fix this bad use of no_db in tests
- 8499a3 -
update the README for accuracy with v3
- 44bf15 -
goodbye smartos
- 71b260 -
add --updated-since option to thin_device_reports
- 8ed0ee -
new command to reset user passwords and clear auth tokens
- 11fa76 -
successful SMTP messages typically have a trailing newline
- ec362a -
gracefully handle SMTP errors
- eacf23 -
make user_account.name unique
- 38668c -
fix: the user was not receiving the password if it was randomly-generated
PR #947 - use proper base URL in email addresses and templates, rather than hardcoding
- Branch: ether/v3-fix-template-urls
- Revision: dabf083
- Labels: enhancement, v3.0, wat
This has been marked as a TODO for a very long time!
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-13T20:16:48Z
Commits
- 54a88c -
use proper base URL in email addresses and templates, rather than hardcoding
PR #951 - v3 b2 moar fixes
- Branch: ether/v3-b2-moar-fixes
- Revision: 9a9e0a9
- Labels: bug, tests
small fixes for v3.0.0-b2.
- handle absence of User-Agent header
- doc fixes
- nicer rollbar message payloads
- fix test logger history size (as seen on new-buildbot with a different kind of random)
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-14T20:34:22Z
Commits
- b3d86a -
this extra subref isn't needed
- 656ca1 -
guard against missing User-Agent header
- 69280a -
update docs
- 199c87 -
optimize these payloads for occurrence grouping
- f85b46 -
be more verbose
- 2415a1 -
fix test config override
PR #949 - only remove the organization from this build
- Branch: ether/v3-delete-build-org
- Revision: 86c7da2
- Labels: bug
fixes #948.
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-14T20:39:15Z
Commits
- 76c06b -
only remove the organization from this build
v2.37.2
Release v2.37.2
PR #937 - v2 database tweaks
- Branch: ether/v2-database-tweaks
- Revision: f46bf8c
- Labels: database, v2
- remove some redundant/unnecessary indexes to speed up db access
- label each postgres connection, for debugging purposes
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-07T17:44:30Z
Commits
- 7b17b5 -
remove some redundant/unnecessary indexes
- 6ac30d -
label each postgres connection, for debugging purposes
v2.37.1
Release v2.37.1
PR #935 - v2: fix ro db
- Branch: ether/v2-fix-ro-db
- Revision: 159493f
- Labels: database, high priority, v2
persist the ro db connection only for the request
On staging, we were seeing lots of:
"DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: no connection to the server.."
due to an AutoCommit=0 connection disconnecting (and we cannot automatially reconnect to this type of connection).
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-06T15:54:11Z
Commits
- 184691 -
this is not the master branch - docs are moot now
- 01d9c1 -
persist the ro db connection only for the request
v3.0.0-b1
Release v3.0.0-b1
PR #927 - v3: the "last" fixes
- Branch: ether/v3-last-fixes
- Revision: 93fb2aa
- Labels: bug, database, docs
- several documentation fixes, including more clarification of how user roles are calculated
- when determining a user's role for a device, do not use device->rack->build->role when device phase is production or later (bringing consistency with how device phase is used elsewhere in role calculations)
- small fix to an earlier database migration after re-running migrations on conch-v3-staging
- logs for
bin/conch <command>
are now sent tolog/command.log
, and tests tolog/test.log
, maintaining separation fromlog/production.log
which gets normal runtime API logs
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-11-04T19:49:08Z
Commits
- 0c5101 -
upgrade many module dependencies
- 9214b1 -
fix errors in (commented-out portion of) rollbar payload schema
- dd5acd -
fix resultset documentation
- de6ace -
fix comment
- 3ac7c5 -
stop using hybrid "similar to" when ~ operator is superior
- 680737 -
fix "wide char in print" warning
- 6a479e -
fix doc typo
- fda7ea -
clarify datacenter.vendor_name, datacenter_room.vendor_name
- 647241 -
fix doc wording re role checks
- 721606 -
fix: consider device phase when finding device->rack->build role entries too
- ee1275 -
migration tweaks from last edge application
- 3ec821 -
log which database we are connecting to
- 7f3531 -
keep logs for tests, one-off commands separate from runtime api endpoint logs
- a42888 -
speed up these tests by skipping db initialization
v3.0.0-a9
Release v3.0.0-a9
PR #924 - v3 a9 fixes
- Branch: ether/v3-a9-fixes
- Revision: 2d9b746
- Labels: api, bug, database
- work around shell bug where all fields would be transmitted in a POST payload even if they were not requested to be changed by the user
- make the user_account.email index a bit nicer
- fix check_layouts script to display bad racks, layouts by their build membership, not workspace
- do not send rollbar messages for unsupported endpoints when they don't match one of our recognized prefixes (where most likely they are coming from a spammer, not a misprogrammed client)
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-10-28T21:18:02Z
Commits
- aa7fed -
clarify how to get all validation results
- aad302 -
fix for POST /user/:target -- do not return 409 if email address is not actually changing
- bdd7de -
switch user_account.email index to be case-insensitive
- 3362de -
only send rollbar message for unrecognized URLs when the prefix matches a known path
- e7a060 -
display builds, not workspaces, in check_layouts output
PR #925 - v3: more device data
- Branch: ether/v3-more-device-data
- Revision: fcf8262
- Labels: api, enhancement, needs-shell, needs-ui, v3
More data added to device endpoints, for the UI build pages.
- add ?with_device_health to GET /build, GET /build/:id
- add rack_name to Device, Devices response schemas (see below)
- add sku to DetailedDevice, Device, Devices, DeviceLocation response schemas (see below)
for #922.
Device endpoints affected:
GET /device/:id_or_serial_number
GET /device/:id_or_serial_number/location
GET /device?:key=:value
GET /build/:build_id_or_name/device
GET /workspace/:workspace_id_or_name/device
GET /workspace/:workspace_id_or_name/relay/:relay_id>/device
People
- Author: karenetheridge
- Reviewed By: perigrin - APPROVED
- Reviewed By: dustinryerson - APPROVED
- Merged By: karenetheridge
- Merged: 2019-10-30T18:49:03Z
Commits
- 03d726 -
add ?with_device_health to GET /build, GET /build/:id
- f16ed4 -
add sku to DetailedDevice, Device, Devices, DeviceLocation response schemas
- 521365 -
add rack_name to Device, Devices response schemas
PR #926 - v3: a9 more build enhancements
- Branch: ether/v3-a9-more-build-enhancements
- Revision: dbf0a6a
- Labels: api, enhancement, v3
- allow "started" as an optional field to POST /build/:id_or_name
- add support for "cloning" a build (POST /build)
- Add search parameters to for devices in a build: GET /build/:id_or_name/device?health=&health=<other_value>&active_minutes=X&ids_only=1
People
- Author: karenetheridge
- Reviewed By: perigrin - APPROVED
- Merged By: karenetheridge
- Merged: 2019-10-30T21:31:53Z
Commits
- 5eb90b -
allow "started" as an optional field to POST /build/:id_or_name
- 548f09 -
add support for "cloning" a build
- 997129 -
Add search parameters to GET /build/:id_or_name/device:
v2.37.0
Release v2.37.0
PR #923 - fix for POST /user/:target -- do not return 409 if email address is n…
- Branch: ether/fix-update-user
- Revision: 78ddfb5
- Labels: api, v2
…ot actually changing
...and also return 204 if nothing was updated at all.
This works around a shell bug where fields would be transmitted in the post
payload even if they were not requested to be changed, which then results in
invalid errors. e.g.:conch-prod --json admin user <existing email> promote {"error":true,"message":"duplicate user found"}
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2019-10-28T19:22:21Z
Commits
- a55365 -
fix for POST /user/:target -- do not return 409 if email address is not actually changing