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

Login workflow resolution for develop-postgres API #3400

Merged
merged 30 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d8ec939
login workflow changes
im-vedant Jan 22, 2025
87b38a5
eslint fix:2
Nikhilh26 Jan 23, 2025
3d8d185
Coverage issue and lint fix
Nikhilh26 Jan 24, 2025
44abf08
Merge branch 'develop-postgres' into pr-3392
Nikhilh26 Jan 24, 2025
a175d6a
Duplicate type definition removed
Nikhilh26 Jan 24, 2025
544c07f
Excluding schema.graphql from linting
Nikhilh26 Jan 24, 2025
dbcac24
Merge branch 'develop-postgres' into pr-3392
Nikhilh26 Jan 25, 2025
15c9105
fix login page failing tests
im-vedant Jan 25, 2025
fb13487
fix leftDrawer.spec.tsx failing tests
im-vedant Jan 25, 2025
ec971c5
Fix eventdashboard and profiledropdown failing test
im-vedant Jan 25, 2025
a8ed17f
fix usersidebar.spec.tsx failing test
im-vedant Jan 25, 2025
2f179bf
fix remaining files
im-vedant Jan 25, 2025
2e78756
Rabbits changes
NishantSinghhhhh Jan 25, 2025
ac255f2
Rabbits changes
NishantSinghhhhh Jan 25, 2025
a5579ba
linting changes
NishantSinghhhhh Jan 25, 2025
a8c99e8
linting changes 1
NishantSinghhhhh Jan 25, 2025
16c22cc
changed package.json and packahe.lock.json
NishantSinghhhhh Jan 25, 2025
2de8bc2
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
im-vedant Jan 25, 2025
fbd1ff6
fix formatting issue
im-vedant Jan 25, 2025
d1feb13
rabbits changes
NishantSinghhhhh Jan 25, 2025
b3cb1c6
rabbits changes 1
NishantSinghhhhh Jan 25, 2025
5bcadb1
remove setting of superadmin in login page
im-vedant Jan 25, 2025
77f2341
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
im-vedant Jan 25, 2025
00c8af9
Merge branch 'pr-3392' of https://github.com/Nikhilh26/talawa-admin i…
im-vedant Jan 25, 2025
8769b07
resolve conflicts
im-vedant Jan 25, 2025
875221a
rabbits changes 1
NishantSinghhhhh Jan 25, 2025
ecb21b7
format fix for LoginPage.tsx
IITI-tushar Jan 26, 2025
9e3469e
added coderabbit suggestions
IITI-tushar Jan 26, 2025
7548734
update superAdmninScreen.spec.tsx
IITI-tushar Jan 26, 2025
3dd00c5
fixes settings.tsx failing tests
im-vedant Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Contains the PDF file of the Tag as JSON string, thus does not need to be linted

Check warning on line 1 in .eslintignore

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

File ignored by default.
src/components/CheckIn/tagTemplate.ts
package.json
package-lock.json
tsconfig.json
fix-readme-links.js
fix-repo-url.js
schema.graphql
# Ignore the Docusaurus website subdirectory
docs/**

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/auto-docs/App/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Defined in: [src/App.tsx:74](https://github.com/PalisadoesFoundation/talawa-admi

This is the main function for our application. It sets up all the routes and components,
defining how the user can navigate through the app. The function uses React Router's `Routes`
and `Route` components to map different URL paths to corresponding screens and components.
and `Route` components to map different URL paths to corresponding screens and components.

## Important Details
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Update authentication documentation.

The documentation mentions CHECK_AUTH GraphQL query, but according to the PR objectives, this has been replaced with CURRENT_USER. Please update the documentation to reflect this change.

-- **UseEffect Hook**: This hook checks user authentication status using the `CHECK_AUTH` GraphQL query.
+- **UseEffect Hook**: This hook checks user authentication status using the `CURRENT_USER` GraphQL query.

Committable suggestion skipped: line range outside the PR's diff.

- **UseEffect Hook**: This hook checks user authentication status using the `CHECK_AUTH` GraphQL query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ADD\_ADMIN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:351](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L351)
Defined in: [src/GraphQl/Mutations/mutations.ts:313](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L313)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ADD\_ADVERTISEMENT\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:486](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L486)
Defined in: [src/GraphQl/Mutations/mutations.ts:448](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L448)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ADD\_MEMBER\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:361](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L361)
Defined in: [src/GraphQl/Mutations/mutations.ts:323](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L323)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> `const` **ADD\_PLUGIN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:468](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L468)
Defined in: [src/GraphQl/Mutations/mutations.ts:430](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L430)

## Remarks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **CREATE\_EVENT\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:265](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L265)
Defined in: [src/GraphQl/Mutations/mutations.ts:227](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L227)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **CREATE\_ORGANIZATION\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:227](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L227)
Defined in: [src/GraphQl/Mutations/mutations.ts:189](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L189)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **CREATE\_POST\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:371](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L371)
Defined in: [src/GraphQl/Mutations/mutations.ts:333](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L333)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **DELETE\_ADVERTISEMENT\_BY\_ID**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:536](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L536)
Defined in: [src/GraphQl/Mutations/mutations.ts:498](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L498)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **DELETE\_EVENT\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:321](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L321)
Defined in: [src/GraphQl/Mutations/mutations.ts:283](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L283)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **DELETE\_ORGANIZATION\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:253](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L253)
Defined in: [src/GraphQl/Mutations/mutations.ts:215](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L215)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **DELETE\_POST\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:397](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L397)
Defined in: [src/GraphQl/Mutations/mutations.ts:359](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L359)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **DONATE\_TO\_ORGANIZATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:663](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L663)
Defined in: [src/GraphQl/Mutations/mutations.ts:625](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L625)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **FORGOT\_PASSWORD\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:413](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L413)
Defined in: [src/GraphQl/Mutations/mutations.ts:375](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L375)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **GENERATE\_OTP\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:405](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L405)
Defined in: [src/GraphQl/Mutations/mutations.ts:367](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L367)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **LIKE\_POST**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:621](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L621)
Defined in: [src/GraphQl/Mutations/mutations.ts:583](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L583)

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **RECAPTCHA\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:219](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L219)
Defined in: [src/GraphQl/Mutations/mutations.ts:181](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L181)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **REFRESH\_TOKEN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:200](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L200)
Defined in: [src/GraphQl/Mutations/mutations.ts:162](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L162)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **REGISTER\_EVENT**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:637](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L637)
Defined in: [src/GraphQl/Mutations/mutations.ts:599](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L599)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **REMOVE\_ADMIN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:333](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L333)
Defined in: [src/GraphQl/Mutations/mutations.ts:295](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L295)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **REMOVE\_MEMBER\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:342](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L342)
Defined in: [src/GraphQl/Mutations/mutations.ts:304](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L304)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **RESET\_COMMUNITY**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:657](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L657)
Defined in: [src/GraphQl/Mutations/mutations.ts:619](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L619)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **REVOKE\_REFRESH\_TOKEN**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:211](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L211)
Defined in: [src/GraphQl/Mutations/mutations.ts:173](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L173)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UNLIKE\_POST**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:629](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L629)
Defined in: [src/GraphQl/Mutations/mutations.ts:591](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L591)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UPDATE\_ADVERTISEMENT\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:511](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L511)
Defined in: [src/GraphQl/Mutations/mutations.ts:473](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L473)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UPDATE\_COMMUNITY**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:645](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L645)
Defined in: [src/GraphQl/Mutations/mutations.ts:607](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L607)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UPDATE\_EVENT\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:567](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L567)
Defined in: [src/GraphQl/Mutations/mutations.ts:529](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L529)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> `const` **UPDATE\_INSTALL\_STATUS\_PLUGIN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:434](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L434)
Defined in: [src/GraphQl/Mutations/mutations.ts:396](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L396)

## Remarks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> `const` **UPDATE\_ORG\_STATUS\_PLUGIN\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:451](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L451)
Defined in: [src/GraphQl/Mutations/mutations.ts:413](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L413)

## Remarks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UPDATE\_POST\_MUTATION**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:545](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L545)
Defined in: [src/GraphQl/Mutations/mutations.ts:507](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L507)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **UPDATE\_SESSION\_TIMEOUT**: `DocumentNode`

Defined in: [src/GraphQl/Mutations/mutations.ts:651](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L651)
Defined in: [src/GraphQl/Mutations/mutations.ts:613](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L613)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ADMIN\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:707](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L707)
Defined in: [src/GraphQl/Queries/Queries.ts:690](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L690)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **BLOCK\_PAGE\_MEMBER\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:451](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L451)
Defined in: [src/GraphQl/Queries/Queries.ts:434](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L434)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Admin Docs](/)

***

# Variable: CURRENT\_USER

> `const` **CURRENT\_USER**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6)
Comment on lines +1 to +9
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Documentation needs line number correction and field details

The documentation should be updated with:

  1. Correct line number: The CURRENT_USER query is defined at line 1, not line 6
  2. Add query fields from the implementation: id, name, role, and emailAddress
 # Variable: CURRENT_USER

 > `const` **CURRENT_USER**: `DocumentNode`

-Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6)
+Defined in: [src/GraphQl/Queries/Queries.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L1)
+
+## Description
+
+Query to fetch the currently authenticated user's information.
+
+## Return Fields
+
+- `id`: String
+- `name`: String
+- `role`: UserRole
+- `emailAddress`: String
🔗 Analysis chain

Verify the line number and enhance documentation.

The documentation for this new query should be verified and enhanced:

  1. Verify that line 6 accurately reflects the location of CURRENT_USER in the source file
  2. Consider adding a description of the query's purpose and return fields

Consider adding the following documentation sections:

 # Variable: CURRENT_USER

 > `const` **CURRENT_USER**: `DocumentNode`

 Defined in: [src/GraphQl/Queries/Queries.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L6)
+
+## Description
+
+Query to retrieve the current authenticated user's information.
+
+## Return Fields
+
+- `id`: String
+- `name`: String
+- `role`: UserRole
+- `emailAddress`: String
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the line number of CURRENT_USER definition and its structure
echo "Verifying CURRENT_USER definition location:"
ast-grep --pattern 'const CURRENT_USER = gql`' src/GraphQl/Queries/Queries.ts

echo -e "\nAnalyzing CURRENT_USER query structure:"
rg -A 10 'const CURRENT_USER = gql`' src/GraphQl/Queries/Queries.ts

Length of output: 466

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **EVENT\_ATTENDEES**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:313](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L313)
Defined in: [src/GraphQl/Queries/Queries.ts:296](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L296)
Nikhilh26 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **EVENT\_CHECKINS**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:341](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L341)
Defined in: [src/GraphQl/Queries/Queries.ts:324](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L324)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **EVENT\_DETAILS**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:268](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L268)
Defined in: [src/GraphQl/Queries/Queries.ts:251](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L251)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **EVENT\_FEEDBACKS**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:361](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L361)
Defined in: [src/GraphQl/Queries/Queries.ts:344](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L344)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **EVENT\_REGISTRANTS**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:331](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L331)
Defined in: [src/GraphQl/Queries/Queries.ts:314](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L314)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **GET\_COMMUNITY\_DATA**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:839](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L839)
Defined in: [src/GraphQl/Queries/Queries.ts:822](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L822)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **GET\_COMMUNITY\_SESSION\_TIMEOUT\_DATA**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:860](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L860)
Defined in: [src/GraphQl/Queries/Queries.ts:858](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L858)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **MEMBERSHIP\_REQUEST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:724](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L724)
Defined in: [src/GraphQl/Queries/Queries.ts:707](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L707)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **MEMBERS\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:432](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L432)
Defined in: [src/GraphQl/Queries/Queries.ts:415](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L415)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATIONS\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:376](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L376)
Defined in: [src/GraphQl/Queries/Queries.ts:359](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L359)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATIONS\_MEMBER\_CONNECTION\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:478](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L478)
Defined in: [src/GraphQl/Queries/Queries.ts:461](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L461)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATION\_CONNECTION\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:67](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L67)
Defined in: [src/GraphQl/Queries/Queries.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L50)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATION\_DONATION\_CONNECTION\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:686](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L686)
Defined in: [src/GraphQl/Queries/Queries.ts:669](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L669)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATION\_EVENT\_CONNECTION\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:630](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L630)
Defined in: [src/GraphQl/Queries/Queries.ts:613](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L613)
Nikhilh26 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATION\_EVENT\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:611](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L611)
Defined in: [src/GraphQl/Queries/Queries.ts:594](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L594)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **ORGANIZATION\_LIST**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L35)
Defined in: [src/GraphQl/Queries/Queries.ts:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L18)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **RECURRING\_EVENTS**: `DocumentNode`

Defined in: [src/GraphQl/Queries/Queries.ts:299](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L299)
Defined in: [src/GraphQl/Queries/Queries.ts:282](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L282)
Loading
Loading