panoptic 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2196de2036d276c976094b064428d6c2b3f88438e4486565ec0d748352cd97fb
4
- data.tar.gz: c752a60f429a76dcff9ca00f4e1ac6e237733fdd5b963a17b9362f825ca401b8
3
+ metadata.gz: 49dfaaa8c06b25c30051e92dca94f03d8ec4258b3953ba1c8c3c78c47f8171bd
4
+ data.tar.gz: 6d65ac6eefff785fe278383c276aebcba264f9d1d38edd14c188b1814c48b8d5
5
5
  SHA512:
6
- metadata.gz: 0714eec662d23c03c5b94d7bbce31a1878e59d9cbc9cecdaa0adf027f1c344f17014ab30d43725ee24457234467b62ea34b10b5b21f0c14043ca56f7735bd2a2
7
- data.tar.gz: 2bdbb40a798741fb6e95b7a71c73572d9fd8c541f9a672ee759433eb64c1d406600f62a430d9eb3e35039db942ad8e5d83cfb045746539db167b03350712f40e
6
+ metadata.gz: bfd46fd4cb10dddd447659c13e858cad287b41a7e6bf3380727596d62a96e620f7792925ad65a36cda00c50a28b072d64793545da78ab30b14351a04e8f42f61
7
+ data.tar.gz: 061f923cb56ddfb6126816aa4a8966311fc39e25bf54304c341ef53b03545073eece49de0e008c20df3caeb64d108a3ed3e34e3fd281ec74a199af6a2f67f1bd
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Vincent Rolea
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -6,7 +6,7 @@ Panoptic is a web interface for the [SolidQueue](https://github.com/basecamp/sol
6
6
 
7
7
  ![](./images/demo.png)
8
8
 
9
- While MissionControl is getting ready for release, this gem offers a visual interface for testing purposes with SolidQueue.
9
+ While MissionControl is getting ready for release, this gem offers a visual interface for testing purposes with SolidQueue.
10
10
 
11
11
  ## Installation
12
12
  Add this line to your application's Gemfile:
@@ -15,23 +15,59 @@ Add this line to your application's Gemfile:
15
15
  gem "panoptic"
16
16
  ```
17
17
 
18
- Then mount the engine in your `config/routes.rb` file
18
+ Then mount the engine in your `config/routes.rb` file
19
19
 
20
20
  ```ruby
21
21
  mount Panoptic::Engine => "/panoptic"
22
22
  ```
23
23
 
24
- ## Usage
24
+ ## Development
25
25
 
26
- Once the gem is installed and the Engine mounted, visit your engine route to access Panoptic. For now, it offers three views:
27
- - Processes
28
- - Queues
29
- - A first version of the jobs view
26
+ Panoptic requires Node installed to function properly in development. After cloning the repo, run:
30
27
 
31
- In the near future, the following features could be implemented:
32
- - Pause and clear queues
33
- - Advanced jobs view, with filters for executed, failed and scheduled jobs
34
- - Search and retries
28
+ ```bash
29
+ $ bundle install
30
+ $ yarn
31
+ ```
32
+
33
+ This will install the required Ruby and Javascript dependencies to run the project in development.
34
+
35
+ The Panoptic UI is accessible after running:
36
+
37
+ ```bash
38
+ $ bin/dev
39
+ ```
40
+
41
+ This will:
42
+ - Start the dummy app server
43
+ - Enable asset compilation in development
44
+ - Run SolidQueue
45
+
46
+ After starting the processes, access the UI at:
47
+
48
+ ```
49
+ http://localhost:3000/panoptic
50
+ ```
51
+
52
+ ### Assets
53
+
54
+ #### CSS
55
+ Panoptic uses Bootstrap 5 for its styles. For ease of integration, Bootstrap's Sass is compiled and checked out in version control locally. This removes the dependency on NodeJS for host applications.
56
+
57
+ New CSS must be added to the `app/assets/stylesheets/panopitc` directory. If your run the UI through the `bin/dev` command above, changes to the files in `assets` will be automatically picked up and compiled in the main stylesheet located at `app/assets/builds/panoptic/application.css`. Otherwise, the `yarn build:css` command needs to be run to reflect changes in CSS.
58
+
59
+ #### Javascript
60
+ Panoptic uses esbuild to compile its Javascript code. Javascript code is located in the `app/assets/javascripts/panoptic` folder.
61
+
62
+ ## Usage
63
+
64
+ Once the gem is installed and the Engine mounted, visit your engine route to access Panoptic. Three main views are available:
65
+ - Processes: display of the running worker and dispatcher process
66
+ - Queues
67
+ - Jobs: a list of SolidQueue jobs, with filters for scheduled and failed jobs
68
+
69
+ Current feature set:
70
+ - Retry jobs from the failed jobs panel
35
71
 
36
72
  ## License
37
73
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).