[JENKINS-71429] fix user delete
On manage -> Users, clicking the delete icon lead to the old
delete.jelly page that was deleted when replacing the page with a
confirmation popup.
Replace it with a confirmation link.
* convert the relative link to an absolute one, since it might be used
in different contexts (with different depth from the server root
directory)
* update all message bundles to use the new format argument
Co-authored-by: Alexander Brandes <mc.cache@web.de>
* Ubuntu 18.04 end of life admin monitor
First prototype that includes a user interface and localized messages
with parameters to support the specific operating system.
* Use a base class for common features
Admin monitors are disabled and enabled by a user interface action.
There is not an obvious way to detect that a date has passed so that it
should be enabled again.
* Better comment
* Make the logging clearer
* Split pattern check to separate method
* Add a message to show after end of life
* Suppress most logging
* Minor logging improvements
* Use actual end of life date for Ubuntu 18.04
* Logger not needed
* Add Alpine 3.14 end of life admin monitor
* Add Alpine 3.15 end of life monitor
* Add Alpine 3.16 end of life monitor
* Add Alpine 3.17 end of life monitor
* Spotless cleanup
* Add Fedora 37, 38, and Red Hat 7
* More accurate regex to detect version
* Add Debian 10 end of life admin monitor
* Add a few tests
* Add another test
* Fix checkstyle violations
* Fix spotbugs warning
* Correct the copyright
* Make test viable on non-Linux machines
Do not depend on the existence of /etc/os-release
* Name the setup function more accurately
* Test a file with non-matching content
* Test the Alpine end of life admin monitors
* Add more tests
* Test Fedora 37 admin monitor
* Add RHEL 7 test
* Announce RHEL 7 early end of support immediately
* Use consistent logging calls
* Add Red Hat 8 to RHEL 7 as a test
* Use past date to report RHEL 7 end of life
* Remove Red Hat 8 from RHEL 7 end of life
* Log more information
* Display end of support date
Incorrect to declare end of support as the date when we begin warning
the user about end of life.
* Add descriptions of the admin monitors
* Use a better redirect URL
* Group admin monitors better by display name
* Remove unnused message.properties files
* Add description.jelly file
* Better description of the admin monitors
* Add endOfSupportDate getter
Needed for UI
* Fix minor indentation error
* Each monitor must be independently disabled
* Repurpose identifier for use in disabled property
Don't need the idenitfier anywhere except in the initial constructor
call that is later used to enable and disable the admin monitor.
* Add Red Hat 8 to RHEL 7 as a test
* Add os-release tests and data files
* Remove unused URL arg to constructor
* Reduce duplication in data
Easier to test with symbolic constants that are consistently named across
all the classes.
Includes tests of os-release files from each of the end of life operating systems
* Fix inaccurate comment
* Use constant for documentation URL
* Remove RHEL 8 from RHEL 8 Admin Monitor
* Fedora 36 security support ends 18 May 2023
* Fedora 37 support ends 15 Dec 2023
* Fix spelling error in description
* Read data file with UTF-8 character set
* Do not use extension point name in symbol
* Use single word 'Ignore' in button, not name of monitor
* Use a smaller layout for monitor name
* Include operating system version in RHEL 7 check
Includes a TODO comment to remove the RHEL 8 entry that I use for
testing and development
* Fix regex syntax error
* First prototype using a data file
* Start the conversion to a single monitor
* Latest experiments with end of life data as JSON
* More exploring and evolving
* Remove Alpine admin monitor
* Remove Fedora admin monitor
* Remove Debian admin monitor
* Remove Ubuntu admin monitor
* Throw IOException rather than check for null
IOException should be uncommon and mistakes should be detected by
automated tests
* Stop inheriting from EndOfLifeAdminMonitor
* Simplify initialization logic
Else clauses not required due to break.
* Add isActivated implementation
* Add setDisabled test method
* Minor formatting changes
* Test some additional methods
* Call super in constructor
* Minor updates from study of upstream class
* Format JSON data
* Fix formatting errors
* Fix assertion
* Better variable naming
* Explain the purpose of ignoreEndOfLife flag
* Remove unused import
* Store the pretty name, not the pattern
* Test pretty name with sample os-release data files
* Remove RedHat 7 specific monitor
* Set RHEL 8 end of life early for test
* Ongoing debugging
* Describe the monitor
* Honor start date
* Add pretty name as monitor attribute
* Add end of support date
* Remove earlier implementations
* Move end of life data
* Rename end of support to end of life
End of life is used throughout the monitor
* Improve message with after end of life date status
* Undo .gitignore change
* Rename effective date to end of life date
* Rename pretty name to operating system name
* More rename of prettyName
* Fix logging mistakes
* Add RHEL 8
* Default start date is 6 months before end of life
* Add operating system end of life patterns and dates
* Fix JSON file formatting
* Simplify logging code
* Better logging
* Add Alma and Rocky Linux tests and patterns
* Add methods to help test automation
* Remove unused methods
* Start warning RHEL 7 users immediately
* Suppress spotbugs traversal_in warning - false positive
* Throw IOException on bad data file
Fail tests quickly when a a bad data file is used
* Better exception message
* Correct RHEL 8 end of life date
* Enable isActivated test
* Increase test coverage
* Fix spelling error
Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
* Remove non-breaking spaces from message
Non-breaking spaces are not recommended.
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
* Rename class to match symbol
https://github.com/jenkinsci/jenkins/pull/7913/files#r1199814150
* Sort end of life data alphabetically
* Included OS query parameter and fragment in docs URL
The fragment may be useful in the future for analytics. Harmless to
send the fragment to www.jenkins.io and www.jenkins.io may be able to
make use of it to direct the reader to information that is specific to
their operating system.
* Scientific Linux 8 does not exist
* Remove fragment, only need query parameter
https://github.com/jenkinsci/jenkins/pull/7913#discussion_r1200991347
is the comment that prompted the improvement.
---------
Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
* replace disconnect and system info symbols for agents
The symbol to disconnect was the same as that to delete the agent. Add a
new symbol that better fits for disconnecting (There is no fitting icon
at ionicons, so this is one from tabler-icons that I modified to have a
bigger viewport).
The symbol for System Information was still on old colored svg. Replace
this with information-circle from ionicons
* Make info theme-able
---------
Co-authored-by: Alexander Brandes <mc.cache@web.de>
* Abstract#doReload should not be calling SaveableListener#fireOnChange
Was initially added as ce7e6390ee
SaveableListener.fireOnChange is typically called when saving an object,
not when loading it. This call should be removed.
* Verify new behaviour with a test
* Only make the test extension applicable to the reload test case