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

v3.0.0-a5

Pre-release
Pre-release
Compare
Choose a tag to compare
@karenetheridge karenetheridge released this 10 Sep 23:42
· 791 commits to master since this release
8908c4a

Release v3.0.0-a5

PR #864 - stop running migrations if one failed

  • Branch: ether/migration-bailout
  • Revision: 06027ce
  • Labels: bug, database

People

Commits

  • a4308f - stop running migrations if one failed

PR #865 - v3: fix role checking on these endpoints with atypical role requirements

  • Branch: ether/v3-role-fixes-part3
  • Revision: ac50f88
  • Labels: api, bug

POST /device/:device_id_or_serial_number/validation/:validation_id
POST /device/:device_id_or_serial_number/validation_plan/:validation_plan_id
POST /workspace/:workspace_id_or_name/rack

People

Commits

  • c6ef67 - fix role checking on these endpoints with atypical role requirements

PR #866 - v3: migration fixes

  • Branch: ether/v3-migration-fixes
  • Revision: 9108f11
  • Labels: bug, database

fixes migrations 100 and 125.

People

Commits

  • 73aa81 - fix this migration to only delete rows for sysadmin users
  • 219c4b - rewrite this migration so it only runs once, as expected

PR #872 - add DELETE /relay/:id_or_serial

  • Branch: ether/relay-delete
  • Revision: 0cbfca5
  • Labels: api, enhancement, needs-shell

closes #868.

People

Commits

  • e10cba - add DELETE /relay/:id_or_serial

PR #874 - add relay.last_seen

  • Branch: ether/v3-relay-last_seen
  • Revision: f5f3ca5
  • Labels: api, database, enhancement, needs-shell

..and update it when we update user_relay_connection or device_relay_connection.
closes #869.

People

Commits

  • acae0f - streamline this query a bit
  • 54ce4c - add relay.last_seen

PR #875 - make device_setting and user_setting consistent: no nulls, strings only

  • Branch: ether/v3-device-user-settings
  • Revision: 78a5a81
  • Labels: api, breaking, database, needs-shell

People

Commits

  • 71d1d2 - make device_setting and user_setting consistent: no nulls, strings only

PR #876 - better queries, most notably involving workspaces

  • Branch: ether/v3-better-workspace-queries
  • Revision: 16671ae
  • Labels: refactor, tests
  • optimizations to how some queries are constructed, that do not affect the outcome
  • refactoring of some db query construction routines
  • new script to verify the integrity of all existing workspace_rack relationships
  • additional test coverage of various database relationships, especially pertaining to permission checks
  • eliminate needless recursive workspace searches involving racks, which should speed up some device-related endpoints significantly

People

Commits

  • 524065 - shorten these query constructs
  • e9cd88 - eliminate needless subselects
  • 623c6f - eliminate a db query when fetching device settings
  • d759bb - save a query by using a subselect
  • e5ea9d - new script to verify the integrity of all workspace-rack relationships
  • 36f0fe - remove duplicate code by chaining to rack resultset method
  • 1f4dfd - move user_has_role from user_workspace_role to workspace
  • 85ba78 - new, more generic method workspace_rs->with_user_role
  • 6ccadd - eliminate needless recursive workspace searches involving racks
  • becd73 - remove unnecessary table join
  • 4c212b - make these queries more efficient
  • 85d478 - proper tests of direct and indirect workspace access, through racks and devices
  • acea77 - speed up queries by using UNION ALL
  • 773a32 - simplify query when role = 'ro'

PR #879 - device report optimization

  • Branch: ether/v3-device_report-optimization
  • Revision: c39475d
  • Labels: database, device reports

adjustments to prior sql migrations:

  • while dropping device_report.invalid_report, drop all rows with this field set (as nothing else of value is contained in this record)
  • device_report.report can now be made not-nullable

People

Commits

  • fda768 - also delete reports with invalid reports in them
  • 0c5f75 - device_report.report can now be made mandatory

PR #878 - new endpoint for (re)defining a rack of layouts at once

  • Branch: ether/v3-overwrite-rack_layout
  • Revision: 044a3a6
  • Labels: api, enhancement

that is, POST /rack/:rack_id/layouts

closes #877.

People

Commits

  • ee39a5 - rename this endpoint sub
  • 59d7ff - new endpoint for (re)defining a rack of layouts at once

PR #862 - v3: organizations!

  • Branch: ether/v3-organizations
  • Revision: 97cfe09
  • Labels: api, breaking, database, enhancement, needs-shell, needs-ui, v3

closes #826.

People

Commits

  • 3e3f07 - organizations are born -- autogenerated files only
  • f3f081 - add /organization endpoints
  • ef519a - make workspaces and organizations aware of each other
  • 449e1a - separate local helpers into ResultSet, Row namespaces
  • 9b8dba - add organizations to UserDetailed
  • 4d6b31 - rename user_workspace_role_enum to role_enum
  • 1553f9 - add regex testing for log lines
  • cba78a - add workspaces reachable by orgs to UserDetailed

PR #881 - hub.docker is no longer supported

  • Branch: sungo/hub-docker-removal
  • Revision: 37600f8
  • Labels: build, v2, v3

People

Commits

  • 0ccfb7 - remove the bit that pushes docker images to hub.docker, and remove mention of it from the docs

PR #880 - v3: rollbar improvements

  • Branch: ether/v3-rollbar
  • Revision: 8908c4a
  • Labels: enhancement, refactor, v3
  • refactored exception handling and send more information to rollbar
  • support sending non-exception messages to rollbar
  • new feature to send error responses to rollbar when configured request headers match (closes #867)

People

Commits

  • e6eabf - use underscore for test routes
  • e1c07e - basic tests of existing rollbar functionality
  • 4aa431 - refactor rollbar plugin exception handling, add more payload data, fix some bugs
  • 49c30d - support non-exception message payloads for rollbar
  • ed33b5 - do not connect in destruction just to disconnect
  • 7f6ac8 - move rollbar config data to its own separate hashref
  • 083300 - validate the rollbar payload syntax (dev mode only)
  • 9a5450 - send rollbar message on error if configured request header matches