teammates icon indicating copy to clipboard operation
teammates copied to clipboard

[#13066] Combine Admin Add Account Request Flow into Instructor Account Request Flow

Open Andy-W-Developer opened this issue 1 year ago • 14 comments

Fixes #13066

Outline of Solution The "Add Instructor" and "Add Instructors" buttons now create account requests and pushes them to accountReqs for account-request-table to manage.

Removed the results table, some related functions and tests. Changed remaining tests to reflect the changes.

Adding, removing and editing is now handled by account-request-table.

https://github.com/TEAMMATES/teammates/assets/128531452/9fae443c-8d5c-4e0a-9f9c-1e93f9508162

Andy-W-Developer avatar May 30 '24 14:05 Andy-W-Developer

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Jul 02 '24 14:07 nusoss-bot

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Jul 10 '24 15:07 nusoss-bot

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Jul 17 '24 16:07 nusoss-bot

Folks, This PR seems to be stalling (no activities for the past 9 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Jul 19 '24 16:07 nusoss-bot

Folks, This PR seems to be stalling (no activities for the past 8 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Jul 28 '24 03:07 nusoss-bot

@Andy-W-Developer is the PR done? or isit still on going. Your current changes LGTM

mingyuanc avatar Jul 30 '24 16:07 mingyuanc

@mingyuanc Yes this PR is done, if there's anything else that could be added, let me know, thanks.

Andy-W-Developer avatar Jul 30 '24 23:07 Andy-W-Developer

@domoberzin Mostly ready for review.

I need help with the accountCreateRequest loop, I'm don't know how to call fetchAccountRequests and push to invalidLines only after all request have been processed.

I've tried looking into finalize but don't think it'll work unless createAccountRequest or an alternative supports a list of account requests.

A less than ideal way could be to move the account requests into a separate list and for loop then have an if statement inside createAccountRequests to check if the loop index is equal to the list length and run fetchAccountRequests there.

Let me know your thoughts, thanks.

Andy-W-Developer avatar Aug 06 '24 04:08 Andy-W-Developer

@Andy-W-Developer could you look into why the SQL tests are failing first before we review?

mingyuanc avatar Aug 07 '24 12:08 mingyuanc

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Aug 14 '24 15:08 nusoss-bot

Sorry for the late update.

The previously failing test in InstructorNotificationsPageE2ETest might be unrelated.

I rewrote validateAndAddInstructorDetails() to use promises so that fetchAccountRequests() is only called once.

The component tests are failing because changes to instructorDetails are made inside the subscribe, and createAccountRequest() isn't mocked yet.

I'm looking into why, after mocking the observables, the code inside the subscribe doesn't seem to run or only partially run.

Andy-W-Developer avatar Aug 15 '24 15:08 Andy-W-Developer

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Aug 23 '24 13:08 nusoss-bot

@mingyuanc Ready for review. The failing test - UUID string too large under SearchAccountRequestsActionTest line 959 seems unrelated, the same tests fail under the current master branch.

Andy-W-Developer avatar Aug 28 '24 13:08 Andy-W-Developer

Folks, This PR seems to be stalling (no activities for the past 9 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot avatar Sep 02 '24 03:09 nusoss-bot