Refactor: Replace Query with Correct Query to Fetch All and Joined Organizations #4890
pull-request.yml
on: pull_request
Performs linting, formatting, type-checking, checking for different source and target branch
1m 10s
Check for eslint-disable
10s
Check for code coverage disable
8s
Checks if sensitive files have been changed without authorization
9s
Checks if number of files changed is acceptable
9s
Check Target Branch
3s
Check Python Code Style
20s
Check if Talawa Admin app starts (No Docker)
Check if Talawa Admin app starts in Docker
Validate CodeRabbit Approval
0s
Annotations
4 errors
Test Application
Process completed with exit code 1.
|
Test Application:
src/screens/UserPortal/Organizations/Organizations.spec.tsx#L926
TestingLibraryElementError: Unable to find an element with the text: Test Edge Org. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<button
class="_opendrawer_d00707 btn btn-primary"
data-testid="openMenu"
type="button"
>
<i
aria-hidden="true"
class="fa fa-angle-double-right"
/>
</button>
<div
class="_leftDrawer_658d08 _inactiveDrawer_658d08"
data-testid="leftDrawerContainer"
>
<svg
class="_talawaLogo_658d08"
fill="none"
height="9856"
viewBox="0 0 12322 9856"
width="12322"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#737373"
height="1464.27"
transform="rotate(-58 3106 5502.74)"
width="2873.8"
x="3106"
y="5502.74"
/>
<rect
fill="#31BC6B"
height="1558.13"
transform="rotate(-58 2974 8451.2)"
width="5835.99"
x="2974"
y="8451.2"
/>
<rect
fill="#737373"
height="1572.13"
transform="rotate(58 7633.24 2955.84)"
width="2996.38"
x="7633.24"
y="2955.84"
/>
<rect
fill="#31BC6B"
height="1556.48"
transform="rotate(58 6620.97 4182)"
width="4962.94"
x="6620.97"
y="4182"
/>
<circle
cx="5968"
cy="2526"
fill="#FFBD59"
r="1920"
/>
</svg>
<p
class="_talawaText_658d08"
>
Talawa User Portal
</p>
<h5
class="_titleHeader_658d08 text-secondary"
>
Menu
</h5>
<div
class="d-flex align-items flex-column _leftbarcompheight_658d08"
>
<div
class="_optionList_658d08"
>
<a
class=""
href="/user/organizations"
>
<button
class="btn"
data-testid="orgsBtn"
style="font-weight: normal;"
type="button"
>
<div
class="_iconWrapper_658d08"
>
<svg
fill="none"
height="28"
stroke="var(--sidebar-icon-stroke-inactive)"
viewBox="0 0 28 28"
width="28"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M25.6666 25.6667H2.33331"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
<path
d="M19.8333 25.6667V7.00001C19.8333 4.79968 19.8333 3.70068 19.1497 3.01701C18.466 2.33334 17.367 2.33334 15.1667 2.33334H12.8333C10.633 2.33334 9.534 2.33334 8.85033 3.01701C8.16667 3.70068 8.16667 4.79968 8.16667 7.00001V25.6667M24.5 25.6667V13.4167C24.5 11.7775 24.5 10.9585 24.1068 10.3705C23.9366 10.1156 23.7177 9.89679 23.4628 9.72651C22.8748 9.33334 22.0547 9.33334 20.4167 9.33334M3.5 25.6667V13.4167C3.5 11.7775 3.5 10.9585 3.89317 10.3705C4.06345 10.1156 4.28228 9.89679 4.53717 9.72651C5.12517 9.33334 5.94533 9.33334 7.58333 9.33334"
stroke="current"
stroke-width="1.5"
/>
<path
d="M14 25.6667V22.1667M11.6666 5.83334H16.3333M11.6666 9.33334H16.3333M11.6666 12.8333H16.3333M11.6666 16.3333H16.3333"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
</svg>
</div>
My Organizations
</button>
</a>
<a
aria-current="page"
class="active"
href="/user/settings"
|
Test Application:
src/screens/UserPortal/Organizations/Organizations.spec.tsx#L702
TestingLibraryElementError: Unable to find an element with the text: anyOrganization1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<button
class="_collapseSidebarButton_d00707 btn btn-primary"
data-testid="closeMenu"
type="button"
>
<i
aria-hidden="true"
class="fa fa-angle-double-left"
/>
</button>
<div
class="_leftDrawer_658d08 _hideElemByDefault_658d08"
data-testid="leftDrawerContainer"
>
<svg
class="_talawaLogo_658d08"
fill="none"
height="9856"
viewBox="0 0 12322 9856"
width="12322"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#737373"
height="1464.27"
transform="rotate(-58 3106 5502.74)"
width="2873.8"
x="3106"
y="5502.74"
/>
<rect
fill="#31BC6B"
height="1558.13"
transform="rotate(-58 2974 8451.2)"
width="5835.99"
x="2974"
y="8451.2"
/>
<rect
fill="#737373"
height="1572.13"
transform="rotate(58 7633.24 2955.84)"
width="2996.38"
x="7633.24"
y="2955.84"
/>
<rect
fill="#31BC6B"
height="1556.48"
transform="rotate(58 6620.97 4182)"
width="4962.94"
x="6620.97"
y="4182"
/>
<circle
cx="5968"
cy="2526"
fill="#FFBD59"
r="1920"
/>
</svg>
<p
class="_talawaText_658d08"
>
Talawa User Portal
</p>
<h5
class="_titleHeader_658d08 text-secondary"
>
Menu
</h5>
<div
class="d-flex align-items flex-column _leftbarcompheight_658d08"
>
<div
class="_optionList_658d08"
>
<a
class=""
href="/user/organizations"
>
<button
class="btn"
data-testid="orgsBtn"
style="font-weight: normal;"
type="button"
>
<div
class="_iconWrapper_658d08"
>
<svg
fill="none"
height="28"
stroke="var(--sidebar-icon-stroke-inactive)"
viewBox="0 0 28 28"
width="28"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M25.6666 25.6667H2.33331"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
<path
d="M19.8333 25.6667V7.00001C19.8333 4.79968 19.8333 3.70068 19.1497 3.01701C18.466 2.33334 17.367 2.33334 15.1667 2.33334H12.8333C10.633 2.33334 9.534 2.33334 8.85033 3.01701C8.16667 3.70068 8.16667 4.79968 8.16667 7.00001V25.6667M24.5 25.6667V13.4167C24.5 11.7775 24.5 10.9585 24.1068 10.3705C23.9366 10.1156 23.7177 9.89679 23.4628 9.72651C22.8748 9.33334 22.0547 9.33334 20.4167 9.33334M3.5 25.6667V13.4167C3.5 11.7775 3.5 10.9585 3.89317 10.3705C4.06345 10.1156 4.28228 9.89679 4.53717 9.72651C5.12517 9.33334 5.94533 9.33334 7.58333 9.33334"
stroke="current"
stroke-width="1.5"
/>
<path
d="M14 25.6667V22.1667M11.6666 5.83334H16.3333M11.6666 9.33334H16.3333M11.6666 12.8333H16.3333M11.6666 16.3333H16.3333"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
</svg>
</div>
My Organizations
</button>
</a>
<a
class=""
href="/user/settings"
>
<butto
|
Test Application:
src/screens/UserPortal/Organizations/Organizations.spec.tsx#L598
TestingLibraryElementError: Unable to find an element with the text: anyOrganization1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<button
class="_collapseSidebarButton_d00707 btn btn-primary"
data-testid="closeMenu"
type="button"
>
<i
aria-hidden="true"
class="fa fa-angle-double-left"
/>
</button>
<div
class="_leftDrawer_658d08 _hideElemByDefault_658d08"
data-testid="leftDrawerContainer"
>
<svg
class="_talawaLogo_658d08"
fill="none"
height="9856"
viewBox="0 0 12322 9856"
width="12322"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill="#737373"
height="1464.27"
transform="rotate(-58 3106 5502.74)"
width="2873.8"
x="3106"
y="5502.74"
/>
<rect
fill="#31BC6B"
height="1558.13"
transform="rotate(-58 2974 8451.2)"
width="5835.99"
x="2974"
y="8451.2"
/>
<rect
fill="#737373"
height="1572.13"
transform="rotate(58 7633.24 2955.84)"
width="2996.38"
x="7633.24"
y="2955.84"
/>
<rect
fill="#31BC6B"
height="1556.48"
transform="rotate(58 6620.97 4182)"
width="4962.94"
x="6620.97"
y="4182"
/>
<circle
cx="5968"
cy="2526"
fill="#FFBD59"
r="1920"
/>
</svg>
<p
class="_talawaText_658d08"
>
Talawa User Portal
</p>
<h5
class="_titleHeader_658d08 text-secondary"
>
Menu
</h5>
<div
class="d-flex align-items flex-column _leftbarcompheight_658d08"
>
<div
class="_optionList_658d08"
>
<a
class=""
href="/user/organizations"
>
<button
class="btn"
data-testid="orgsBtn"
style="font-weight: normal;"
type="button"
>
<div
class="_iconWrapper_658d08"
>
<svg
fill="none"
height="28"
stroke="var(--sidebar-icon-stroke-inactive)"
viewBox="0 0 28 28"
width="28"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M25.6666 25.6667H2.33331"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
<path
d="M19.8333 25.6667V7.00001C19.8333 4.79968 19.8333 3.70068 19.1497 3.01701C18.466 2.33334 17.367 2.33334 15.1667 2.33334H12.8333C10.633 2.33334 9.534 2.33334 8.85033 3.01701C8.16667 3.70068 8.16667 4.79968 8.16667 7.00001V25.6667M24.5 25.6667V13.4167C24.5 11.7775 24.5 10.9585 24.1068 10.3705C23.9366 10.1156 23.7177 9.89679 23.4628 9.72651C22.8748 9.33334 22.0547 9.33334 20.4167 9.33334M3.5 25.6667V13.4167C3.5 11.7775 3.5 10.9585 3.89317 10.3705C4.06345 10.1156 4.28228 9.89679 4.53717 9.72651C5.12517 9.33334 5.94533 9.33334 7.58333 9.33334"
stroke="current"
stroke-width="1.5"
/>
<path
d="M14 25.6667V22.1667M11.6666 5.83334H16.3333M11.6666 9.33334H16.3333M11.6666 12.8333H16.3333M11.6666 16.3333H16.3333"
stroke="current"
stroke-linecap="round"
stroke-width="1.5"
/>
</svg>
</div>
My Organizations
</button>
</a>
<a
class=""
href="/user/settings"
>
<butto
|