Commit graph

4704 commits

Author SHA1 Message Date
mergify[bot]
939d926b91
feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (backport #18263) (#18281)
* feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (#18263)

* feat: added Subscription Banner and Manage Subscription button

* feat[patch]: added a patch for adding `Manage Subscription` button in
navbar_settings

* chore: removed console ;)

* refactor: make the `Manage Subscription` navbar item optional

* keep it hidden by default, only show when the site configs are present

* style: prettier, isort and stuff

* chore: handling null responses, translation and refactored patch

* fix: correct index reset

* perf: reduce network/db calls

If not sys manager then why make a request?

* fix: removed network call and added subscription_expiry to boot process

* chore: added enable_manage_susbcriptions as daily background job and refactored patch

* chore: added hook to hooks.py

* this looks clean enough, also don't have insert for child tables ;)

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 68f315d372cc8c6e41f2aabda61eba0d42dcf6e4)

# Conflicts:
#	frappe/patches.txt

* chore: conflicts

* style: format

[skip ci]

Co-authored-by: Rutwik Hiwalkar <50401596+rutwikhdev@users.noreply.github.com>
2022-10-03 16:41:12 +05:30
Raffael Meyer
513321810d
fix(Data Import): don't validate empty values (#17923)
* refactor: exclude header from column values earlier

* fix: don't validate empty columns

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-03 10:57:42 +05:30
Cleo Menezes Jr
af24bbff1b
fix: Show Report button should appear only if the doc is saved (#18268) 2022-10-01 00:10:55 +05:30
Ankush Menat
967cc26fab feat: capture custom values in frappe monitor
lets monitor add extra info for:
- Save/Submit by doctype
- Report generation time by standard report name
2022-09-25 15:07:30 +05:30
Ankush Menat
3203dc8c1f
fix: filter out inactive workers (#18200)
[skip ci]
2022-09-21 12:15:03 +05:30
Ankush Menat
1c06b331ef
Merge pull request #18178 from phot0n/restrict-ip-text
fix: change fieldtype of restrict_ip from data to small text
2022-09-19 18:56:26 +05:30
Sagar Vora
6c6a969d3a perf: simpler, faster meta cache 2022-09-19 16:21:11 +05:30
phot0n
359f0c3dcb fix: change fieldtype of restrict_ip from data to small text 2022-09-19 16:07:38 +05:30
Rucha Mahabal
da5a6d3f24
fix: show Roles child table for custom reports (#18139) 2022-09-15 19:54:07 +05:30
Ankush Menat
7453e8e3a1 perf: drop all old parent indexes
- re-add parent index on custom_docperm
2022-09-14 14:28:47 +05:30
Ankush Menat
3a5a45d8af perf: drop many unused indexes
- reference owner - only used for activity page which is unusable
  *anyway*
- same for timeline and link doctypes

perf: drop unused index from Commment

Can't find a single  query that uses this index

perf: drop pointless "Is home folder" index

just why? It's checkbox index with 1 entry which has unique name already

Most pointless index I've seen no far.

perf: Drop "attached to doctype" separate index

There is already a composite index for this.

perf: drop indexes from web page view log

BOTH are totally unused in any of the queries related to this doctype.

Only "website analytics" report uses this which doesn't even show this
data lmao.

perf: drop unused index from EPS log

We never filter by doctype or type. pointless indexing.

perf: fix up notification log indexes

- drop unused index
- add "for user" index
2022-09-14 14:28:47 +05:30
Ankush Menat
4120d5a8e3
fix: RQ job name when func object is passed (#18112)
[skip ci]
2022-09-13 19:10:21 +05:30
Ankush Menat
1a60049af0
refactor: simpler job queued checking (#18091) 2022-09-12 12:59:00 +05:30
Ankush Menat
11936a76df feat: kill a running background job -f
Also refactor permission checks
2022-09-12 11:49:25 +05:30
Ankush Menat
2267d40420 test: add tests for bg job monitoring code 2022-09-12 11:49:25 +05:30
Ankush Menat
fc048ae5e3 refactor!: remove background jobs page 2022-09-12 11:49:25 +05:30
Ankush Menat
4ae85b20db feat: auto refresh RQ job page 2022-09-12 11:49:25 +05:30
Ankush Menat
46df97c3f2 feat: show scheduler status on RQ job page 2022-09-12 11:49:25 +05:30
Ankush Menat
c021b07255 fix: disable count and stats 2022-09-12 11:49:25 +05:30
Ankush Menat
dca6592b7e feat: delete background jobs from form views 2022-09-12 11:49:19 +05:30
Ankush Menat
fc0ff7bd2e feat: RQ job doctype 2022-09-12 11:49:05 +05:30
Ankush Menat
330bd08210 feat: RQ worker virtual doctype
Enuff manual JS and HTML crap, lets reuse list and form views!
2022-09-11 11:44:12 +05:30
Ankush Menat
f5a45a7e78 fix: erase default before adding new series-es 2022-09-10 13:14:23 +05:30
Ankush Menat
62d65aa843 perf: drop useless indexes from view log 2022-09-09 17:34:46 +05:30
Ankush Menat
55617b9e86 fix: defer logging during read only mode
Deferred:
- Error log
- view log
- web page view

Disable:
- "_seen" tracking used on list view to highlight unseen docs.
- "seen" on error log.
- dashboard chart last ts caching
2022-09-09 17:34:46 +05:30
Nikhil Kothari
89b2e5133f
feat: option to disable user pass based login (#18000)
* Added checkbox to disable pass login in settings

* Added user_pass disable option in Login page context

* Hide user-pass fields when option disabled

* Added check for social login key and LDAP

* feat: Disable API based usr-pwd login

* style: format with black

* refactor: simpify auth validation

No need for else clause

* refactor: fixup sys setting json and move field

* refactor: sys settings validation

* refactor: simpler imports

* chore: undo unintional changes

* test: add test for disabled user pass

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-09-06 13:48:00 +05:30
Ankush Menat
8541fa4cd3 refactor: dont fetch whole doc for 1 value. 2022-09-02 17:47:30 +05:30
HENRY Florian
df9e8c62dd
feat: review Custom and Build workspace, move background Job to Build Workspace (#17981)
* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* feat: review link for Custom, build and NavBar

* chore: linter json

* fix: replace Block Module By Module Profile

* chore: cypress test

* chore: reset package.json to develop

* refactor: workspace link, system logs section

- removed workspace listview link, visiting list view isn't required for
  practically all the tasks
- Frappe Logs -> System Logs

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-09-02 11:20:59 +05:30
Aradhya Tripathi
befc1b9db8
Merge branch 'develop' into get-all-mod 2022-08-31 15:45:50 +05:30
Ankush Menat
d91e8260b0 chore: add route history to default log clean up 2022-08-30 17:34:18 +05:30
Aradhya Tripathi
d2b11deb41
Merge branch 'develop' into get-all-mod 2022-08-27 20:46:44 +05:30
Ankush Menat
e8af6b2c16 feat: make attachments public on doctypes
When this checkbox is checked, while uploading docs using fileuploader
the default visibility will be set to "public".

At present all uploaded attachments are private, however in following
cases it makes sense to set default as public:

1. Blog post
2. Item catalog
3. Website item

Considering this we decided to add this configurtion so developers can
specify sane default while user still has control over it using
"Customize form"

Enabled this for "blog post" doctype

Unrelatd change: consistent "form settings" section on DocType and customize
form
2022-08-26 12:42:26 +05:30
Suraj Shetty
81fa146330
fix: Do not show "Not Saved" on loading System Settings (#17967) 2022-08-26 10:44:51 +05:30
Aradhya Tripathi
80e64c7143
Merge branch 'develop' into get-all-mod 2022-08-24 19:46:46 +05:30
Raffael Meyer
63a60c6457
fix: translate import warnings (#17924) 2022-08-24 11:37:41 +05:30
Sagar Vora
2866721a78 test: clear lang_full_dict from local cache 2022-08-22 19:04:18 +05:30
Aradhya Tripathi
caf171b363
Merge branch 'develop' into get-all-mod 2022-08-22 14:53:35 +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
Aradhya Tripathi
e73ae6f039
Merge branch 'develop' into get-all-mod 2022-08-19 15:42:35 +05:30
mergify[bot]
eaf3aa28ee
Merge pull request #17860 from pps190/fix-dataimport
fix: data import preview link warning
2022-08-18 15:47:23 +00:00
Ankush Menat
f2b6c937c9 fix: pop pwd from form dict, disable auth loggin
- This prevents accidental logging of this info somewhere down the line.
- Disable exception logging for auth failures
2022-08-18 15:32:42 +05:30
Devin Slauenwhite
87972656d4 fix: convert pk from db to str. 2022-08-17 10:52:31 -04:00
Ankush Menat
3e2d2a703a test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
Suraj Shetty
ae61df8273
Merge branch 'develop' into get-all-mod 2022-08-16 17:07:47 +05:30
Rushabh Mehta
6a2c70b426
Merge pull request #17785 from rmehta/editable-form
feat: Form Editor
2022-08-16 12:29:48 +05:30
barredterra
2cf45366ec test: merge password validation test cases 2022-08-15 13:52:32 +02:00
barredterra
c8eab1ef75 test: don't check for specific exception title
This would be testing other libraries. Not our job.
2022-08-15 12:51:11 +02:00
Raffael Meyer
1cd78bb134
Merge branch 'develop' into pwd-msg 2022-08-15 12:34:18 +02:00
barredterra
5c3d86209d feat(Language): show title in link field 2022-08-14 18:55:30 +02:00
Aradhya Tripathi
0656ea9b07
Merge branch 'develop' into get-all-mod 2022-08-14 11:39:30 +05:30