Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV-2013] V4 updates #16

Merged
merged 20 commits into from
Nov 15, 2024
Merged

[DEV-2013] V4 updates #16

merged 20 commits into from
Nov 15, 2024

Conversation

jonmarkgo
Copy link
Member

@jonmarkgo jonmarkgo commented Nov 11, 2024

See jonmarkgo#1 for comments/description

devin-ai-integration bot and others added 8 commits November 10, 2024 22:28
- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens
- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens
- Add deep symbolization for nested arrays
- Include all fields from user object schema
- Added ActiveSupport for deep symbolization
- Updated test structure for v4 API compatibility
- Improved SimpleCov configuration
- Increased line coverage to 80.49%
- Added branch coverage tracking

Link to Devin run: https://preview.devin.ai/devin/3be39d31a19840d9ae7b7bebabe8c9c6
- Add tests for complex nested arrays and hashes
- Add tests for hash pruning with nil values
- Add tests for completely empty hashes
- Add tests for version constant and module loading
- Add explicit tests for uid method
- Fix spec_helper.rb to properly load all files
- Refactored MLH strategy for better code organization
- Fixed hash indentation in shared examples
- Replaced unverified doubles with instance_double
- Moved spec files to correct directory structure
- All tests passing with 88.64% line coverage
Copy link
Member

@RashikaKarki RashikaKarki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few small changes.

lib/omniauth/strategies/mlh.rb Outdated Show resolved Hide resolved
lib/omniauth/strategies/mlh.rb Show resolved Hide resolved
lib/omniauth/strategies/mlh.rb Outdated Show resolved Hide resolved
spec/omni_auth/strategies/mlh_spec.rb Show resolved Hide resolved
spec/omni_auth/strategies/mlh_spec.rb Show resolved Hide resolved
spec/omni_auth/strategies/mlh_spec.rb Show resolved Hide resolved
spec/omni_auth/strategies/mlh_spec.rb Outdated Show resolved Hide resolved
spec/omni_auth/strategies/mlh_spec.rb Outdated Show resolved Hide resolved
spec/spec_helper.rb Show resolved Hide resolved
spec/support/shared_examples.rb Show resolved Hide resolved
@jonmarkgo jonmarkgo changed the title V4 updates [DEV-2013] V4 updates Nov 11, 2024
Copy link
Member

@RashikaKarki RashikaKarki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Though we might want to wait until V4 is launched, otherwise OHQ and possibly other platforms will be down.

@jonmarkgo
Copy link
Member Author

Agreed, let's merge it on Monday - make sure you specify version 2.0.0 in the new ohq changes

@erinosher erinosher merged commit cc8b839 into MLH:main Nov 15, 2024
1 check passed
erinosher pushed a commit that referenced this pull request Nov 15, 2024
* Update to MLH API v4

- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens

* Update to MLH API v4

- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens
- Add deep symbolization for nested arrays
- Include all fields from user object schema

* test: Add comprehensive test coverage for v4 API

- Added ActiveSupport for deep symbolization
- Updated test structure for v4 API compatibility
- Improved SimpleCov configuration
- Increased line coverage to 80.49%
- Added branch coverage tracking

Link to Devin run: https://preview.devin.ai/devin/3be39d31a19840d9ae7b7bebabe8c9c6

* test: Increase test coverage from 80.49% to 87.8%

- Add tests for complex nested arrays and hashes
- Add tests for hash pruning with nil values
- Add tests for completely empty hashes
- Add tests for version constant and module loading
- Add explicit tests for uid method
- Fix spec_helper.rb to properly load all files

* Replace subject with strategy in tests to fix RSpec/NamedSubject violations

* Apply RuboCop auto-corrections for code style improvements

* Fix RuboCop offenses and improve test infrastructure

- Refactored MLH strategy for better code organization
- Fixed hash indentation in shared examples
- Replaced unverified doubles with instance_double
- Moved spec files to correct directory structure
- All tests passing with 88.64% line coverage

* We don't need to support Ruby 2.7

* Update gem version to 2.0

* Correct json parsing

* fix: properly handle data wrapper in API response and update test infrastructure

* Revert "fix: properly handle data wrapper in API response and update test infrastructure"

This reverts commit 6cafa4e.

* fix: update test doubles to match strategy implementation

* style: fix argument alignment in spec file

* rubocop formatting

* add line breaks as per Rashika's request

* Change the style as per Rashika's request in #16 (comment)

* Update the README for v4

* add example for accessing user data

* README formatting fix

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
erinosher pushed a commit that referenced this pull request Nov 15, 2024
* Update to MLH API v4

- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens

* Update to MLH API v4

- Update endpoints to use v4 API
- Add support for expandable fields
- Update scopes to use new granular system
- Configure auth params to use request body
- Document offline_access scope for refresh tokens
- Add deep symbolization for nested arrays
- Include all fields from user object schema

* test: Add comprehensive test coverage for v4 API

- Added ActiveSupport for deep symbolization
- Updated test structure for v4 API compatibility
- Improved SimpleCov configuration
- Increased line coverage to 80.49%
- Added branch coverage tracking

Link to Devin run: https://preview.devin.ai/devin/3be39d31a19840d9ae7b7bebabe8c9c6

* test: Increase test coverage from 80.49% to 87.8%

- Add tests for complex nested arrays and hashes
- Add tests for hash pruning with nil values
- Add tests for completely empty hashes
- Add tests for version constant and module loading
- Add explicit tests for uid method
- Fix spec_helper.rb to properly load all files

* Replace subject with strategy in tests to fix RSpec/NamedSubject violations

* Apply RuboCop auto-corrections for code style improvements

* Fix RuboCop offenses and improve test infrastructure

- Refactored MLH strategy for better code organization
- Fixed hash indentation in shared examples
- Replaced unverified doubles with instance_double
- Moved spec files to correct directory structure
- All tests passing with 88.64% line coverage

* We don't need to support Ruby 2.7

* Update gem version to 2.0

* Correct json parsing

* fix: properly handle data wrapper in API response and update test infrastructure

* Revert "fix: properly handle data wrapper in API response and update test infrastructure"

This reverts commit 6cafa4e.

* fix: update test doubles to match strategy implementation

* style: fix argument alignment in spec file

* rubocop formatting

* add line breaks as per Rashika's request

* Change the style as per Rashika's request in #16 (comment)

* Update the README for v4

* add example for accessing user data

* README formatting fix

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants