删除AWS Savings Plan Recommendation GitHub App Creation
This commit is contained in:
parent
3f96d663b0
commit
f701a46563
@ -292,7 +292,6 @@ scheduler_events = {
|
||||
],
|
||||
"0 0 1 */3 *": ["jcloud.jcloud.pagetype.backup_restoration_test.backup_test.run_backup_restore_test"],
|
||||
"0 8 * * *": [
|
||||
"jcloud.jcloud.pagetype.aws_savings_plan_recommendation.aws_savings_plan_recommendation.create",
|
||||
"jcloud.jcloud.cleanup.reset_large_output_fields_from_ansible_tasks",
|
||||
],
|
||||
"0 21 * * *": [
|
||||
@ -302,7 +301,6 @@ scheduler_events = {
|
||||
"0 6 * * *": [
|
||||
"jcloud.jcloud.audit.suspend_sites_with_disabled_team",
|
||||
"jcloud.jcloud.pagetype.tls_certificate.tls_certificate.retrigger_failed_wildcard_tls_callbacks",
|
||||
"jcloud.jcloud.pagetype.aws_savings_plan_recommendation.aws_savings_plan_recommendation.refresh",
|
||||
"jcloud.infrastructure.pagetype.ssh_access_audit.ssh_access_audit.run",
|
||||
],
|
||||
},
|
||||
|
||||
@ -2,28 +2,5 @@
|
||||
// For license information, please see license.txt
|
||||
|
||||
jingrow.ui.form.on('Jcloud Settings', {
|
||||
create_stripe_webhook(frm) {
|
||||
frm.call('create_stripe_webhook');
|
||||
},
|
||||
create_github_app(frm) {
|
||||
frm.call({
|
||||
method: 'get_github_app_manifest',
|
||||
pg: frm.pg,
|
||||
callback: (response) => {
|
||||
window.location.href = response.message;
|
||||
let $form = $('<form>', {
|
||||
action: 'https://github.com/settings/apps/new',
|
||||
method: 'post',
|
||||
});
|
||||
$('<input>')
|
||||
.attr({
|
||||
type: 'hidden',
|
||||
name: 'manifest',
|
||||
value: JSON.stringify(response.message),
|
||||
})
|
||||
.appendTo($form);
|
||||
$form.appendTo('body').submit();
|
||||
},
|
||||
});
|
||||
},
|
||||
// 功能已禁用
|
||||
});
|
||||
|
||||
@ -24,7 +24,6 @@ def get_context(context):
|
||||
jingrow.flags.redirect_location = redirect_url
|
||||
raise jingrow.Redirect
|
||||
|
||||
|
||||
def obtain_access_token(code, team):
|
||||
response = None
|
||||
try:
|
||||
@ -40,3 +39,4 @@ def obtain_access_token(code, team):
|
||||
jingrow.db.set_value("Team", team, "github_access_token", response["access_token"])
|
||||
except Exception:
|
||||
log_error("Access Token Error", team=team, code=code, response=response)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user