-
Notifications
You must be signed in to change notification settings - Fork 9
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
Copy courses between providers in Support console #4750
Conversation
5cc9ed6
to
77c8835
Compare
prevent error when element is not on screen
35fd5a2
to
fc162d3
Compare
add test for copying schools
fc162d3
to
6f006a7
Compare
f53bf6c
to
7e27485
Compare
Cannot get chromedriver to run the tests on the Alpine image These packages are needed at least: gcompat glib nss libxcb libgcc chromium Selenium [:driver_service] polling for socket on ["127.0.0.1", 9515] The test fails when chromedriver cannot connect on the socket 2024-12-09 12:28:48 DEBUG Selenium [:driver_service] polling for socket on ["127.0.0.1", 9515]
7e27485
to
07eaba3
Compare
0022fe6
to
afcf251
Compare
copier = ::Courses::CopyToProviderService.new(sites_copy_to_course:, enrichments_copy_to_course: Enrichments::CopyToCourseService.new, force: true) | ||
|
||
Provider.transaction do | ||
@copy_courses_form.provider.courses.map do |course| |
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.
On the PR description it mentions "Copy all courses or some courses" but here is all courses. Can we remove the "some courses" from description just to avoid confusion?
I assume the copying specific courses would be done on a later interaction when we will have a support ticket?
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.
Yeah I've not implemented "some courses" because unwanted courses can be deleted
end | ||
end | ||
|
||
redirect_to support_recruitment_cycle_provider_path(recruitment_cycle.year, @copy_courses_form.target_provider.id) |
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.
Is there any indication everything went sucessfully? Should we add one?
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.
Screencast.from.10-12-24.10.47.38.webm
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.
I'll change it to redirect to the courses tab too
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.
Minor questions but tested and it worked ✌️
84d4eae
to
4438f47
Compare
redirect to the courses tab after copy
4438f47
to
075b4b7
Compare
Context
Support are often asked to copy courses from one provider to another. This PR provides the ability for users to copy courses via the Support console.
Considerations
Changes proposed in this pull request
Screencast.from.09-12-24.15.27.18.webm
Guidance to review