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

Closes #302 #220 #303

Merged
merged 9 commits into from
Jul 23, 2024
Merged

Closes #302 #220 #303

merged 9 commits into from
Jul 23, 2024

Conversation

28Smiles
Copy link
Contributor

@28Smiles 28Smiles commented Jul 23, 2024

Closes #302 #220
Also fixes the same bug from #302 for qrcodes

@28Smiles
Copy link
Contributor Author

@michael-milette Ready for review

@michael-milette michael-milette self-assigned this Jul 23, 2024
@michael-milette michael-milette self-requested a review July 23, 2024 16:10
@michael-milette
Copy link
Owner

michael-milette commented Jul 23, 2024

Hi @28Smiles ,

Thank you so much for you all your work. It is looking very good. I just came across a few minor issues that need to be addressed:

  1. On the following line, the short array syntax [] instead of array() must be used to define arrays in order to meet Moodle coding guidelines:
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/filter.php#L322
  2. On the following two lines, was it an oversight that you did not replace the word "group" with "grouping"?
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/filter.php#L4638
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/filter.php#L4667
  3. We need an example usage for the {ifingrouping} and {ifnotingroup} tags inserted around this line:
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/README.md?plain=1#L1347
  4. We need an example usage for the {rawurlencode} tag inserted around this line:
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/README.md?plain=1#L1268
  5. We need an example usage for the {mygroupings} tag inserted around this line:
    https://github.com/28Smiles/moodle-filter_filtercodes/blob/master/README.md?plain=1#L1268

That's it. The rest is looking great. With these small changes, I will be happy to merge your suggested changes as soon as I receive them.

Best regards,

Michael

@michael-milette
Copy link
Owner

michael-milette commented Jul 23, 2024

Hi Leon,

I was also wondering, can you think of a situation where urlencode() should be used instead of rawurlencode() as you suggested?

If you can't, I think we should just update the {urlencode} tag to be RFC 3986 compliant. Thoughts?

Michael

@28Smiles
Copy link
Contributor Author

28Smiles commented Jul 23, 2024

First of all thank you for the additional pairs of eyes, I saw the error in the ci but thought it was outside of my code. Should be all fixed now.

urlencode is form-urlencoded, I am unsure about any uses. I implemented it seperate to keep backwards compatibility, just in case.

Just wondering, will you push a release in the coming weeks, we plan on using those features with our next moodle update, to ease up the experience of our students.

@28Smiles 28Smiles removed their assignment Jul 23, 2024
@michael-milette michael-milette merged commit fa6cd07 into michael-milette:master Jul 23, 2024
10 checks passed
@michael-milette
Copy link
Owner

Hi Leon,

Thank you very much for your contribution. I can see that you do great work and your attention to detail is excellent.
The changes you proposed have now been integrated into FilterCodes and will be included in the next release.

Note: I amended your last commit to fix one of the examples and to give you credit in the Contributors section of the README.md file.

Thanks again!

Michael

@michael-milette michael-milette added the Resolved This issue has been addressed. label Jul 23, 2024
@28Smiles
Copy link
Contributor Author

28Smiles commented Jul 23, 2024

Thank you too!

Leon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolved This issue has been addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: {qrcode} and {urlencode} not processed after replacement tags
2 participants