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

[Base] Add filter to get current env #668

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

Conversation

DorienD
Copy link
Member

@DorienD DorienD commented Apr 22, 2020

A filter to get the current environment to use in the templates.

@DorienD DorienD added this to the 0.44.0 milestone Apr 22, 2020
@DorienD DorienD requested a review from rl-king April 22, 2020 10:44
@rl-king
Copy link
Contributor

rl-king commented Apr 22, 2020

Shouldn't this be implemented as a model? @loetie @robvandenbogaard

Copy link
Contributor

@robvandenbogaard robvandenbogaard left a comment

Choose a reason for hiding this comment

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

Agreed with @rl-king that this should be a model, not a filter - an indication is that the filter parameter is dropped; it doesn't filter anything. Should the model be m.environment or would that pollute the global model namespace too much (vs m.system.environment or m.server.environment - is there already a namespace/model we can extend for this)?

Copy link
Contributor

@rl-king rl-king left a comment

Choose a reason for hiding this comment

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

Note sure how to remove myself from the reviewers list, but by doing this my review "todo" list in GH is empty :)

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.

None yet

4 participants