-
Notifications
You must be signed in to change notification settings - Fork 14
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
adds policy parameters to single experiment fetch #2197
adds policy parameters to single experiment fetch #2197
Conversation
I just tried creating a mooclet experiment on this branch, but I'm getting a 500 internal server error when making the Here are the logs from the Terminal:
|
@danoswaltCL Strangely, I was able to create 2 mooclet experiments without errors after getting the above error. I will see if I can reproduce the error. |
@danoswaltCL It seems the error only happens when I name the experiment "Mooc Test". I believe I've used this experiment name previously before I cleared the local UpGrade DB (I didn't clear Mooclet DB though). Maybe the Mooclet server stored this experiment name and is complaining due to the duplicated name? If the error is simply about the duplicated name, we can probably address this later in a separate PR. |
I'm not sure why the "Edit" button is hidden in the Mooclet experiment. I thought I changed this in #2198, but maybe I missed something. I will check this tomorrow. ![]() |
Yeah, that's definitely a thing that needs to be addressed, it will give a bad error if the name already was used in Mooclet. I will create a separate ticket, we should have a validation check for duplicate name. |
@danoswaltCL I noticed that the changes made to the For instance, your branch still contains the logic to hide the edit button for Mooclet experiments: This logic was removed from the However, I can't see this change reflected in the "Files Changed" page: How is this possible? Am I missing something here? |
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.
Small fixes
backend/packages/Upgrade/src/api/services/MoocletDataService.ts
Outdated
Show resolved
Hide resolved
...projects/upgrade/src/app/core/experiment-design-stepper/experiment-design-stepper.service.ts
Outdated
Show resolved
Hide resolved
…ram-details-experiment-view-backend
@zackcl i hadn't pulled changes from dev yet. I pulled that in and updated @VivekFitkariwala 's comments, ready for review. |
yes #2177 was created to handle imports, we talked about this in refinement and @bcb37 said he tried to get this error but couldn't reproduce. I added your screenshot to the story and wrote more accurate requirements.
|
const experiment = await this.experimentService.getSingleExperiment(id, request.logger); | ||
|
||
if (SUPPORTED_MOOCLET_ALGORITHMS.includes(experiment.assignmentAlgorithm)) { | ||
if (!env.mooclets?.enabled) { |
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 if
check should be a util function which should throw an error if the experiment contains a valid mooclet algorithm and mooclet is not enabled, otherwise return true.
It is getting in the create
function as well and even Ben is using this in his PR
Might be in a separate PR or refactoring.
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.
sure that makes sense, let me make a separate ticket for that for follow-up
Adds the necessary call to get mooclet policy parameters and attach them to experiment when fetching single experiment by id in order to support showing this in the details page.
#2192