Skip to content
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

Issue #66: Add search API #129

Merged
merged 12 commits into from
Sep 5, 2024
Merged

Conversation

TomoTsuyuki
Copy link
Contributor

Implement search area for customfield, which can be set in the "Search setting".

*/
public function get_context_url(\core_search\document $doc) {
$contextmodule = \context::instance_by_id($doc->get('contextid'));
return new \moodle_url('/mod/cms/view.php', ['id' => $contextmodule->instanceid]);
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest to double what the client expects to see as a link to found documents in the search results.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@dmitriim dmitriim Aug 20, 2024

Choose a reason for hiding this comment

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

Yes and what about the link in the search result? It should link to some page, shouldn't it? Please check with the client what they expect, maybe provide some screenshots/video recording for them to understand better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm asking to the client what they expect.
Meanwhile, I'll leave same here and update other parts of this PR.

@TomoTsuyuki TomoTsuyuki force-pushed the issue66-add-searchapi branch from f5c5d5c to 5c4b309 Compare August 29, 2024 02:37
@TomoTsuyuki
Copy link
Contributor Author

I rebased from the latest code, and also added indexing from default values.
The search result can be updated from requirement, but the code can be reviewed other things for now.

@TomoTsuyuki TomoTsuyuki changed the base branch from main to MOODLE_401_STABLE September 3, 2024 04:55
@TomoTsuyuki
Copy link
Contributor Author

The groupconcat function in Moodle is available from 3.11.
Currently, Moodle supports from 4.1, so I dropped this plugin support under 4.0.
The bug in the search has been fixed.
Could you review and test again @dmitriim ?

@dmitriim dmitriim merged commit cd334d5 into MOODLE_401_STABLE Sep 5, 2024
11 checks passed
@dmitriim dmitriim deleted the issue66-add-searchapi branch September 5, 2024 01:48
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