nasa / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
18 stars 10 forks source link

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

Open rjt opened 1 year ago

rjt commented 1 year ago

Initially, created issue 1312 on the gh enterprisemediawiki meza because this wiki pointer to a broken nasa/meza/ issue for github issues as talked about in https://github.com/enterprisemediawiki/meza/issues/1312#issuecomment-1716423112.

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 Jamesmontalvo3's issue "meza --version fails in python 3.x #1311", but that does NOT show in the webpage.

Environment

**xcp-ng.org xen vm**
**CentOS Linux release 7.9.2009 (Core)**
**meza version hash:  (run cd /opt/meza && git rev-parse --short HEAD and report output) **
https://github.com/enterprisemediawiki/meza/commit/3838ace53f9a61da7dcd83f6b6ec61d83e1d9326
Note, one has to open a new case in order to find out how to get their current version of the git hash :(

Issue details

meza help or meza version both crash and meza does not mention a version number nor the command to find the version. Otherwise, no error message because there is no webpage to look at 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. For some reason, did not think meza may actually be a script that i could read with a text editor.

rjt commented 10 months ago

@freephile submitted a patch to fix meza —version, so now we just need that output added to running meza wiki versions webpage:)

https://github.com/enterprisemediawiki/meza/issues/1312#issuecomment-1909269346

freephile commented 10 months ago

@rjt , Where do you think the Meza version information should be displayed?

I just want to gather input, not saying I can do this right away.

To me it would be a Special Page extension with info on Special:Version

Other possibilities include in the page footer (of every page) like/with a "Powered by Meza" logo or on the "Wiki Blender" landing page

rjt commented 7 months ago

Whereever requires the least kinetic energy to get this done.