Every Settings pane page now has What it is, Read more, How to use it, How the numbers are calculated, How it works in WeKan and Commits, checked against the code. Corrected where the old text no longer matched: the Translation pane pages 10 rows, its Text column is the translation key and New is the first column; Version lists all five groups and Check Version; Appearance gains its board-creation, description, date, card width, autolink, login colour and logo upload settings; Features and Feature profiles list the whole catalog; Shared labels is the menu's own label; Global Webhooks describes Internal destinations. Thanks to xet7 !
8.6 KiB
Admin Panel / Settings / Version
What it is
The first pane of Settings, and the one that opens with the Admin Panel: what this WeKan is running - the WeKan version, how it was installed, the operating system, Meteor, the database and Node.js. It is what an admin usually comes here to read, or to paste into an issue. A Check Version button compares it with the newest released versions.
It used to be a tab of its own in the Admin Panel bar, with a one-entry left menu.
A page whose menu had a single entry was a page in name only, so it became this
pane; the old /information URL redirects to Settings.
Read more
- Software versioning on Wikipedia.
- Meteor, Node.js, MongoDB and FerretDB - what the rows describe.
- MongoDB's replica set oplog and change streams - two of the three reactivity modes.
- Uptime on Wikipedia.
- Databases — MongoDB and FerretDB, and migrating between them.
- Problems / CPU usage — when the database is the reason pages are slow.
How to use it
Read what this WeKan is running
- Open Admin Panel. Settings / Version opens first
(
/admin/settings/version). - Read the table. It is one table of two equal columns in five groups:
- Platform — WeKan ® Version, and Package: how it was installed
(
bundle.zip,Snap,DockerorSandstorm). - OS — type, platform, architecture, release, uptime, load average, total memory, free memory and CPU count.
- Meteor — Meteor version, the live Reactivity mode (changeStreams /
oplog / polling), the configured Reactivity order
(
METEOR_REACTIVITY_ORDER) and the DDP transport (DDP_TRANSPORT). - Database — type (MongoDB or FerretDB v1), the MongoDB compatible version, the database commit, the FerretDB version and commit (only on FerretDB), the storage engine, whether the oplog is enabled, and the Mongo sessions count.
- Node — Node version, and the V8 heap and memory figures.
- Platform — WeKan ® Version, and Package: how it was installed
(
- Copy the table into an issue when asking for help.
Check for a newer version
- Press Check Version. While it runs it says Loading, please wait.
- It shows the newest WeKan, FerretDB, Meteor, Node and NPM versions, one per line. If the check fails - offline, a timeout, an answer that is not a version list - it shows one translated failure message and nothing from the reply.
How the numbers are calculated
All values come from the site-admin-only method getStatistics in
server/statistics.js, read once when the
pane opens:
- Versions: WeKan from
package.json(vremoved), Meteor fromMeteor.release(METEOR@removed), Node fromprocess.version. - Package:
detectPackaging()in models/lib/platformPackaging.js, most specific first:WEKAN_PACKAGINGwhen set, then Sandstorm, thenSnapwhenSNAPorSNAP_NAMEis set, thenDockerwhen/.dockerenvor/run/.containerenvexists, elsebundle.zip. - OS Uptime:
os.uptime()seconds, shown as days, hours, minutes and seconds (each part only when above zero). - OS Load Average: the three
os.loadavg()values (1, 5 and 15 minutes), each to two decimals. - Memory and heap sizes: bytes from
os.totalmem(),os.freemem(),v8.getHeapStatistics()andprocess.memoryUsage(), shown with thefilesizelibrary. OS CPU Count is the length ofos.cpus(). - Reactivity mode:
oplogwhen Meteor has an active oplog handle (changeStreamswhen that handle is a change-stream one), elsepolling. Reactivity order and DDP transport are the environment variables,(unset)when empty. - Database type: FerretDB when the
buildInforeply carriesferretdb,ferretdbVersionorferretdbFeatures, else MongoDB. Version and commit arebuildInfo.versionandbuildInfo.gitVersion. - Storage engine:
serverStatus.storageEngine.name; when per-database credentials may not runserverStatus, the$collStatsof the first non-system collection (wiredTigerorinMemory); on FerretDBSQLite; otherwiseunknown. - Mongo sessions count: the number of active sessions of the MongoDB driver's client, so an admin can see that it is not growing all the time.
- Check Version: fetches
https://wekan.fi/version.txtwith a 10-second timeout.parseVersionManifest()in models/lib/versionCheck.js accepts it only if it is at most 1024 characters and exactly five lines,WeKan,FerretDB,Meteor,Node,NPM, each followed by a version.
On Sandstorm the Node heap and memory figures are not collected, and they and the sessions count are not shown: Sandstorm does not expose machine performance data to apps, to prevent side-channel attacks.
How it works in WeKan
- Pane: template
statisticsin client/components/settings/informationBody.jade and informationBody.js, rendered by settingBody.jade when theversionslug is open.defaultSlug: 'version'in models/lib/adminUrls.js makes it the pane that opens first. - Server: methods
getStatisticsandcheckNewestVersionsin server/statistics.js; both answer only a site administrator. - Redirect:
/informationin config/router.js. - Tests: tests/versionPaneCategories.test.cjs, tests/versionCheck.test.cjs and tests/platformPackaging.test.cjs.
Commits
- Publish and use the WeKan version manifest
- Check Version: the newest versions in the Admin Panel
- One table with category rows over two 50% columns
- Groups with a heading each, and what WeKan is installed as
- Version opens first, as a pane of Settings
- The configured METEOR_REACTIVITY_ORDER and DDP_TRANSPORT
- The storage engine with per-database credentials
- FerretDB detected from its top-level ferretdbVersion
- Database type, version, commit, storage engine and reactivity mode
- The storage engine and oplog status are shown again
- The version is visible again
- Mongo sessions count
- Sizes shown with the filesize library
- The MongoDB version is read without a missing variable
- Node heap figures only outside Sandstorm
- Node memory usage
- Node heap statistics
- Meteor version, MongoDB version, storage engine and oplog status
- The WeKan version and the runtime environment