-
Notifications
You must be signed in to change notification settings - Fork 17
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
docs: [FC-0074] add suggestion about the design of filters #240
base: main
Are you sure you want to change the base?
Conversation
Thanks for the pull request, @mariajgrimaldi! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
0ea79df
to
e8816cd
Compare
I like this PR. I would suggest adding a code example to show how to apply the guidelines correctly. It could be a full example or an example for each section. It is not a blocker, but I think it could improve the understanding of the guidelines. Also, we are referencing this ADR in the how-to documentation. What do you think @mariajgrimaldi? Example:
|
@MaferMazu: That's a really good idea! I'll work on integrating some examples in the ADR independently from the how-to. I'll ping you once it's done. Thank you! |
@MaferMazu: done, you can review the changes now. Thank you again for the suggestions! |
I think it would be better if we had the general example with his own section and referenced it in the guidelines that need a reference so as not to stick to the general example only in the first suggestion and have to return to that in the next ones. What do you think @mariajgrimaldi? |
@MaferMazu: I'm not sure I understand your latest comment. Could you explain a bit further? Thanks for the patience! |
I proposed having a specific section for the example because, right now, it is inside one of the recommendations, and returning a particular recommendation to view the example doesn't seem in order. Right now, we have the following:
The idea is to have something like:
Or having the example above. The main idea is not to have the whole example we want to reference in a particular guideline. In my first suggestion, I thought of an example for each section that needed it. But if we use one example as a reference throughout the document, it makes sense that it has its section and doesn't live in a particular one. |
@MaferMazu: Thank you for the detailed explanation. However, I think adding a more detailed example here would remove the need for this PR to implement a filter that follows these practices. Do you think we'd still need the example having that how-to? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment was about the location of the example, and you already addressed it.
This looks good to me. Thanks @mariajgrimaldi ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the advice contained in this doc is solid and at the technical level everything looks correct to me.
Feel free to merge when the inlines are addressed.
Description
This PR adds an ADR with practices to consider when designing a filter and contributing it back to the library to be maintained as part of the framework. I'm proposing that these practices be considered when implementing new filters, but they should NOT be considered standards that all filters should strictly follow. Also, I'm not saying either that all the existing filters in the library comply (or should) with these practices.
This document will be used as a reference in the How to Create a New Filter guide. I'm currently validating these items while I write the guide, making sure these suggestions are clear enough to follow. You can review it here (consider that is still a draft): #242
Testing instructions
You can review the docs here: https://docsopenedxorg--240.org.readthedocs.build/projects/openedx-filters/en/240/decisions/0007-filter-design-practices.html
Deadline
None
Checklists
Check off if complete or not applicable:
Merge Checklist:
Post Merge:
finished.