Commit graph

69 commits

Author SHA1 Message Date
Gavin D'souza
da0fa439bc style: Optimize imports, fixed flake8 issues 2020-11-27 11:40:53 +05:30
Karthikeyan Singaravelan
0d4f116b3e fix: Import ABC from collections.abc for Python 3.9 compatibility. 2020-11-26 13:17:12 +00:00
Abhishek Balam
6bddca6598 fix: change owner value in doctype jsons to Administrator 2020-09-18 18:05:40 +05:30
Chinmay D. Pai
b7ad4a00f7
chore: fix indentation and cleanup annoying spaces
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-27 13:24:59 +05:30
Chinmay D. Pai
4d4388edbf
fix(chat): separate keywords for user and token
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-27 13:17:55 +05:30
Chinmay D. Pai
03885a058b
fix(chat): change sql formatting
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-11 22:13:28 +05:30
Chinmay D. Pai
a8d2ed8d45
fix(chat): refactor code to make chat work
fixes issues with token being wrongly passed as the owner, instead of
current session user (ie. frappe.session.user), which in turn causes the
following issue:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 57, in application
    response = frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1042, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/chat/doctype/chat_room/chat_room.py", line 203, in create
    room.save(ignore_permissions = True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 272, in save
    return self._save(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 295, in _save
    self.insert()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 223, in insert
    self._validate_links()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 756, in _validate_links
    frappe.LinkValidationError)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 364, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red')
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 350, in msgprint
    _raise_exception()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 316, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Owner: 0a4d6eb7763ef2065f44ece0653d829a1ba189f753562ab9ac261620

also fixes issue where the chat rooms do not load because of wrongly
passed parameters

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-11 18:04:09 +05:30
Gavin D'souza
5db319eec8 fix: revert "unique" fields in chat_*.json 2019-11-19 10:06:15 +05:30
Gavin D'souza
9aa0f9750d chore(chat): delete redundant test files 2019-11-11 17:31:28 +05:30
Gavin D'souza
d73c3f622e chore(chat): update chat doctypes 2019-11-11 15:14:58 +05:30
Sahil Khan
9b65a7c4a1 Merge branch 'version-12-hotfix' into merge_v12_hotfix_1 2019-08-20 16:09:39 +05:30
deepeshgarg007
6d0bf734a5 fix: Response fix in chat message seen function 2019-08-20 11:38:45 +05:30
Shivam Mishra
1d967f7e45 fix: json.loads getting none value in chat 2019-08-08 13:14:40 +05:30
Mangesh-Khairnar
5bb91925de fix: chat room creation 2019-07-29 16:14:05 +05:30
Rohit Waghchaure
da6bcc0c22 fix: not able to sace chat room 2019-07-29 14:19:33 +05:30
Nabin Hait
a92ed100e2 fix: Removed get_doc_before_save 2019-04-23 13:15:39 +05:30
Frappe Bot
94ea028db3 Merge branch 'master' into develop 2019-03-08 09:38:18 +00:00
Aditya Hase
5493d1dfa3 fix(test): Remove unused operations from chat tests (#7028)
Reduces frappe app test time by 20 seconds
2019-03-07 14:36:06 +05:30
deepeshgarg007
347a6dc17f fix: Chat profile not found err msg fix 2019-03-02 17:15:05 +05:30
Frappe Bot
54e97b9ebc Merge branch 'master' into develop 2019-02-28 10:05:32 +00:00
Deepesh Garg
c9c607b71d fix: Chat message not found on refresh issue fix (#6990)
If chat message is deleted then chat message not found error message is shown on refresh.

![chat message](https://user-images.githubusercontent.com/42651287/53424137-a55d1100-3a08-11e9-909f-1c585ddb416a.png)
2019-02-26 23:55:32 +05:30
Aditya Hase
a87b9cc3bd fix: Clear duplicate entry message (#6961) 2019-02-19 23:52:57 +05:30
Faris Ansari
308fa1318f fix: Ignore duplicate entry for Chat Profile (#6959)
![image](https://user-images.githubusercontent.com/9355208/52956076-55e96600-33b4-11e9-9580-6e5173f1fbe2.png)
2019-02-19 14:30:05 +05:30
Aditya Hase
837bfc0995 fix(unicode): Import unicode_literals in every file (#6805)
* fix(unicode): Import unicode_literals in every file

* fix(unicode): Test if safe_json_loads return unicode instead of bytes
2019-01-25 11:56:27 +05:30
Faris Ansari
5f8d19133e fix(Chat): Show red indicator for unread threads (#6629)
- Mark messages as read in background
2018-12-17 10:06:12 +05:30
Aditya Hase
265d4501c6 fix(chat): Do not remove Chat Operators from Website Settings 2018-11-13 12:48:26 +05:30
Faris Ansari
89d56e4de1 fix(translations): Replace translations by keyword with indexed version
Keywords in the translation also gets translated which
results in an error because python cannot find the key
2018-09-18 11:55:10 +05:30
Rushabh Mehta
445e2bd9b8 fix(image): chat room image hidden, finally had to do it in spite of reminding @achillesrasquinha 14 times to do it! 2018-08-16 14:46:46 +05:30
shriharishastry
0a68539c47 [background-report] minor cleanup 2018-07-16 15:43:40 +05:30
Zarrar
f32467dde8 make content as read only (#5787)
if message type is file, make content read only
2018-07-06 18:16:58 +05:30
Achilles Rasquinha
536069147e check chat profile exists the right way 2018-04-09 15:35:18 +05:30
Achilles Rasquinha
6199c2edf9 fix chat token 2018-04-02 11:31:29 +05:30
Achilles Rasquinha
034935db13 Fixed Website Chat updates 2018-03-29 16:57:22 +05:30
Achilles Rasquinha
12b628d885 Added Attachments 2018-03-29 13:50:49 +05:30
Achilles Rasquinha
a9c1117f2e Add chat token 2018-03-26 23:50:04 +05:30
Achilles Rasquinha
1c6694b4cb Added Date Range to Enable Chat 2018-03-26 17:17:00 +05:30
Achilles Rasquinha
5f522510d5 Functional Website Chat 2018-03-26 01:36:03 +05:30
Achilles Rasquinha
27bcc320ef raw commit 2018-03-23 20:28:28 +05:30
Achilles Rasquinha
2c90f4d5b9 raw commit 2018-03-23 17:19:25 +05:30
Achilles Rasquinha
474e219e97 Raw commit 2018-03-22 17:34:07 +05:30
Achilles Rasquinha
cece071dff added website chat 2018-03-22 14:43:28 +05:30
Achilles Rasquinha
22a318a9ff fixed throttling 2018-03-19 19:10:57 +05:30
Achilles Rasquinha
f5a6e22e82
Delete README.md 2018-03-02 18:26:50 +05:30
Achilles Rasquinha
abb7f14bbd self.assertEqual 2018-02-28 21:19:01 +05:30
Achilles Rasquinha
8bae34eb2f frappe.get_version 2018-01-26 18:16:01 +05:30
Achilles Rasquinha
a4c0d6dfbb chat fixes 2018-01-25 10:33:51 +05:30
Faris Ansari
1569a22ec5
[fix] Apply filters for child table in list view (#4907) 2018-01-24 15:29:56 +05:30
Achilles Rasquinha
b04e3cce42 New Chat RoomView Layout 2018-01-22 18:35:25 +05:30
Achilles Rasquinha
27e5cf6967 some minor updates 2018-01-21 11:46:58 +05:30
Achilles Rasquinha
c53ec2e12c
Merge pull request #4871 from achillesrasquinha/Fix-4869
[FIX] permission issues for non System Managers
2018-01-18 18:19:19 +05:30