Commit graph

83 commits

Author SHA1 Message Date
Akhil Narang
d35dbf0d5b
fix(assign_to): escape HTML
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-08-30 17:30:15 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
mergify[bot]
4655c6c1e3
Merge pull request #23678 from niraj2477/gh-20969
feat(List View): Add button to remove multiple assignments
2024-01-13 07:57:17 +00:00
Akhil Narang
55088ce7bd
chore: translate subject as well
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-10 16:21:36 +05:30
Akhil Narang
e29b39f7df
refactor: use receiver's language for some notifications
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-10 16:21:36 +05:30
14987
ab915e3a81
feat: Add button to removing multiple assignments 2023-12-08 13:22:39 +05:30
Ankush Menat
08b92858a3
fix: ignore duplicate perm check on assign hooks (#22832)
* fix: Ignore permissions while assigning if flag set

* fix: Avoid double permission checks on assignment rule

When it's triggered via doc events either:
- Permission check is done or
- Permission checks are not applicable
2023-10-20 06:18:19 +00:00
Ankush Menat
691eae8e84
fix: check read before assigning/removing (#22779) 2023-10-17 18:51:44 +05:30
xdlumertz
7ddae5d11b
fix: translation in assignments
[skip ci]
2023-08-24 17:51:36 +05:30
barredterra
fbbb453138 feat: close assignment from sidebar 2023-08-04 11:47:32 +02:00
Shariq Ansari
89186b8057 fix: multiple assignments to the same person 2023-04-24 11:30:35 +05:30
Marica
90f8f945b4
feat: Disable Sharing globally (#20318)
* feat: Disable Sharing globally

- Checkbox in System Settings
- If disabled, avoid share UI render
- Share APIs return None (non-obstructing) if share APIs are invoked

* feat: Settings checkbox must toggle share permission globally

- Treat feature like a perm toggler. Essentially noone is allowed to explicity share anything
- Implicit sharing via `ignore_share_permissions` is allowed. Devs can decide where sharing should happen under the hood
- UI is made read only and not hidden. Users must see who doc is already shared with
- Make sure perm APIs used by share feature return false if sharing is disabled
- Rename checkbox to `Disable Document Sharing`

* test: (server side) Impact of disabling sharing on APIs

- Also, fix missed system setting rename in `assign_to`

* fix: Inform assigner if assignee lacks perms and sharing is disabled

- misc: readable conditions

* fix: throw instead of msgprint

* fix: Typo and appropriate message for `throw`

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-03-28 18:13:37 +05:30
Ankush Menat
2eec621e95 chore: db.get_all -> get_all
Reduces 1 pointless function call.
Function calls are also not "super cheap" in python.
2022-08-22 11:35:14 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Mohammad Hasnain Mohsin Rajan
fda544f424
refactor!: make automatically following documents optional (#16030)
* fix: make automatically following documents optional

* fix: optimize email triggers for document followed

* test: add tests for document follow settings

* test: sync global search before testing

* fix: extend pypika's cast function to mimic varchar cast in MariaDB

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
2022-03-25 02:01:15 +05:30
Gavin D'souza
1b57717058 fix: Return key name as owner for consistency 2022-01-04 18:58:17 +05:30
shadrak gurupnor
a4aad4dc7a fix: failed test cases & sider issue 2022-01-04 13:39:42 +05:30
shadrak gurupnor
6c6ff2c16d fix: overriding of owner of doc
feat: Fixed the dilemma of owner field in ToDo document
2022-01-04 13:39:16 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
walstanb
3da3a94f9d fix: excluded disabled users from getting emails and notifications 2020-10-24 12:45:30 +05:30
prssanna
35430c6a8b fix: update header for assignment email 2020-06-15 19:39:23 +05:30
prssanna
1bdb91402d fix: include name of user who removed the assignment 2020-06-15 19:34:11 +05:30
Himanshu Warekar
59d1c29c98 fix: test cases 2020-05-18 12:54:26 +05:30
Himanshu Warekar
04a59352f7 fix: test cases 2020-05-06 17:40:50 +05:30
Himanshu Warekar
606c57be5d fix: error message 2020-05-05 17:35:26 +05:30
Himanshu Warekar
7886365c09 chore: code cleanup 2020-04-15 22:48:58 +05:30
Himanshu Warekar
6b9de21d53 fix: minor bug fixes for notifying assignees 2020-04-15 22:20:23 +05:30
Himanshu Warekar
fca6181d67 feat: multiple assignments 2020-04-15 21:32:22 +05:30
Suraj Shetty
dee4a7336c fix(translations): Incorrect syntax 2020-01-29 15:22:35 +05:30
Prssanna Desai
70f49546c1 fix(Notifications): Improvements for Notifications (#8671)
* fix: seen notification logic

* fix: rename upcoming events to today's events, fix padding

* fix: truncate title

* fix: don't allow self notifications

* fix: don't check for same  user for energy point notifications

* fix: codacy

* fix: truncate title client side

* fix: use data-action to mark as seen

* fix: don't send emails for auto energy points
2019-10-28 16:13:40 +00:00
Faris Ansari
99f4372e28 style: Unused variables and imports 2019-10-21 13:32:59 +05:30
Faris Ansari
3ceb0ea4d7 fix: cleanup 2019-10-21 13:15:55 +05:30
Faris Ansari
340c3635ae fix: enqueue_create_notification
- Enqueue one call instead of multiple
- Remove email content argument
2019-10-21 12:39:42 +05:30
prssanna
75b624e7a2 fix: move notifications to desk, refactor notifications.js 2019-10-09 16:23:26 +05:30
prssanna
91d7c79ab0 fix: notification email style and fully clickable links 2019-10-09 16:22:58 +05:30
prssanna
9973e505e0 fix: doctype notification log labels 2019-10-09 16:22:58 +05:30
prssanna
70ca45c293 fix: translated strings 2019-10-09 16:22:58 +05:30
prssanna
47e59753dd fix: enqueue notification creation 2019-10-09 16:22:58 +05:30
prssanna
4833c04609 fix: email notifications sent only if notifications enabled and remove unused imports 2019-10-09 16:22:57 +05:30
prssanna
b1cd456729 fix: remove unused imports 2019-10-09 16:22:57 +05:30
prssanna
e648e13970 fix: common email template for notifications and added document sharing notification 2019-10-09 16:22:57 +05:30
prssanna
fc38664fe7 fix: formatting 2019-10-09 16:22:57 +05:30
prssanna
2073fd1f91 fix: remove notifications code 2019-10-09 16:22:57 +05:30
prssanna
bae5049683 feat(Notifications): Add integrated notifications 2019-10-09 16:22:57 +05:30
Shivam Mishra
becedb64a3 fix: assignments reflect after removing on sidebar 2019-09-16 15:58:24 +05:30
Anurag Mishra
a250e99377
refactor: assignment rule and todo (#8420)
* refactor: assignment rule and todo

* fix: updated query and enabled background jobs

* refactor: use ORM instead of SQL

* style: remove print statement

* refactor: minor change in tests

* style: updated query for getting todo
2019-09-13 17:13:05 +05:30
Rohit Waghchaure
a62a11044a fix: On assignment, system sending an email to the assigned user even if notify to email is disabled 2019-04-18 12:39:22 +05:30
Nabin Hait
8c91e46563 Fixed merge conflict 2019-04-11 11:56:37 +05:30