No description
Find a file
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
.github fix: Update stale message 2019-11-04 13:05:36 +05:30
.travis fix(minor): server script enabled 2019-10-11 14:16:49 +05:30
ci add my_config patch to travis 2014-10-12 18:54:44 +05:30
cypress fix(tests): add UI test for next previous document navigation 2019-12-09 19:20:55 +05:30
frappe fix(chat): refactor code to make chat work 2019-12-11 18:04:09 +05:30
rollup fix(rollup): Use terser instead of uglify 2019-04-26 15:52:58 +05:30
.codacy.yml fix(minor): rename "queue" to "frequency" 2019-11-07 12:14:09 +05:30
.deepsource.toml chore: Add Deepsource 2019-10-26 18:28:11 +05:30
.eslintignore Added files in .eslintignore, updated globals 2017-06-02 15:00:15 +05:30
.eslintrc chore: Add strip_number_groups to eslint globals 2019-10-20 09:37:49 +05:30
.gitignore fix: Undo gitignore entry 2019-02-26 16:54:55 +05:30
.mergify.yml chore: Dont merge if squash label is added (#8447) 2019-09-18 13:25:38 +05:30
.pylintrc reactor(scheduler): created "Scheduler Job Type" and cleaned up scheduler 2019-11-07 12:14:09 +05:30
.snyk fix:updated as per hotfix 2019-06-20 18:50:20 +05:30
.travis.yml fix: updated travis config 2019-11-15 13:37:50 +05:30
attributions.md Non Pour Accent! (#5427) 2018-04-10 22:53:42 -08:00
bandit.yml fix(tests): tests and linting 2019-02-13 16:50:34 +05:30
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-09-12 09:14:34 +05:30
cypress.json fix(ui-tests): Pick admin password from config (#7842) 2019-07-05 12:24:07 +05:30
generate_bootstrap_theme.js fix: Common scss options for theme generator and rollup scss 2019-02-19 18:04:56 +05:30
hooks.md Non Pour Accent! (#5427) 2018-04-10 22:53:42 -08:00
LICENSE Update LICENSE 2018-04-12 17:27:20 +05:30
Makefile [NEW] Makefile to clean cache without restart 2018-03-08 15:18:32 +05:30
node_utils.js feat(build): Log build errors in browser console (#5932) 2018-08-07 14:42:39 +05:30
package.json fix: package.json to reduce vulnerabilities 2019-11-04 23:06:38 +00:00
README.md fix: new frappe framework logo 2019-01-29 17:39:17 +05:30
requirements.txt Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
SECURITY.md chore: updated Security policy and issue template 2019-10-12 12:06:36 +05:30
setup.py fix(unicode): Import unicode_literals in every file (#6805) 2019-01-25 11:56:27 +05:30
socketio.js frappe: refactor async to realtime (#6015) 2018-08-28 15:31:20 +05:30
yarn.lock chore(deps): [security] bump tar from 2.2.1 to 2.2.2 2019-11-13 06:46:56 +00:00

Full-stack web application framework that uses Python and MariaDB on the server side and a tightly integrated client side library. Built for ERPNext

Table of Contents

Installation

Install via Frappe Bench

Contributing

  1. Pull Request Requirements
  2. Translations

Website

For details and documentation, see the website https://frappe.io

License

This repository has been released under the MIT License.