Skip to content

Laimprovements - #1983

Open
sangwinc wants to merge 3 commits into
devfrom
laimprovements
Open

sangwinc wants to merge 3 commits into
devfrom
laimprovements

Conversation

@sangwinc

Copy link
Copy Markdown
Member

No description provided.

@sangwinc
sangwinc requested a review from EJMFarrow November 26, 2026 20:03
$data->nodes[(int) $node->name] = $newnode;
}

// Choose the first node as Moodle does when it imports and saves a question,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EJMFarrow this PR has some changes to the way the API works, to consolidate API behaviour with that of the main moodle. I'd like us to continue in this direction so the API and moodle are (basically) identical. Could you check the parts of this PR which related to the API please?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm dealing with some of this stuff in iss1967.

private static function assert_valid_prt_graph(\stdClass $prtdata): void {
I'm thinking we don't want to be checking the graph every time we load the question. In iss1967 I've got different things happening depending on whether we're in the test route and whether a 'moodlestrict' flag has been set in the request.

Given this would only get checked in test, there's an additional question of whether we want to apply the Moodle 'fixes' or just show the errors. (I'm currently doing the latter.)

Can discuss how you want to proceed in our meeting but might be better to leave this change to the question loader for now if it's not vital to the rest of the PR. Hopefully I can get iss1967 ready for full review next week.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No rush with this PR @EJMFarrow. If you have other changes, let's do that first and we can refactor here as needed before accepting this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants