-
Notifications
You must be signed in to change notification settings - Fork 732
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
feat:renamed currentFacilityId #10812
feat:renamed currentFacilityId #10812
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking really good @Ghat0tkach!
there is one additional file where currentFacililtyId
is still being used, in our old friend kolibri/plugins/coach/assets/src/modules/pluginModule.js
, here on line 67.
this was the file that had previously been the source of the merge conflict, as its underlying code had changed, so resolving that conflict was necessary. however, i accidentally misinformed you when i said that file needed no updates - it does still reference currentFacilityId
, just in a slightly different place than where it had previously (leading to the conflict we saw). if you can update that reference to currentFacilityId
there in its new location, i think you'll have fully covered everything 🙂 i'm sorry for being confusing in my previous comment!
thanks for pointing it out , actually my current branch is still behind the develop-branch, could you please suggest me a way to fetch the current branch without removing my commits since the pluginmodule.js is outdated in mine |
sure thing, @Ghat0tkach! have you followed the steps laid out here when setting things up? once you follow these steps and have there are a few different ways to do this, but i do the following from my PR branch: these two commands should work to keep your branch up-to-date. it may be that during the rebase, you are alerted to merge conflicts. you can resolve those in your code editor or with your preferred method, while being careful while reconciling the two that you are only introducing the changes you intend 🙂 |
I am afraid I didnt added the git remote add upstream [email protected]:learningequality/kolibri.git this time , Can i add it now and do the suggested steps? I really apologise 😭 |
no worries, @Ghat0tkach! adding the upstream remote should not have any negative impact on the work you've done. here are the ordered steps you can do to get things working:
|
I am really at loss of words for your immense help . Thank you Edit: since i was dealing with some issues , and I had to commit only in the pluginModule.js , I thought why dont I copy the contents of pluginModule.js of the updated file into my old current-facility-id. This way my pluginModule.js will be already upto date with the current repo one. In short - I fetched only the pluginModule.js from the current repo and did the required changes Edit 2: Merge Conflicts again , working to resolve them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these changes are looking good to me, @Ghat0tkach! thank you for working so hard to keep everything up-to-date as the codebase changes underneath you - that's not an easy feat!
it looks to me like you've changed every instance of currentFacilityId
to userFacilityId
(including in comments & tests which is very helpful). so this looks good from a code perspective!
it appears like this is failing linting though, currently, which should be a straightforward fix - when you're in your branch, in your terminal you can run yarn run lint-frontend:format
in order to get your code in line with the linting rules, and then commit and push those changes, which are likely quite small.
QA team can certainly take a look at this, could you add some review guidance steps @thanksameeelian ? |
Thanks a lot @thanksameeelian , it couldnt be possible without your guidance. @radinamatic actually one of the checks is failing and it could be due to empty line , here. Could you please take a look? |
for sure @radinamatic! my apologies because i tagged you and then quickly edited my response to remove it because i realized there was a still a little linting work to be done before this is officially "ready." so i will re-tag you once that's settled! while the effects of this PR could be a bit wide-ranging, i believe that places where its impact are most evident include coach & facility plugins - for a single-facility user but especially for a multi-facility user. related to recent work, i think it would be very helpful to check that for a multi-facility user, when navigating within those two plugins and between different classes/facilities, the page links are taking you to the place you intended to go (e.g. if you click a "← All classes" you are navigated to the correct class list from the facility you're currently in, and similar). it would also be helpful to double check that when you sign in to a specific facility, you're definitely within that facility, and within the user profile your default facility name is accurate. i think those should mostly cover the situations touched by this, but i'll tag you again once this is truly ready for your perusal. thank you! |
@Ghat0tkach this is something that you & i can work out together, but our lovely QA team focuses on the functionality & accessibility of our code. did you run |
Thanks a million :3 , fixed it lets hope for the test to pass |
hey @Ghat0tkach, what the linter wants is for you to remove a small extra space on line 66: i learned this from running if this isn't working for you, let me know and we can change tactics. |
Thank you , and here i was doing trial and error method to let it work 😭😂 |
that's extremely relatable @Ghat0tkach - i've definitely done the same 😀 but look at this, linting has passed!! thank you so much for your persistence! 🚀🚀 |
@radinamatic - i believe this is ready for a small QA review now! if the guidance i provided here doesn't feel sufficient, please let me know and i can try to elaborate further! |
All credit goes to you for being so helpful and supportive and to answer my silly doubts and forgive my mistakes😅🥳 |
LGTM @radinamatic - no issues observed while regression testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has passed code review & QA testing, so should be merged shortly. thanks for your contribution @Ghat0tkach!!
Thank you @thanksameeelian |
@Ghat0tkach, i've added your name & username on github to our |
Thanks a lot ! |
Summary
This PR fixes #10763
Renamed the currentFacilityId to userFacilityId as instructed all with the help of @thanksameeelian
References
…
Reviewer guidance
…
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)