Skip to content

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