Skip to content
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

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

Open
rjt opened this issue Sep 13, 2023 · 3 comments
Open

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

rjt opened this issue Sep 13, 2023 · 3 comments

Comments

@rjt
Copy link

rjt commented Sep 13, 2023

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 enterprisemediawiki/meza#1312 (comment).

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
Copy link
Author

rjt commented Jan 25, 2024

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

enterprisemediawiki/meza#1312 (comment)

@freephile
Copy link

@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
Copy link
Author

rjt commented Apr 3, 2024

Whereever requires the least kinetic energy to get this done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants