-
Notifications
You must be signed in to change notification settings - Fork 2
GH-89: (Minimal) System Monitor Plugin (a.k.a. SysMon) #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
wesleyboar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added notes for other reviewers.
taccsite_cms/contrib/taccsite_sysmon/static/taccsite_sysmon/css/sysmon.css
Show resolved
Hide resolved
taccsite_cms/contrib/taccsite_sysmon/static/taccsite_sysmon/js/sysmon.js
Outdated
Show resolved
Hide resolved
iamthatian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've approved! However, I also included some minor questions/comments.
taccsite_cms/contrib/taccsite_sysmon/static/taccsite_sysmon/js/sysmon.js
Outdated
Show resolved
Hide resolved
wesleyboar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duckonomy, thanks. I've responded.
Also, what you think of renaming this plugin (to mirror system_specs plugin name)?
taccsite_cms/contrib/taccsite_sysmon/static/taccsite_sysmon/js/sysmon.js
Outdated
Show resolved
Hide resolved
@tacc-wbomar That sounds good! |
|
@tacc-wbomar For 2,3 I think those are valid reasons 👍🏼 |
|
@duckonomy I have re-requested review merely to remove approval to help remind me that this PR is not complete. There is nothing new to review, yet. |
|
@duckonomy I completed the To Do items. Code was changed only for:
Please review. |
iamthatian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin works great!
There was one configuration value that was causing an error on docker-compose up.
Other than that, I've noticed this time that the plugin didn't work when having multiple instances (of Frontera).
Is this intended behavior?
taccsite_cms/settings.py
Outdated
| 'taccsite_cms.contrib.taccsite_static_article_list', | ||
| 'taccsite_cms.contrib.taccsite_static_article_preview', | ||
| 'taccsite_cms.contrib.taccsite_blockquote', | ||
| 'taccsite_cms.contrib.taccsite_offset', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These cause an error on initialization (I had to comment them to make it run properly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a problem. [All] of those should not be [in this branch]. This problem suggests that more code may be present that should not be. I will investigate. Thank you.
Details
There are so many dependent branches for Frontera System Specs page and Frontera Homepage plugins that I am trying to author independently but test together 🤕 and I crossed the streams.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These plugin install lines come from various other plugins. See "Details" at https://github.com/TACC/Core-CMS/pull/297/files#r689904516.
|
Good catch: the multiple instances bug. I have added a task to either support multiple instances or not. DetailsThe problem is caused by the JavaScript I borrowed and cleaned up still using |
Use `element.querySelector('[data-id=""]')`.
Do not use `document.getElementById`.
Use JavaScript module and class. Do not use window variables and functions.
Why?
1. The Bootstrap "success" pill color is used.
- See `badge-success` in HTML but not CSS.
2. The custom warning color was recently removed.
- #312
3. The Portal success, warn, etc colors are not standardized.
- They will be in FP-1145, but CMS's could differ.
|
@duckonomy, fixes:
|
iamthatian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!

Important
The PR TACC/Core-CMS-Resources#67 is dependent on this PR.
To Do
sysmontosystem_monitor.*get_direction_classnameimport.setStatusStyle().Footnotes
* Rename to be consistent with upcoming
system_specsand possiblesystem_....† Either (a) do not use
GetElementByIdor(b) limit plugin to one instance. Try not to over-engineer the JavaScript, because #295 will delete it.Overview
Implement minimal SysMon plugin using polished CSS and JavaScript.
Issues
Changes
Screenshots
Core
Toggle visibility
Form
Render
Structure
Frontera
Toggle visibility
Render
Structure
Testing
python3 manage.py migrate.Footnotes
* I hope to implement server-side retrieval later via #295.
† Different projects and templates have different root font size. (Values have been standardized, but implementation has not caught up to standards.)
Notes
This is a minimal version of a functionally better plugin,
bitbucket:rochaa/tacc-sysmonbitbucket.org:tacc-system-monitor. @tacc-wbomar has deadline to finish #88 (which requires #89) this week. So #295 has been created to enhance this plugin later.