seitime-frappe/frappe
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
..
automation test: next schedule date 2019-11-29 18:27:42 +05:30
change_log fix: more url fixes 2019-07-24 16:09:56 +05:30
chat fix(chat): refactor code to make chat work 2019-12-11 18:04:09 +05:30
commands chore: dropped legacy selenium dependant tests 2019-11-13 15:01:05 +05:30
config fix: Add Notification Settings 2019-11-21 17:01:33 +05:30
contacts fix: Remove changes in notifications 2019-12-06 09:26:32 +05:30
core fix: add hourly long frequency to scheduled job type 2019-12-09 11:13:45 +05:30
custom fix: Importable docs via Customize Form set in redis cache 2019-10-09 12:36:35 +05:30
data Merge branch 'staging' into develop 2018-12-19 06:30:46 +00:00
data_migration Undefined name: e in data_migration_run.py 2019-11-02 13:12:45 +01:00
database Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
desk fix: permission error 2019-12-10 11:42:25 +05:30
email fix(email): try to encode email part to utf-8 (#8965) 2019-12-09 19:25:43 +05:30
geo revert: changes in currency formatting (#8996) 2019-12-10 15:50:26 +05:30
integrations fix(integration): Social Login Key 2019-12-03 12:41:35 +05:30
model Bug fixed ID value should not be set to 0 by default 2019-12-11 09:21:17 +05:30
modules Merge pull request #8480 from Mangesh-Khairnar/fix-boilerplate-creation 2019-09-24 17:11:48 +00:00
patches fix: patch 2019-12-06 18:06:52 +05:30
printing Merge pull request #8952 from ruchamahabal/onboarding-ui-fixes 2019-12-06 07:14:36 +00:00
public Merge pull request #8974 from rohitwaghchaure/fixed_css_for_dashboard_progress_bar 2019-12-11 12:24:32 +05:30
social style: Fix deepsource 2019-11-20 17:28:12 +05:30
templates fix: Add label to standard print format sections 2019-11-28 16:34:41 +05:30
tests Merge pull request #8963 from prssanna/next-doc-fix 2019-12-09 16:58:17 +00:00
translations feat: Updated translation (#8613) 2019-10-20 12:11:18 +05:30
utils fix(scheduler): import update site config 2019-12-10 15:19:46 +05:30
website Merge pull request #8921 from netchampfaris/website-route-meta-fixes 2019-12-01 16:49:19 +00:00
workflow fix: Rename Reference DocType -> Reference Document Type 2019-09-05 15:47:40 +05:30
www refactor: enable translations 2019-11-19 15:39:28 +05:30
__init__.py Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
api.py fix: REST API utf-8 decoding on creates/updates (#8875) 2019-12-03 06:44:11 +00:00
app.py fix: restore debugging code 2019-09-20 11:20:53 +05:30
auth.py fix(auth): do not force standard users to reset password 2019-11-06 16:39:33 +05:30
boot.py perf(boot): Query all report_types at once 2019-10-23 23:00:03 +05:30
build.py fix: Ignore symlinks during bench build (#7162) 2019-03-29 20:05:16 +05:30
cache_manager.py fix: disable smart shrinking for version 0.12.5 2019-10-25 18:36:26 +05:30
client.py fix(UX): Hide Amend button if the document has been already ame… (#8306) 2019-09-02 16:18:56 +05:30
defaults.py Merge branch 'staging' into develop 2018-12-26 12:03:03 +00:00
deferred_insert.py fix: deferred insert json.loads() typeError (#6577) 2018-12-06 20:14:51 +05:30
exceptions.py fix: added FileNotFoundError compatability (#8342) 2019-09-05 13:17:40 +05:30
frappeclient.py chore: remove print from frappeclient 2019-10-09 16:04:04 +05:30
handler.py feat(server scripts): add server scripts! 2019-10-11 14:16:49 +05:30
hooks.py reactor(scheduler): created "Scheduler Job Type" and cleaned up scheduler 2019-11-07 12:14:09 +05:30
installer.py feat(doctype link): add links to doctype for link dashboard 2019-11-07 12:14:09 +05:30
middlewares.py refactor(recorder): Remove RecorderMiddleware 2019-02-19 21:58:55 +05:30
migrate.py reactor(scheduler): created "Scheduler Job Type" and cleaned up scheduler 2019-11-07 12:14:09 +05:30
modules.txt feat: Init energy points 2019-03-19 14:08:35 +05:30
oauth.py update(frappe): Update dependency Oauthlib (#6832) 2019-01-31 16:35:57 +05:30
patches.txt fix: patch 2019-12-06 18:22:46 +05:30
permissions.py fix: Use get_all instead of get_list 2019-09-11 15:58:36 +05:30
pythonrc.py
realtime.py frappe: refactor async to realtime (#6015) 2018-08-28 15:31:20 +05:30
recorder.py fix: frappe.conf.db_type -> frappe.db.db_type 2019-05-24 11:44:28 +05:30
sessions.py feat: onboarding wizard with configurable slides 2019-11-21 20:21:13 +05:30
share.py fix: formatting 2019-11-04 23:39:30 +05:30
test_runner.py Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
translate.py fix(translations): Extract messages from .vue files (#8403) 2019-09-13 12:42:04 +05:30
twofactor.py fix(tests): strict redis 2019-11-07 12:14:09 +05:30