Commit graph

154 commits

Author SHA1 Message Date
prssanna
f7f2be5926 fix: rename function 2020-06-01 10:51:38 +05:30
prssanna
4b2d730a8c fix: variable naming 2020-06-01 10:51:38 +05:30
prssanna
4c16b2a608 feat: api to get additional filters 2020-06-01 10:51:38 +05:30
Shivam Mishra
71442033c4 fix: breadcrumb routing bug for desk pages 2020-05-29 15:14:18 +05:30
Shivam Mishra
a905f34c2d
fix: use get-all instead of get-list (#10444) 2020-05-21 17:06:45 +05:30
Shivam Mishra
77a333086c
feat: make dashboards searchable in awesomebar (#10385) 2020-05-18 20:41:16 +05:30
Shivam Mishra
977e6c23f2
perf(desk): Even faster desk (#9930)
* feat (perf): even faster desk

* fix: user not found bug

* feat: store db counts

* feat: use cached db.get_value

* style (sider): comparison to None should be 'if cond is None:'

* feat: add keys to user_cache_keys

* refactor: cache blocked modules and roles

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-05-13 15:12:19 +00:00
Prssanna Desai
f9e898eea4
Merge pull request #9959 from scmmishra/tracking
feat: web page tracking
2020-04-21 14:08:41 +05:30
prssanna
685df9b1f1 fix: remove doctype from link_preview_doctypes if custom value is 0 2020-04-19 14:47:14 +05:30
prssanna
c424c7e263 feat: Add show preview popup to Customize Form 2020-04-19 14:47:14 +05:30
Shivam Mishra
33c6089049 feat: rename doctype to Web Page View 2020-04-16 18:25:36 +05:30
Shivam Mishra
9ad1cf94f2 feat: add tracking enabled info to boot 2020-04-16 00:01:55 +05:30
Shivam Mishra
dd8fe18656 feat: add allowed sidebar items to bootinfo 2020-04-07 15:47:58 +05:30
Shivam Mishra
29276a8954 feat: add workspace page as default home page 2020-03-02 18:49:56 +05:30
Aditya Hase
ea2c971d58
perf(boot): Query all report_types at once 2019-10-23 23:00:03 +05:30
Himanshu Warekar
db3656afb7 fix: codacy fixes 2019-08-12 09:46:51 +05:30
Himanshu Warekar
4e52c6ffa2 fix: indentation 2019-08-09 22:18:00 +05:30
Himanshu Warekar
a23dc0a749 feat: google drive initial bringup 2019-08-09 22:13:39 +05:30
Suraj Shetty
b23fea9d17 fix(link-preview): Get preview fields on server side
- Show a fallback image if image URL is invalid
- Fixes unexpected "Unknown column" errors
2019-08-03 21:57:18 +05:30
Aditya Hase
7b3304d7d7 fix(error-report): Use error_report_email from config instead of hooks 2019-06-06 00:00:59 +05:30
Rushabh Mehta
3d26d2dd22 BREAKING CHANGE: remove Feedback Trigger and Feedback Rating, this was not very configurable and can now be done better with Web Forms 2019-05-13 14:18:02 +05:30
Suraj Shetty
45c7eb4c71 feat: Show frequently visited links on awesome bar 2019-04-29 12:51:16 +05:30
Suraj Shetty
7ed02cd103 fix: Remove extra call for review points of form load 2019-04-22 22:33:59 +05:30
Faris Ansari
2e811b1603 fix: Fetch page title for core pages 2019-04-03 18:12:11 +05:30
Faris Ansari
0b574a34b5
Merge branch 'develop' into desktop-fixes 2019-04-01 10:18:57 +05:30
Faris Ansari
65484367bd fix: Desktop
- Customize Shortcuts dialog
- Show / Hide cards dialog
- MultiSelect UI Pills
2019-03-29 13:16:11 +05:30
Suraj Shetty
1942f07aa2 chore: Fix codacy 2019-03-27 12:06:27 +05:30
Suraj Shetty
bde72dcba9 fix: Remove energy_points data from boot 2019-03-26 21:19:10 +05:30
Suraj Shetty
4c8c44f541 fix: Remove update_user_energy_points function
- Add create review points log
- Remove unwanted hooks
- Add get_energy_points function
2019-03-22 08:06:57 +05:30
Suraj Shetty
c9aa99537a fix: Process for energy points only if setting is enabled 2019-03-20 11:32:53 +05:30
Suraj Shetty
56b28d0a0a feat: Init energy points 2019-03-19 14:08:35 +05:30
Prateeksha Singh
3f519de474 feat(desk): Overlay customizations over default settings 2019-03-12 12:58:45 +05:30
Prateeksha Singh
466de4f19b refactor(allowed_modules): use the new modules API 2019-02-06 17:07:13 +05:30
Prateeksha Singh
e93cea1336 refactor(desktop_icons): Remove references and repurpose bootinfo
- Also revert deleting desktop page doc
2019-02-06 17:03:27 +05:30
KanchanChauhan
f581ebfbb8 feat: Restrict user in mentions (#6520)
Avoid mentioning and accidentally sending email to Supplier or Customer or left employees
2018-11-22 11:50:46 +05:30
Suraj Shetty
1f6a6a1045 Add banner Image 2018-10-21 09:53:05 +05:30
Mangesh-Khairnar
20d0bd34a5 profile: likes, post and pinned post 2018-10-21 09:53:05 +05:30
Suraj Shetty
4692ecfab2 Load user bio 2018-10-21 09:52:12 +05:30
Rushabh Mehta
2e6a202652 Postgres support for Frappe (#5919)
* [start] postgres

* [wip] started refactoring db_schema

* Add psycopg2 to requirements.txt

* Add support for Postgres SQL

- Separate frameworkSQL, database, schema, setup_db file for
mariaDB and postgres
- WIP

* Remove quotes from sql to make it compatible with postgres as well

* Moved some code from db_schema to database.py

* Move code from db_schema to schema.py

Add other required refactoring

* Add schema chages

* Remove redundant code in file

* Add invalid column name exception class to exceptions.py

* Add back tick in query wherever needed and replace ifnull with coalesce

* Update get_column_description code in database.py file

* Remove a print statement

* Add keys to get on_duplicate query

* Add bactick wherever necessary

- Remove db_schema.py file

* Remove DATE_SUB as it is incompatible with postgres

- Fix prepare_filter_condition

* Add backtick and quotes wherever necessary
- Move get_database_size to frappe.db namespace
- fix some left out bugs and errors

* Add code to create key and unique index
- added mysql and posgres in their respective database.py

* Add more bacticks in queries and fix some errors
- Pass keys to on_duplicate_update method
- Replace MONTH with EXTRACT function
- Remove DATEDIFF and CURDATE usage

* Cast state value to int in toggle_two_factor_auth
- since two_factor_auth has the datatype of Int

* Refactor
- Replace Timediff with normal arithmetic operator
- Add MAX_COLUMN_LENGTH
- Remove Redundant code
- Add regexp character constant
- Move create_help_table to database.py
- Add get_full_text_search_condition method
- Inherit MariaDBTable from DBTable

* Replace Database instance with get_db method

* Move db_manager to separate file

* Refactor
- Remove some unwanted code
- Separate alter table code for postgres and mysql
- Replace data_type with column_type in database.py

* Make fulltext search changes in global_search.py

* Add empty string check

* Add root_password to site config

* Create cli command for postgres console

* Move setup of help database to setup_db.py

* Add get_database_list method

* Fix exception handling
- Replace bad_field handler with missing_column handler

* Fix tests and sql queries

* Fix import error

* Fix typo db -> database

* Fix error with make_table in help.py

* Try test for postgres

* Remove pyhton 2.7 version to try postgres travis test

* Add test fixes

* Add db_type to the config of test_site_postgres

* Enable query debug to check the reason for travis fail

* Add backticks to check if the test passes

* Update travis.yml
- Add postgres addon

* Try appending 'd_' to hash for db_name
- since postgres does not support dbname starting with a number

* Try adding db_type for global help to make travis work

* Add print statements to debug travis failure

* Enable transaction and remove debug flag

* Fix help table creation query (postgres)

* Fix import issue

* Add some checks to prevent errors
- Some doctypes used to get called even before they are created

* Try fixes

* Update travis config

* Fix create index for help table

* Remove unused code

* Fix queries and update travis config

* Fix ifnull replace logic (regex)

* Add query fixes and code cleanup

* Fix typo
- get_column_description -> get_table_columns_description

* Fix tests
- Replace double quotes in query with single quote

* Replace psycopg2 with psycopg2-binary to avoid warnings
- http://initd.org/psycopg/docs/install.html#binary-install-from-pypi

* Add multisql api

* Add few multisql queries

* Remove print statements

* Remove get_fulltext_search_condition method and replace with multi query

* Remove text slicing in create user

* Set default for 'values' argument in multisql

* Fix incorrect queries and remove few debug flags
- Fix multisql bug

* Force delete user to fix test
- Fix Import error
- Fix incorrect query

* Fix query builder bug

* Fix bad query

* Fix query (minor)

* Convert boolean text to int since is_private has datatype of int
- Some query changes like removed double quotes
and replace with interpolated string to pass multiple
value pass in one of the query

* Extend database class from an object to support python 2

* Fix query
- Add quotes around value passed to the query for variable comparision

* Try setting host_name for each test site
- To avoid "RemoteDisconnected" error while testing data migration test
- Update travis.yml to add hosts
- Remove unwanted commit in setup_help_database

* Set site hostname to data migration connector (in test file)
- To connect the same site host

* Fix duplicate entry issue
- the problem is in naming series file.
In previous commits I unknowingly changed a part of a series query
due to which series were not getting reset

* Replace few sql queries with orm methods

* Fix codacy

* Fix 'Doctype Sessions not found' issue

* Fix bugs induced during codacy fixes

* Fix Notification Test

- Use ORM instead of raw sql

* Set Date fallback value to 0001-01-01

- 0000-00-00 is invalid date in Postgres
- 0001-01-01 works in both

* Fix date filter method

* Replace double quotes with single quote for literal value

* Remove print statement

* Replace double quotes with single

* Fix tests

- Replace few raw sql with ORM

* Separate query for postgres

- update_fields_to_fetch_query

* Fix tests

- replace locate with strpos for postgres

* Fix tests

- Skip test for datediff
- convert bytes to str in escape method

* Remove TestBot

* Skip fieldname extraction

* Replace docshare raw sql with ORM

* Fix typo

* Fix ancestor query test

* Fix test data migration

* Remove hardcoded hostname

* Add default option and option list for db_type

* Remove frappe.async module

* Remove a debug flag from test

* Fix codacy

* fix import issue

* Convert classmethod to static method

* Convert few instance methods to static methods

* Remove some unused imports

* Fix codacy

- Add exception type
- Replace few instance methods with static methods
- Remove unsued import

* Fix codacy

* Remove unused code

* Remove some unused codes

- Convert some instance methods to static function

* Fix a issue with query modification

* Fix add_index query

* Fix query

* Fix update_auth patch

* Fix a issue with exception handling

* Add try catch to a reload_doc

* Add try-catch to file_manager_hook patch

* import update_gravatar to set_user_gravatar patch

* Undo all the wrong patch fixes

* Fix db_setup code 😪
- previously it was not restoring db from source SQL
which is why few old patched were breaking
(because they were getting different schema structure)

* Fix typo !

* Fix exception(is_missing_column) handling

* Add deleted code
- This code is only used in a erpnext patch.
Can be moved to that patch file

* Fix codacy

* Replace a mariadb specific function in a query used in validate_series

* Remove a debug flag

* Revert changes (rename_parent_and_child)

* Fix validate_one_root method

* Fix date format issue

* Fix codacy
- Disable a pylint for variable argument warning
- Convert an instance method to static method

* Add bandit.yml

The Codacy seems to use Bandit which generates
warning for every subprocess import and its usage during pytest
Since we have carefully used subprocess (avoided user input),
warnings needs to be avoided.
This can be removed if we have any alternative for subprocess usage.

* Skip start_process_with_partial_path check

* Fix typo

* Add python 2.7 test

* Move python versions in travis.yml

* Add python versions to jobs

* Overwrite python version inheritance for postgres in travis.yml

* Add quotes around python version in .travis.yml

* Add quotes around the name of the job

* Try a travis fix

* Try .travis.yml fix

* Import missing subprocess

* Refactor travis.yml

* Refactor travis.yml
- move install and tests commands to separate files
- Use matrix to build combination of python version and db type

* Make install.sh and run-tests.sh executable

* Add sudo required to travis.yml to allow sudo cmmands in shell files

* Load nvm

* Remove verbose flag from scripts

* Remove command-trace-print flag

* Change to build dir in before script

* Add absolute path for scripts

* Fix tests

* Fix typo

* Fix codacy
- fixes - "echo won't expand escape sequences." warning

* Append (_) underscore instead of 'd' for db_name

* Remove printf and use mysql execute flag
2018-09-21 10:20:48 +05:30
sivankar
a48b76b940 refactored code to add support in filters to get descendant or ancest… (#5847)
* refactored code to add support in filters to get descendant or ancestor for tree type documents

* added semicolon and comments to imporve code quality

* refactored code to add not ancestor and not descendants of filters

* added test cases for ancestors of and descendants of

* Translate labels
2018-08-14 12:19:18 +05:30
Prateeksha Singh
0d8b9c8653 Revert "Modules dropdown" (#5855)
* Revert "bench use <site> should check if the  site exists (#5849)"

This reverts commit 630858eb96.

* Revert "Add option to convert password to use ASCII instead of Unicode when needed by smtp server config (#5793)"

This reverts commit 191684f6a5.

* Revert "Token based authentication (#5752)"

This reverts commit abd3333bae.

* Revert "[minor] test fix"

This reverts commit b6ba3915a6.

* Revert "allow null when time field is not required (#5832)"

This reverts commit 803f6b0c7b.

* Revert "remove duplicate field entry for fieldname two_factor_authentication (#5846)"

This reverts commit 6a06e65d20.

* Revert "Query Report (#5845)"

This reverts commit f870a0bd25.

* Revert "Modules dropdown (#5767)"

This reverts commit 6f908b3443.
2018-07-23 15:34:34 +05:30
Prateeksha Singh
6f908b3443 Modules dropdown (#5767)
* [modules-dropdown] init

* [modules-sidebar] setup structure

* [modules-sidebar] add chunks to group

* [modules-dropdown] ellipsis

* [move] help menu to explore menu

* merge help column to modules

* [modules-dropdown] get explore links from hooks

* [add] explore_link secondary

* [modules-dropdown] Places list

* [modules-dropdown] deprecate desk link, make icon dropdown

* [modules-dropdown] collapsible help menu

* [remove] global navbar icon style

* [boot] define core modules, use in dropdown

* [modules-dropdown] code style fixes
2018-07-19 18:06:37 +05:30
Suraj Shetty
a93bc87363 Permission fixes (#5530)
* Add User Permissions to Config module

* Update Permission Manager help

* Fix share button

* Remove user-permissions page

* Remove unnecessary error modals

* User Permission UI fixes
- Fix double multicheck bug on save
- Add margin above and below select all button

* Update user_permissions dict realtime on client side

- Remove user_permissions from boot

* Cast permission dict values to int
2018-05-04 19:49:11 +05:30
Suraj Shetty
14c621fca2 Success Action (#5434)
* success model init

* ui changes

* whitelisted get_count method

* refactor success action

* refactor form.js
- lint error fixes
- reject promise on error

* Refactor
- option to add body to msg-alert
- remove unwanted css
- tweak msg-alert ui

* remove alert on any action click

* sample success modal config for toDo

* success alert redesign

* docstatus check

* close button position fix

* add doctype for success action setting

* remove unwanted changes

* remove unused import

* rename success action setting to success action

* add translatable label

* rename for_doctype to ref_doctpe

* remove unused frappe import

* replace get_list with get_all
to ignore permission check while loading boot
2018-04-18 11:22:51 +05:30
Nabin Hait
944b45b62d fixed merge conflict 2018-04-06 15:05:15 +05:30
Prateeksha Singh
8106b3839e [add] allowed app icons 2018-04-05 14:43:28 +05:30
Rohit Waghchaure
8044b8be89 [Fix] Footer for report print 2018-04-04 15:15:02 +05:30
Makarand Bauskar
d0fd1482c4 [hotfix] ignore the disabled reports in sidebar Reports section (#4200) 2017-09-28 12:12:16 +05:30
Rushabh Mehta
fd7e8eda62 [wip] file upload with socketio 2017-09-14 13:07:29 +05:30
Aditya Hase
e6bd1e4995 Replaced all instances of 'unicode' with 'six.text_type' (#3825) 2017-08-02 16:57:39 +05:30