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 to Main Sync #2312

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Dev to Main Sync #2312

wants to merge 9 commits into from

Conversation

Achintya-Chatterjee
Copy link
Member

@Achintya-Chatterjee Achintya-Chatterjee commented Dec 22, 2024

Date: December 22, 2024

Developer Name: @Achintya-Chatterjee @vikasosmium @RahulGoyal-tech


Issue Ticket Number

PRs going in this sync

Description

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

-without dev flag /discord-actions/groups

Screen.Recording.2024-12-24.at.18.23.30.mov
  • with dev=true flag /discord-actions/groups?dev=true
Screen.Recording.2024-12-24.at.18.26.34.mov

Test Coverage

Screenshot 1 Screenshot 2024-12-28 at 01 37 24 Screenshot 2024-12-28 at 01 37 38

Additional Notes

RahulGoyal-tech and others added 2 commits December 20, 2024 22:20
…pdate (#2256)

* Added test for id filterin in addOrUpdate

* Added Tests for Unobfuscated details and filtered id

* Updated test to match fixture instead of Regex

* Added test for id filterin in addOrUpdate

* Added Tests for Unobfuscated details and filtered id

* Updated test to match fixture instead of Regex

* Removed comments

* Test Cases Added

* Added nested profileDiff

---------

Co-authored-by: Prakash Choudhary <[email protected]>
Co-authored-by: Achintya Chatterjee <[email protected]>
* feat: added pagination for lazy loading in the /groups route to load the discord groups asynchrounously instead of all at once

* feat: Implement pagination for lazy loading in

- Added feature-flag-based () lazy loading to .
- Introduced support for , , and __TEXT	__DATA	__OBJC	others	dec	hex query parameters for pagination.
- Validated query parameters and returned structured pagination metadata (, __TEXT	__DATA	__OBJC	others	dec	hex, , ).
- Updated response structure to include enriched group membership information.
- Modified test cases in :
  - Added tests for cursor-based lazy loading behavior.
  - Handled scenarios with and without cursors.
  - Verified error handling for database query failures.

* fix: test cases

* fix: correct paginated group roles endpoint and dynamic link generation

- Fixed incorrect  and  link generation in the  endpoint.
  - Ensured  dynamically includes the correct path ().
  - Dynamically constructed  and  links using  and .

- Refactored  function:
  - Simplified conditional logic for  feature flag.
  - Added error handling for invalid page and size parameters.

- Removed hardcoding of URLs in response links to make them adaptive to the environment.

- Improved logging for easier debugging when issues arise.

- Added handling to ensure old behavior (non-dev mode) works as expected.

* chore remove test from here as moving tests in a different PR

* fix: failing tests
@Achintya-Chatterjee Achintya-Chatterjee self-assigned this Dec 22, 2024
* Updated the userId Patch endpoint to allow authenticated User patch

* added one test case for unauthorized user and superuser
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@vikasosmium
Copy link
Contributor

vikasosmium commented Dec 24, 2024

Staging Evidence - #2313

Pic 1

image

Pic 2

image

Pic 3

image

Pic 4

image

Pic 5

image

* feat: added pagination for lazy loading in the /groups route to load the discord groups asynchrounously instead of all at once

* feat: Implement pagination for lazy loading in

- Added feature-flag-based () lazy loading to .
- Introduced support for , , and __TEXT	__DATA	__OBJC	others	dec	hex query parameters for pagination.
- Validated query parameters and returned structured pagination metadata (, __TEXT	__DATA	__OBJC	others	dec	hex, , ).
- Updated response structure to include enriched group membership information.
- Modified test cases in :
  - Added tests for cursor-based lazy loading behavior.
  - Handled scenarios with and without cursors.
  - Verified error handling for database query failures.

* fix: test cases

* fix: correct paginated group roles endpoint and dynamic link generation

- Fixed incorrect  and  link generation in the  endpoint.
  - Ensured  dynamically includes the correct path ().
  - Dynamically constructed  and  links using  and .

- Refactored  function:
  - Simplified conditional logic for  feature flag.
  - Added error handling for invalid page and size parameters.

- Removed hardcoding of URLs in response links to make them adaptive to the environment.

- Improved logging for easier debugging when issues arise.

- Added handling to ensure old behavior (non-dev mode) works as expected.

* test: added test for the validateLazyLoadingParams

* chore remove test from here as moving tests in a different PR

* fix: failing tests

* test: added test for getPaginatedGroupRolesByPage model functions

* test: add tests for getPaginatedAllGroupRoles function in the controller

* chore: remove comments from the code

---------

Co-authored-by: Vikas Singh <[email protected]>
* added google auth and its tests

* added test for fetch call to github api

* added feature flag and refactored code

* refactored google callback function and some error checks

* added test for developer role and checks for email from oauth

* added Error messages for emails and their tests

* used devflag middleware and add handling redirect url to separate function

* changed test names and made stub to function

* made cookie options to a function

---------

Co-authored-by: Achintya Chatterjee <[email protected]>
Co-authored-by: Prakash Choudhary <[email protected]>
Co-authored-by: Vikas Singh <[email protected]>
* updated userId route for self patch request based on userid

* removed console line

* added feature flag

* return res fix
* added one patch route for self task assignment based on skillset

* test case assertion fix

* test case assertion fix
* added one new patch route for tasks status updates

* added one new patch route for tasks status updates
@vikasosmium
Copy link
Contributor

Staging Evidence - #2316

Screenshot 2024-12-28 014241

Screenshot 2024-12-28 014321

Screenshot 2024-12-28 014338

Screenshot 2024-12-28 014634

Screenshot 2024-12-28 014858

Screenshot 2024-12-28 014942

Screenshot 2024-12-28 015001

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug-fix Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate /self API Endpoints and Provide Meaningful Alternative Routes
4 participants