-
Notifications
You must be signed in to change notification settings - Fork 699
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
Setup Wizard - 'Responsibilities of administrator' is shown twice when importing from a device with multiple facilities #12894
Comments
Here's a guide on Running another Kolibri instance alongside the development server |
Can I take this issue? |
Hi @Jeevansm25! For sure! I will assign this issue to you. Please be aware that this issue is in our |
## Description This pull request addresses issue learningequality#12894, where the 'Responsibilities of administrator' step is shown twice when importing from a device with multiple facilities in the Kolibri Setup Wizard. ## Problem The current implementation incorrectly calculates the step count for the import facility flow, leading to a duplicate display of the 'Responsibilities of administrator' page when multiple facilities are present on the device being imported from. ## Solution The solution involves modifying the `PersonalDataConsentForm` component to: 1. Always return step 4 for import facility scenarios, preventing duplicate steps. 2. Correctly calculate the total number of steps based on the number of facilities. 3. Implement proper error handling for permission issues. ## Changes Made - Updated the `step` computed property to always return 4 for import facility scenarios. - Modified the `totalSteps` computed property to correctly handle multiple facilities. - Added a `hasError` state to track permission errors. - Implemented a `checkPermissions` method to verify user permissions. - Enhanced error handling in the `handleContinue` method.
I have identified the issue and corrected the code. Now, I would like to
test the changes. Previously, before correcting the code, I downloaded the
.pex file from the workflow. Could you guide me on how to test the updated
code?
…On Tue, Dec 3, 2024 at 4:24 PM Alex Velez ***@***.***> wrote:
Assigned #12894 <#12894>
to @Jeevansm25 <https://github.com/Jeevansm25>.
—
Reply to this email directly, view it on GitHub
<#12894 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7BGIILW6YCTFGZXD5MLBAD2DWEV5AVCNFSM6AAAAABSVKBLOKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGUYDONRRG4ZDMMI>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Hi @Jeevansm25, if you follow the guide I posted on running the two instances, one of them is a development server. Open Kolibri from its URL and it should have your latest local updates. You can consider the other .pex instance just for having the other facility available - generally it shouldn't be problem for it to run on the older version. Let us know if this work, and if not, please post more details on what exactly you're doing. |
After making the changes in the code, do we need to build the project first and then run the Kolibri instances, or can we directly run the instances to see the updates reflected? Looking forward to your clarification. |
@Jeevansm25 if you follow the guide step by step and get to "Run your development server", then upon running |
@Jeevansm25 if you haven't yet done so, set up your development server https://kolibri-dev.readthedocs.io/en/develop/getting_started.html#getting-started |
Of course, I followed all these steps, but I didn't see the changes I made on the development server reflected in the instance running through the .pex file. Could you please clarify this step for me? |
@Jeevansm25 Yes, you won't see the changes on the .pex instance. You'd need to build .pex locally for that. I've never done that but could ask others if needed. However, for the majority of tasks it's not needed, perhaps only in some nuanced cases that have to do something with synchronization. I am not sure if this issue is such a case. Would you tell a bit more about why you think you need this? |
Thank you for clarifying about the .pex instance! I was testing a synchronization issue where "Responsibilities of administrator" appears twice when importing from a device with multiple facilities. I wanted to confirm if this issue was fixed by my development changes. Since the .pex instance doesn’t reflect the changes, I now understand that I might need to build a new .pex file. Could you guide me if building it locally is a standard process here, or should I explore other approaches? |
@Jeevansm25 I'm trying to understand why you can't confirm it on the instance with the development server - what's the nature of your fix? Hopefully then I can then recommend some alternatives if needed. Regarding rebuilding pex, I need to check on this, will get back to you later. |
@Jeevansm25 regarding .pex builds, if it's really needed then my colleague recommends
|
Hi @Jeevansm25, I wanted to mention that Learning Equality will be closed from December 23 to January 5. |
Observed behavior
The 'Responsibilities of administrator' page is shown twice when importing from a device with one or multiple facilities:
responsibilities.mp4
The issue is extant in both 0.17.3 and 0.18.
Expected behavior
The 'Responsibilities of administrator' page should be displayed only once.
Steps to reproduce the issue
Logs
logs.zip
Usage Details
Kolibri 0.17.3 and 0.18
Ubuntu 22 - Chrome
The text was updated successfully, but these errors were encountered: