Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Releases: joyent/conch-api

v2.19.3

01 Oct 16:46
Compare
Choose a tag to compare

release v2.19.3

fix session expiration to actually be what it said on the tin

v2.20.1

28 Sep 21:18
Compare
Choose a tag to compare

release v2.20.1.

make recursive workspace queries more efficient by removing duplicate workspace ids in subquery

fix remaining use of CMM that I missed in 8b61d500 (#432)

remove is_uuid format that should have been removed in 53dead81 (#467)

skip scratch files when loading sql

add missing PKs to user_workspace_role, workspace_datacenter_{rack,role}
This will let us delete user_workspace_role records in "conch clean_permissions".

add user id to output of GET /workspace/:workspace_id/user
closes #468.

v2.20.0

27 Sep 19:07
bbfd36d
Compare
Choose a tag to compare

Stable Release v2.20.0

PR #429 - new endpoint to list all users+workspaces: GET /user

  • Branch: ether/get-all-users
  • Revision: ca04c18
  • Labels: enhancement, needs-shell

closes github #396.

People

Commits

  • 56a10a - ensure tabs stay out of the yaml files
  • 7e6319 - verify email format in json schema
  • 16bcc7 - add more fields to the result of GET /user/<id or email>
  • 6ea748 - new endpoint to list all users+workspaces: GET /user

PR #430 - Changelog Generator

  • Branch: sungo/changelog-generator
  • Revision: 71e7917
  • Labels: docs

New tools to generate shiny changelogs. Also remove some out of date sample config files.

People

Commits

  • d27341 - remove old and out of date nginx config
  • 9b4d02 - script to generate shinier changelogs

PR #432 - DBIC infrastructure improvements

  • Branch: ether/20180913-dbic-infrastructure
  • Revision: 2d1cfc8
  • Labels: database, refactor

There are no breaking changes here; this is all internal infrastructure improvements.

People

Commits

  • d638ac - use faster related_resultset when possible
  • cb9206 - add automatic "alias" attribute to db_<source>s resultset helper
  • 1adfee - be more explicit with options in dump rule
  • 1b6cf5 - join tables should not have nullable FKs
  • 4ab3b2 - remove unused columns from subquery, and rename internal alias
  • d019c5 - remove empty resultset class
  • 90d494 - move resultset method to a more intuitive location
  • 8b61d5 - use next::method (via "mro") instead of Class::Method::Modifiers

PR #437 - speed up device_settings queries

  • Branch: ether/device_settings-index
  • Revision: a2a0a21
  • Labels: database, high priority
  • add index on device_id
  • search using existing name+(deactivated is null) index
  • abort earlier when there are no changes to a single setting

closes #433.

People

Commits

  • 400033 - speed up device_settings queries

PR #448 - port conch-stats endpoints to conch

  • Branch: ether/conch-stats
  • Revision: cc0a5f8
  • Labels: enhancement

closes #434.

The only endpoint being used presently is /workspace/:workspace/device-totals.
This change also requires a config change (see buildops-infra).

People

Commits

  • 99cf80 - create a new parent class for our result classes
  • c770ca - add ->self_rs method to all result classes
  • c4c424 - port conch-stats endpoints to conch

PR #449 - search for device by arbitrary setting

  • Branch: ether/search-device-by-setting
  • Revision: 40d59eb
  • Labels: enhancement, needs-shell

..by extending the existing GET /device/?foo=bar endpoint.
closes #431.

People

Commits

  • a4d9b6 - only search for active devices
  • 233d4b - search for device by arbitrary setting
  • 77ea90 - fix log and error message on no match

PR #450 - remove all uses of IO::All

  • Branch: ether/remove-IO-All
  • Revision: 6204e70
  • Labels:

closes #445.

People

Commits

  • 878539 - remove all uses of IO::All

PR #451 - convert ghch from LWP to HTTP::Tiny

  • Branch: ether/lwp-to-http-tiny
  • Revision: b655cd3
  • Labels:

...and repair cpanfile.snapshot
closes #446.

People

Commits

  • 5fcd5b - convert ghch from LWP to HTTP::Tiny
  • 071c15 - upgrade Data::Printer to latest alpha to get off of File::HomeDir

PR #455 - a bit more json schema validation

  • Branch: ether/json-schemas
  • Revision: 08b605d
  • Labels:

People

Commits

  • 28e9fc - minor json schema cleanup and notes
  • 3566ba - add input validation to create workspace, invite user endpoints

PR #457 - Separate workspace 'admin' privileges from system administrator privileges

  • Branch: ether/user-is_admin
  • Revision: 97b4a73
  • Labels: database, needs-shell
  • requires a config change in buildops-infra - see joyent/buildops-infra#54.
  • closes #443.

People

Commits

  • 31bb4e - add default permission checks on /workspace/:workspace_id/* endpoints
  • f3f677 - factor out global_auth(), as nothing else uses it
  • 7211d6 - remove erroneous (and harmless, but useless) $self references
  • 923b81 - add user_account.is_admin
  • 537f87 - disambiguate is_admin helper by renaming to is_workspace_admin
  • d49211 - more disambiguation: rename "global admin" to "system admin"

PR #462 - Prep for recursive workspaces

  • Branch: ether/prep-for-recursive-workspaces
  • Revision: 6041229
  • Labels: database

part one of work for #373. No new endpoints, but a few queries may get faster.

People

Commits

  • 19c201 - add ->prefetch helper to resultsets
  • cb40fa - add json_cmp_deeply test helper function
  • [65cf5c](65cf5cf...
Read more

v2.19.2

25 Sep 20:52
Compare
Choose a tag to compare

tag fix. No changes.

HOTFIX: speed up device_settings queries

14 Sep 20:53
Compare
Choose a tag to compare
  • 4000335 speed up device_settings queries

HOTFIX: speed up device_settings queries

14 Sep 21:04
Compare
Choose a tag to compare
  • 4000335 speed up device_settings queries

v2.19.0

12 Sep 21:28
cb8bb41
Compare
Choose a tag to compare

PR #415 - fix reference to column name

  • Branch: ether/fix-hardware_product_id
  • Revision: dba039c
  • Labels: bug

This addesses rollbar exception #52.

People

Commits

  • 4faad1 - fix reference to column name

PR #414 - separate out the device_report query from the rest

  • Branch: ether/fix-slow-device-report-prefetch
  • Revision: 5e135d9
  • Labels: bug

This is apparently causing slowdowns on staging.

People

Commits

  • 92ec76 - separate out the device_report query from the rest

PR #416 - this field is different in the input payload vs. the schema

  • Branch: ether/morefix-hardware_product_id
  • Revision: e2df915
  • Labels: bug

People

Commits

  • 9ba4d8 - this field is different in the input payload vs. the schema

PR #413 - burn device_validate, device_validate_criteria tables, phase 2

  • Branch: ether/nuke-device_validate-phase2
  • Revision: f3cbe71
  • Labels: database

Drop tables in the db schema.
For github #397.

People

Commits

  • cb2fa0 - fix db reset script
  • e572a4 - burn device_validate, device_validate_criteria tables, phase 2

PR #420 - modify hardware_vendor.name constraint to allow for deletions

  • Branch: ether/hardware_vendor-unique-name
  • Revision: 879638c
  • Labels: bug, database

for GH #419.

People

Commits

  • 79d69b - modify hardware_vendor.name constraint to allow for deletions

PR #422 - More json schema fixes

  • Branch: ether/more-json-schema-fixes
  • Revision: 9690d73
  • Labels:

People

Commits

  • 48959f - fix json schema for WorkspaceRackSummary: VALID is a possible status type
  • a6dd6b - fix json schema for WorkspaceProblems

PR #421 - in Controller::DatacenterRack#update, if the user provides a "role" parameter, map it to the new db field name

  • Branch: sungo/rack-update-role-bug
  • Revision: 81c2715
  • Labels: bug

People

Commits

  • 2ae002 - in Controller::DatacenterRack#update, if the user provides a "role" parameter, map it to the new db field name

PR #417 - rename columns for rack unit size, position; add FK; adjust formatting of WorkspaceRack response

  • Branch: ether/rack_unit_size_position
  • Revision: 196cf47
  • Labels: api, database, needs-ui

renames some db columns for clarity, and changes the formatting of the GET /workspace/:workspace_id/rack/:rack_id endpoint.

@perigrin this mostly impacts you, so I don't want to merge this until you've signed off on it.

People

Commits

  • a4549d - rename columns for rack unit size, position; add FK
  • 1c4f0d - adjust formatting of WorkspaceRack response

PR #424 - generate CSV data for /workspace/:id/rack/:id

  • Branch: ether/datacenter_rack_layout-with-csv
  • Revision: 84b9fda
  • Labels: enhancement, needs-ui

closes github #360.

People

Commits

  • c9f8e2 - add ->hri, for fetching raw data structures
  • 740505 - generate CSV data for /workspace/:id/rack/:id

PR #425 - remove endpoint: GET /workspace/:workspace_id/validation_state

  • Branch: ether/remove-validation_state-endpoint
  • Revision: 5d31a6b
  • Labels: api, breaking

for github #400

People

Commits

  • 7bd4a1 - remove endpoint: GET /workspace/:workspace_id/validation_state

PR #426 - burn device_role, device_service and related join tables and FKs

  • Branch: ether/burn-device_role-and-device_service
  • Revision: 260a0d7
  • Labels: api, breaking, database

closes github #423.

People

Commits

  • 86130e - burn device_role, device_service and related join tables and FKs

PR #428 - Documentation updates

  • Branch: sungo/docs
  • Revision: cb8bb41
  • Labels: docs

People

Commits

  • 335858 - remove the obsolete openapi spec docs
  • 84ee15 - remove the old notes
  • 3b3d0b - remove some old unused config files
  • e0e862 - a write up on how conch api development works these days
  • b56d08 - update the readme

v2.18.2

07 Sep 16:37
Compare
Choose a tag to compare
  • 701fa8b in Controller::DatacenterRack#update, if the user provides a "role" parameter, map it to the new db field name

v2.18.1

05 Sep 22:05
Compare
Choose a tag to compare

Stable Release v2.18.1

  • 6c32e0c fix reference to column name
  • 011ca3c separate out the device_report query from the rest
  • fd83fd3 this field is different in the input payload vs. the schema

v2.18.0

05 Sep 18:48
cf14e80
Compare
Choose a tag to compare
  • cf14e80 Merge pull request #411 from joyent/ether/no-login-by-name

    • 2101b7b remove ability to /login via user_account.name
  • 50ff5f2 Merge pull request #410 from joyent/ether/device-hostname

    • 03ab6f3 add support for device hostnames
    • 8d7862e return status 500 when validation plan not found
    • 023cabe fix: also set updated field when saving updates
  • 2afa5cd Merge pull request #409 from joyent/ether/json-schema-fixes

    • 3f742d8 remove unused properties of the DeviceNic json schema
    • 17c7f54 fix broken json schemas
  • d2f367b Merge pull request #406 from joyent/ether/datacenter_rack-new-columns

    • 64b4d37 add serial_number, asset_tag to datacenter_rack
    • 0f32113 validate output for GET /workspace/:workspace_id/rack
    • 25a52f9 validate input for POST /workspace/:workspace_id/rack
    • 61c4a33 these helpers are no longer used by any models
    • 68bfd95 convert and remove Conch::Model::DatacenterRackRole
    • df01f3b convert and remove Conch::Model::Datacenter
    • bcd5199 convert and remove Conch::Model::DatacenterRack
    • e2004f8 convert and remove Conch::Model::DatacenterRackLayout
    • e9d5b14 convert and remove Conch::Model::DatacenterRoom
    • 76cc94f fix: make sure our time module is loaded
  • 442f555 Merge pull request #408 from joyent/ether/morefix-workspace-rack-output

    • 5059158 fix another column transcription error
    • f24d834 make the WorkspaceRack schema more accurate
    • ed04e72 these keys should not have been changed in the last commit
    • 4dd1056 add warning tests to most test files
  • 8d49e07 Merge pull request #407 from joyent/ether/fix-workspace-rack-output

    • 414fe53 restore "role" field in output of GET /workspace/:workspace_id/rack/:rack_id
  • d6ac938 Merge pull request #405 from joyent/ether/device-interface-routes

    • 3e82ad1 new interfaces for accessing device interface data
    • c6af0e6 collapse device_nic_state into device_nic
    • c89fedc drop old backup we don't need anymore
  • 1e1f25b Merge pull request #404 from joyent/ether/nuke-device_validate-phase1

    • 7df8005 burn device_validate, device_validate_criteria tables, phase 1
  • 8a2d228 Merge pull request #402 from joyent/ether/fix-unique-user-email

    • c32f6a8 when deactivating a user, also log their workspaces+roles
    • 800abed user_account.email and .name should be unique only for undeleted users
  • 817b728 Merge pull request #403 from joyent/ether/fix-validation-death-spiral

    • 44063c9 fix postgres + perl consuming memory on the device_validates query
  • 9b6bb85 Merge pull request #357 from joyent/ether/device_setting-permissions

    • ea85ff4 verify permissions in /device/:device_id/setting interfaces
    • 0cd07d5 delay device tests until after they are assigned a workspace, rack and location
  • 9cf01ce Merge pull request #395 from joyent/ether/strip-device-models

    • b4a5d7d convert and remove Conch::Model::DeviceSettings
    • 24a50c7 convert and remove all Conch::Model::Device asset mutators
    • bd32959 convert and remove Conch::Model::DeviceReport
    • a0dc1df convert and remove Conch::Model::Device->lookup_for_user
    • f12f517 convert and remove Conch::Model::DeviceService
    • 23c37e8 convert and remove Conch::Model::DeviceRole
    • 6767383 remove all uses of the "current_device" stash
    • ad933df move this query to a resultset method, as it comes up a few times.
    • 2c5036e avoid conflicting "me" aliases in final query