enterprisemediawiki / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
41 stars 27 forks source link

Where to find meza version in any webpage? CommandLine? #1312

Open rjt opened 9 months ago

rjt commented 9 months ago

Have spent three+ hours trying to find the exact version of our current meza wiki on wiki webpages themselves, but it is not there.

Could not find on webpage, so ssh'ed into the host expecting meza cli would document the way to find the existing version.

Happened across Jamesmontalvo3's issue " meza --version fails in Python 3.x #1311 ", but that does not show in the webpage.

Environment

Issue details

No error message because there is no place to look or command to run that i could find. So experimented.

meza version

        [mezawiki meza]$ meza version
        Traceback (most recent call last):
          File "/usr/bin/meza", line 1193, in <module>
            main(sys.argv[1:])
          File "/usr/bin/meza", line 63, in main
            display_docs(argv[0])
          File "/usr/bin/meza", line 1084, in display_docs
            f = open('/opt/meza/manual/meza-cmd/{}.txt'.format(name),'r')
        IOError: [Errno 2] No such file or directory: '/opt/meza/manual/meza-cmd/version.txt'

meza help

        [user@intrawiki ~]$ meza help
        Traceback (most recent call last):
          File "/usr/bin/meza", line 1193, in <module>
            main(sys.argv[1:])
          File "/usr/bin/meza", line 63, in main
            display_docs(argv[0])
          File "/usr/bin/meza", line 1084, in display_docs
            f = open('/opt/meza/manual/meza-cmd/{}.txt'.format(name),'r')
        IOError: [Errno 2] No such file or directory: '/opt/meza/manual/meza-cmd/help.txt'  

...
many more commands and file snooping
revansx commented 9 months ago

Best way to determine the version of meza imo is to cd into /opt/meza and do a git status

revansx commented 9 months ago

Also, are you aware that meza has been officially adopted by NASA and is now developed and maintained at GitHub.com/NASA/meza

rjt commented 9 months ago

Consider cases in which:

a user has no control over the install and trying to figure out why something is not working;
the sysadmin was hit by a bus;
users know the wiki website, but do not have access to the cli.
in fact, this could vary from wiki to wiki depending on what meza deploy parameters were chosen.

Would like all of the following in webpage: meza --version git status pushd /opt/meza && git rev-parse --short HEAD; popd;

rjt commented 9 months ago

@revansx was not totally sure of whether to use the wiki or gh? I could see that most of the activity was at github.com/nasa but directions at mediawiki.org/wiki/Meza has a link entitled "this GitHub issue!" that points to issue 1051 on the nasa/meza/issues/ but does NOT exist. Issue 1051 does exist at https://github.com/enterprisemediawiki/meza/issues/1051 Wondering if gh /nasa/meza and /enterprisemediawiki/meza should form a gh Organization group and put it all under the gh org account?

revansx commented 9 months ago

In order to be officially developed by NASA it must remain a NASA project.

Your comments about some elements still pointing to EMW are noted and I will likely update them in the next day or so

rjt commented 9 months ago

Created issue 36 on nasa/meza gh. https://github.com/nasa/meza/issues/36

rjt commented 9 months ago

@revansx, thank you for your time.

freephile commented 5 months ago

@rjt I just found and fixed some issues with meza --version and will be contributing my patches. https://github.com/freephile/meza/issues/7