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

Minor fix for tika validation. #96

Open
wants to merge 1 commit into
base: MOODLE_310_STABLE
Choose a base branch
from

Conversation

dvdcastro
Copy link
Contributor

Adding a CLI script for testing tika too.

Adding a CLI script for testing tika too.

Options:
-h, --help Print out this help
-t, --testfileid (Optional) PDF or accepted file id to send to tika for analysis
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do we get testfileid from? Is it id from mdl_files? If so, then this is not user friendly. Maybe we can pass a path to a test file instead? Or we could use files from tests/fixtures?

// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* CLI config tester
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you considered move this CLI to UI instead? E.g. after submitting setting we could check if it actually works and then display results?

@dmitriim
Copy link
Contributor

dmitriim commented Jul 24, 2023

Thanks @dvdcastro for submitting the patch. Bug fix looks good, however, I'm a bit hesitant about a new CLI script. I'd suggest to move this check to UI. If it's not something that you can do in a near future we can split bugfix and a new check as different PR so the bugfix could land faster.

@dmitriim
Copy link
Contributor

I merged fixing part of this PR here #105

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