RedHatInsights/insights-api-common-rails

View on GitHub
CHANGELOG.md

Summary

Maintainability
Test Coverage
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [5.0.6] - 2021-10-07
### Added
-  Pin MIQ loggers to 0.4.0 to maintain monkey patchability

## [5.0.5] - 2021-06-17
### Added
-  Support total counts for GraphQL #229 

## [5.0.4] - 2021-05-25
### Fixed
- Ensure UTF-8 compatibility for ErrorDocument#to_h.to_json #227 

## [5.0.3] - 2021-05-14
### Fixed
-  Change to support object id with different patterns #224 

## [5.0.2] - 2021-04-05
### Added
- Allow to load GraphQL erb templates outside of repo #221
- Add not_eq comparators #223 
### Fixed
- Bind to 127.0.0.1 instead of localhost #220 

## [5.0.1] - 2021-01-26
### Changed
- Pinning `graphql` gem to 1.11.7 due to breaking change in version 1.12.0

## [5.0.0] - 2021-01-13
### Changed
- Make `Parameters#params_for_update` only include writeable fields in permit-hash #213
- Use custom error_message if a policy exposes it #214

## [4.1.5] - 2020-10-01
### Changed
- Fixed to log error messages in with_request block #208

## [4.1.4] - 2020-09-25
### Changed
- Remove POST / PATCH from redirects #173

## [4.1.3] - 2020-08-26
### Changed
- Pin cloudwatchlogger gem to ~> 0.2.1 #207

## [4.1.2] - 2020-07-30
### Added
- Add openapi-validator.sh script for reference from API repos. #202
- Add github workflow to release to rubygems automatically #199
### Changed
- Define custom metric methods even if port is zero #203
- Make sure Pundit exception's query type is String #205
- Excluding existing 'nullable' attributes #198

## [4.1.1] - 2020-06-09
### Added
- Add the ability to disable metrics by setting METRICS_PORT=0 #196
### Changed
- Handle Pundit::NotAuthorizedError exceptions differently than general exceptions #185

## [4.1.0] - 2020-06-02
### Changed
- Improve serializer to exclude attributes that should not be needed #181

## [4.0.3] - 2020-05-13
### Added
- Add support for custom prometheus metrics defined by the application #184

## [4.0.2] - 2020-05-13
### Added
- Enforce unique operation ids #182
- ManangeIQ Logger is deprecating the use of current_request #183
- The status field in the error object is string #188
- Switched to insights-rbac-api-client from rubygems #189


## [4.0.1] - 2020-04-27
### Added
- Percolate errors from different micro services #180

## [4.0.0] - 2020-04-15
### Added
- Added args to the base_query call #177

## [3.10.0] - 2020-04-14
### Added
- Remove the RBAC Client limit and offset parameters to get data in single call #175
- Use rack to get proper status code from symbols #179

## [3.9.0] - 2020-04-02
### Added
- Update documentation for sort_by and filter with associations #170
- Upgrade openapi_parser dependency #174
- Enable filtering by association attributes #159
- RBAC: Implement group_uuid filtering #172

## [3.8.0] - 2020-03-24
### Added
- RBAC - Added support for scopes in permissions #171
- Enable sorting by association attributes and counts #167
- Allow filtering of tag join records based on tag attributes #149
- Accept user defined headers in RBAC calls #168

### Fixed
- Updated the OpenAPI generator for the object schema of sort_by #169

## [3.7.0] - 2020-03-10
### Added
- Moving to object syntax for the sort_by parameter with PaginatedResponseV2 #165

### Removed
- removed unused RBAC Utilities file #166

## [3.6.0] - 2020-02-28
### Added
- Use add_role_to_group during RBAC seeding #138
- Separate RBAC network error out from common errors #163
- Move RBAC group validation to separate class and add specs #164

## [3.5.0] - 2020-02-24
### Added
- Add the act_as_taggable_on mixin to API::Common #158
- Allow machine credentials access to the API #162

### Fixed
- According to the IPP auth_type is in identity #161

## [3.4.2] - 2020-02-13
### Changed
- Change BYPASS_RBAC to only check for the value "true" #157

## [3.4.1] - 2020-02-05
### Fixed
- Fix status page not expecting URL params in DATABASE_URL #154

## [3.4.0] - 2020-01-30
### Added
- Add a concern for the #tag and #untag methods to share common code #153
- Add a StatusController for use in healthchecks that can be mapped to /health #143

### Removed
- Removed unwanted RBAC files #152

## [3.3.1] - 2020-01-15
### Fixed
- Log errors as well as returning them in the response #147

## [3.3.0] - 2020-01-09
### Changed
- Switched from semver to simver (only x.y) versioning for the OpenAPI doc #144
- Removed RBAC log message #142

## [3.2.0] - 2019-12-18
### Added
- Add support for instance/tag and instance/untag with an Array request body #136, #139, #140

## [3.1.0] - 2019-11-13
### Changed
- Loosen ties between controllers and models. Allow schema overrides #131

## [3.0.0] - 2019-11-08
### Breaking Changes
- Rename gem from manageiq-api-common to insights-api-common-rails and rename all classes. #132

### Changed
- Fix params_for_update to support Hash/Array #133

## [2.1.0] - 2019-11-07
### Added
- Add support for sorting result collections #122

### Changed
- Change RBAC sharing/unsharing to be account based #130

## [2.0.1] - 2019-10-23
### Fixed
- Fix permitted params for nested objects #129
- Fix regex and add tests for filtering #128
- Pull in missed seeding PR #126
- Fix error responses for filtering #125

## [2.0.0] - 2019-10-17
### Breaking Changes
- Add ExceptionHandling mixin and consolidate ApiError rescue_from #114

### Changed
- Update to openapi_parser v0.6.1 (will break tests due to changed error messages) #124

### Added
- Import shared RBAC code #106
- Add 404 responses to the openapi generator #117

## [1.1.0] - 2019-10-15
### Added
- Add support for case insensitive filtering #123

## [1.0.2] - 2019-10-07
### Fixed
- Fix reference to GraphQLRequest #120

## [1.0.1] - 2019-10-07
### Fixed
- Fix next and prev page links on collections #118 & #119

## [1.0.0] - 2019-10-04
### Breaking Changes
- Namespace dynamically defined GraphQL API version modules under ManageIQ::API::Common::GraphQL::Api #105

### Added
- New entitlements for Ansible and Migrations #113 and use them #115
- Forwarding of persona headers #109

### Changed
- Extract GraphQLRequest to a schema object rather than inline #110
- Update to openapi_parser v0.5.0 #108

### Fixed
- Fixed errors around already defined constants in GraphQL #112
- Allow GraphQL generator to support paths with IDs like /primary/{primary_id}/ #107
- Constant problems related to GraphQL namespace #105

## [0.1.0] - 2019-09-24
### Initial release to rubygems.org


[Unreleased]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.6.freeze...HEAD
[5.0.6]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.5.freeze...v5.0.6.freeze
[5.0.5]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.4.freeze...v5.0.5.freeze
[5.0.4]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.3.freeze...v5.0.4.freeze
[5.0.3]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.2.freeze...v5.0.3.freeze
[5.0.2]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.1.freeze...v5.0.2.freeze
[5.0.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v5.0.0.freeze...v5.0.1.freeze
[5.0.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.5.freeze...v5.0.0.freeze
[4.1.5]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.4.freeze...v4.1.5.freeze
[4.1.4]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.3.freeze...v4.1.4.freeze
[4.1.3]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.2...v4.1.3.freeze
[4.1.2]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.1...v4.1.2
[4.1.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.1.0...v4.1.1
[4.1.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.0.3...v4.1.0
[4.0.3]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.0.2...v4.0.3
[4.0.2]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.0.1...v4.0.2
[4.0.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.10.0...v4.0.0
[3.10.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.9.0...v3.10.0
[3.9.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.8.0...v3.9.0
[3.8.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.7.0...v3.8.0
[3.7.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.6.0...v3.7.0
[3.6.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.5.0...v3.6.0
[3.5.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.4.2...v3.5.0
[3.4.2]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.4.1...v3.4.2
[3.4.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.4.0...v3.4.1
[3.4.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.3.1...v3.4.0
[3.3.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.3.0...v3.3.1
[3.3.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.2.0...v3.3.0
[3.2.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.1.0...v3.2.0
[3.1.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v2.1.0...v3.0.0
[2.1.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v1.0.2...v1.1.0
[1.0.2]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/RedHatInsights/insights-api-common-rails/compare/v0.1.0...v1.0.0
[0.1.0]: https://github.com/RedHatInsights/insights-api-common-rails/releases/tag/v0.1.0