From 93f0ec66267de5856c7fe830bee43dc757efe13d Mon Sep 17 00:00:00 2001 From: apoorv1316 Date: Wed, 10 Jul 2024 14:58:29 +0530 Subject: [PATCH 1/2] Bump to version 1.6.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 898e020c73..2a34459c7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@saeloun/miru-web", - "version": "1.6.5", + "version": "1.6.7", "dependencies": { "@babel/core": "^7.21.3", "@babel/plugin-proposal-private-methods": "^7.16.5", From 2142d5de54cc246204951793a1e243bbf9d99c70 Mon Sep 17 00:00:00 2001 From: Apoorv Tiwari Date: Fri, 12 Jul 2024 12:04:19 +0530 Subject: [PATCH 2/2] Disable mission control jobs on production (#1877) * route condition add * check env condition --- .env.example | 3 ++- config/routes.rb | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index a451afcbd5..a9fbeaa3d8 100644 --- a/.env.example +++ b/.env.example @@ -58,4 +58,5 @@ CI=true # SolidQueue Configuration SOLID_QUEUE_USERNAME: -SOLID_QUEUE_PASSWORD: \ No newline at end of file +SOLID_QUEUE_PASSWORD: +MISSION_CONTROL_ENABLED=true \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index abac2dff2f..978625a3d4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,7 +7,9 @@ def draw(routes_name) end Rails.application.routes.draw do - mount MissionControl::Jobs::Engine, at: "/jobs" + if ENV["MISSION_CONTROL_ENABLED"] == "true" + mount MissionControl::Jobs::Engine, at: "/jobs" + end namespace :admin do resources :users