seitime-frappe/frappe/utils
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
..
__init__.py fix: handle isatty correctly (#18277) 2022-10-03 12:05:55 +05:30
background_jobs.py refactor: simpler job queued checking (#18091) 2022-09-12 12:59:00 +05:30
backups.py fix: throw exception if backup failed (#18230) 2022-09-28 14:29:38 +05:30
bench_helper.py refactor: bench_helper 2022-08-11 23:53:21 +05:30
boilerplate.py chore: revert changes to github workflow template 2022-08-06 10:52:59 +01:00
caching.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
change_log.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
commands.py feat(wip): Custom filters in db.query engine 2022-05-19 17:31:35 +05:30
connections.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
csvutils.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
dashboard.py Merge branch 'develop' into sync-dashboard 2022-09-12 16:19:19 +05:30
data.py fix: remove mariadb specific comments from column 2022-09-26 11:09:39 +05:30
dateutils.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
diff.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
doctor.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
error.py fix: pop pwd from form dict, disable auth loggin 2022-08-18 15:32:42 +05:30
file_lock.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
file_manager.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
fixtures.py fix: commit after app install 2022-09-12 12:23:14 +05:30
formatters.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
global_search.py fix(global_search): Trigger rebuilding on Custom Field's property change 2022-08-02 14:49:04 +05:30
goal.py Merge branch 'develop' into get-all-mod 2022-07-01 13:25:32 +05:30
html_utils.py fix(sanitize-html): allow all data-* attrs 2022-08-08 18:36:54 +05:30
identicon.py refactor: Itenticon 2022-08-11 23:53:21 +05:30
image.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
install.py feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (backport #18263) (#18281) 2022-10-03 16:41:12 +05:30
jinja.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
jinja_globals.py perf: simpler/faster preload header computation 2022-08-21 18:46:58 +05:30
lazy_loader.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
logger.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
make_random.py refactor: make_random 2022-08-11 23:53:21 +05:30
momentjs.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
nestedset.py refactor: allow root deletion by default for nested set 2022-09-02 21:37:38 +05:30
oauth.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
password.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
password_strength.py perf: Pre-compile and re-use regexp pattern 2022-06-08 14:07:38 +05:30
pdf.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
print_format.py refactor: clean up code to py310 supported features (#17367) 2022-07-01 11:51:05 +05:30
redis_queue.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
redis_wrapper.py feat: RedisearchWrapper 2022-08-31 17:04:31 +05:30
response.py fix: serialize function objects to their repr 2022-09-12 11:49:25 +05:30
safe_exec.py chore: Add make_put_requests method for Server Scripts (#18128) 2022-09-14 15:54:15 +05:30
scheduler.py perf: use modified instead of creation in scheduler (#18234) 2022-09-27 19:21:02 +05:30
subscription.py feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (backport #18263) (#18281) 2022-10-03 16:41:12 +05:30
testutils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
user.py perf: dont order by for uniq searches 2022-08-21 17:37:40 +05:30
verified_command.py fix: only allow verified_command on GET requests (#18235) 2022-09-27 18:17:58 +05:30
weasyprint.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
xlsxutils.py refactor: Replace html2text with markdownify 2022-07-06 08:23:14 +05:30