-
Notifications
You must be signed in to change notification settings - Fork 64
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
Opt out user office from missed reservation notifications #265
base: master
Are you sure you want to change the base?
Conversation
… it if they need it
Extends functionality to accesses outside the allowed schedule for areas not requiring a reservation. Relevant area -related changes are mirrored from [NEMO-CE Merge Request](https://gitlab.com/nemo-community/nemo-ce/-/merge_requests/31).
Out of schedule email for areas.
* Pickadate format now based on js format. Closes usnistgov#237 * Pickadate format conversion: remove additional unsupported formats. * Pickadate format conversion: fix submit format. * Pickadate format: rename variable. * Pickadate format: remove additional hardcoded value. * Pickadate format: fix unsupported removal order. * Pickadate format: fix typo. * Pickadate format: fix typo. * Pickadate format: remove duplicated formats. * Pickadate format: improved logic. Also renamed variables. * Update NEMO/apps/kiosk/templates/kiosk/tool_reservation.html * Update NEMO/templates/mobile/new_reservation.html * fixed wrong format for date --------- Co-authored-by: Mathieu Rampant <[email protected]>
…mplate (when someone forces a user off a tool but there were required questions to answer)
- added creation time to adjustment request admin page
…run data to "Start date" and to "End date" for post run data
- restricted impersonate so regular users cannot impersonate admins
…other API behavior
…stall plugins and other python packages
- added "critical" flag to plugin apps to stop NEMO when there is an issue with loading a plugin (otherwise it's logged and ignored)
…int" queries on sensors
…isabling the same tool concurrently - added preload_app = True to gunicorn
… safety hazard is reported
… last value in the sensor model itself
…ards - for modbusTCP implementations, the "timeout" key/value can be specified as the timeout for the connection
* Improved required question star contrast. * Improved required question highlighting. Fixes usnistgov#256 * Moving invalid form input style to new `dynamic_form` class. * Fixing required question line height. * Port required form improvements to admin preview. * Update NEMO/static/admin/dynamic_form_preview/dynamic_form_preview.css --------- Co-authored-by: Mathieu Rampant <[email protected]>
…utocomplete for fields not linked to foreign keys
… duration spans multiple off windows
that's a good idea. most of the notification emails being cc'd to one or the other email addresses are purely based on the CNST NanoFab requirements at the time. I could see the "Email addresses" part of Customizations being extended to have checkboxes to allow facilities to decide which of the emails should they be included to. This could expand to the other email addresses, and potentially also regarding the emails being sent from those email addresses. In short:
How does that sound? |
I am debating actually. I was originally thinking simply listing the emails sent from any of those addresses (only having choice between server email and that email) and whether they should be cced on stuff, but now I am rethinking this. Here is what I am now thinking:
def __init__(self, *args, **kwargs):
for email_template, extension in self.files:
self.__class__.variables[f"{email_template}_subject"] = ""
self.__class__.variables[f"{email_template}_send_from"] = ""
self.__class__.variables[f"{email_template}_cc_addresses"] = ""
super().__init__(*args, **kwargs)
This is a pretty big feature, and I probably haven't thought all of it through so we can discuss more, and if that's too much I also totally get it. Let me know your thoughts. Thanks, |
Hi @rptmat57
I am opening this PR for an opt-out customization to remove User Office email from some notifications.
In first place I was thinking about removing it from the missed reservation notification. These emails already reach the abuse mailing list, same as "unauthorized tool access email" and "Out of time email"; the latter two notifications are not sent to user office, instead.
I was wondering if the discrepancy above was intended. If so, I would proceed to remove it through a Customization option, for the sake to avoid breaking changes.
I was also wondering if there are any similar cases which might make sense to include in the PR, either here or in NEMO-CE, to have the same approach.
On top of that, any other suggestion of different approaches is always welcome.