Federated Wiki – Activity Plugin

The Activity plugin lists pages in your Neighborhood. github It expands as your neighborhood grows. Page names used on multiple sites are grouped together, with the most current site on the right.

The Recent Changes suddenly stopped working.

paul90 via https://matrix.to/#/!ORfrUEFeWFcHAMLFLr:matrix.org/$1654350224166299iTKVI:matrix.org?via=matrix.org&via=matrix.allmende.io&via=chat.weho.st matrix 🤔 think I can see what is happening, just not sure why... looks to be caused by Uncaught TypeError: sites.push is not a function sites expected to be an array, and adding a console.log just before the push I see that it is - but then there is a time it is Object() rather than the expect array.

paul90 I've worked out what is happening... looks to be caused by a page with a slug of constructor - which is getting the object constructor rather than...

➜ wiki-plugin-activity git:(paul90/fix-creator-slug) ✗ grunt ~/Projects/RalfBarkow/fedwiki/wiki-plugin-activity Running "clean:0" (clean) task >> 0 paths cleaned. Running "clean:1" (clean) task >> 0 paths cleaned. Running "clean:2" (clean) task >> 0 paths cleaned. Running "clean:3" (clean) task >> 0 paths cleaned. Running "mochaTest:test" (mochaTest) task activity plugin escape ✔ can escape html markup characters since ✔ can parse days ✔ can parse day ✔ can parse DAYS ✔ can parse hours ✔ can parse weeks ✔ can parse a date neighborhood ✔ can parse YES ✔ can parse no twins ✔ can parse a number ✔ ignores text sort ✔ can parse Title ✔ can parse date search ✔ can parse search roster ✔ excludes neighborhood mine ✔ can parse to include mine ✔ can parse to exclude mine ✔ can parse for mine only ✔ can parse to exclude mine conversation ✔ can parse to add conversation link narrative ✔ can parse to add narrative link 21 passing (27ms) Running "browserify:plugin" (browserify) task >> Bundle client/activity.js created. Done.

paul90 An updated version of the activity plugin has been published, this fixes the issue that Ralf reported yesterday.

//TODO rsync ? ; Read-only file system ; nix store

/nix/store/[…]-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/wiki-plugin-activity/client: total used in directory 604 available 6.2 GiB dr-xr-xr-x 2 root root 4096 Jan 1 1970 . dr-xr-xr-x 4 root root 4096 Jan 1 1970 .. -r--r--r-- 2 root root 609788 Jan 1 1970 activity.js

How to edit file in /nix/store? discourse

> The stuff in /nix/store is read-only, intentionally. Changing it by hand is throwing the entire concept of nixos out the window, and may cause all kinds of issues. I won’t tell you how to undo the read-only bit, just in case you actually try, or someone else reading this does. Please don’t even try to hack around it :slight_smile: Rather, you want to modify the package that provides that file downstream (read: for your configuration). It’s natural that you’d like to hand-modify the files, because that’s how other distros work, given they make changing package contents or writing your own painfully cumbersome. But this is where the really cool part of NixOS comes in, this is much easier in our world; you can do all of that with some changes to `configuration.nix`.

Let’s start with what this change actually is. **We’ll look at the commit that was made upstream**: contentstatsid key might not be present · lutris/lutris@072e72a · GitHub 1 It doesn’t really matter what that change does, the important bit is that **it is a change** to the lutris source code. If we can apply the same change to the source of the lutris you’re using, and rebuild it, it should all magically work.

**Nix allows you to take an existing package, and override how it is built.** […]

node2nix: result -> /nix/store/a3xw7yav23rm6xgwf6miv4bw2b6y5x9w-node_wiki-plugin-activity-0.4.10

$ cd ../wiki

[rgb@wiki:~/wiki]$ grep wiki-plugin-activity * node-packages.nix: "wiki-plugin-activity-0.4.9" = { node-packages.nix: name = "wiki-plugin-activity"; node-packages.nix: packageName = "wiki-plugin-activity"; node-packages.nix: url = "https://registry.npmjs.org/wiki-plugin-activity/-/wiki-plugin-activity-0.4.9.tgz"; node-packages.nix: sources."wiki-plugin-activity-0.4.9" package.json: "wiki-plugin-activity": "^0.4.8", package-lock.json: "wiki-plugin-activity": "^0.4.8", package-lock.json: "node_modules/wiki-plugin-activity": { package-lock.json: "resolved": "https://registry.npmjs.org/wiki-plugin-activity/-/wiki-plugin-activity-0.4.8.tgz", package-lock.json: "wiki-plugin-activity": { package-lock.json: "resolved": "https://registry.npmjs.org/wiki-plugin-activity/-/wiki-plugin-activity-0.4.8.tgz", grep: result: Is a directory

$ cp node-packages.nix node-packages.nix.orig

Replace wiki-plugin-activity version and

$ nix-build -A package

error: attribute 'wiki-plugin-activity-0.4.9' missing at /home/rgb/wiki/node-packages.nix:2536:7: 2535| sources."wiki-client-0.23.4" 2536| sources."wiki-plugin-activity-0.4.9" | ^ 2537| (sources."wiki-plugin-assets-0.3.1" // { Did you mean wiki-plugin-activity-0.4.10? (use '--show-trace' to show detailed location information)

[rgb@wiki:~/wiki]$ nix-build -A package warning: found empty hash, assuming 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=' these 70 derivations will be built: […]

error: hash mismatch in fixed-output derivation '/nix/store/p96h6zmwbj2wii2kwfj5a3fmc61g2gjs-wiki-plugin-activity-0.4.10.tgz.drv': specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= got: sha256-gbz8MgzomooqaaMhUjkuTbYGpI4z839WFaOMLQufvso= error: 1 dependencies of derivation '/nix/store/b0nx0hjcl1l6k8qqhkdjxf16b744s9kx-node_wiki-0.27.0.drv' failed to build

Adjust sha256

[…] post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0 rewriting symlink /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/bin to be relative to /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0 patching script interpreter paths in /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0 /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/uglify-js/bin/uglifyjs: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/zmv0sbz4ngsl9z6s0djhswij3v4hd7kv-nodejs-14.19.3/bin/node" /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/performance-now/test/scripts/delayed-require.coffee: interpreter directive changed from "#!/usr/bin/env ./node_modules/.bin/coffee" to "./node_modules/.bin/coffee" /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/performance-now/test/scripts/initial-value.coffee: interpreter directive changed from "#!/usr/bin/env ./node_modules/.bin/coffee" to "./node_modules/.bin/coffee" /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/performance-now/test/scripts/difference.coffee: interpreter directive changed from "#!/usr/bin/env ./node_modules/.bin/coffee" to "./node_modules/.bin/coffee" /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/lib/node_modules/wiki/node_modules/performance-now/test/scripts/delayed-call.coffee: interpreter directive changed from "#!/usr/bin/env ./node_modules/.bin/coffee" to "./node_modules/.bin/coffee" checking for references to /build/ in /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0... /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0

result -> /nix/store/z807mm6f6jqaalbywj7ya4rbk4y8yvfn-node_wiki-0.27.0/

Adjust `wiki.nix`:

# wiki-plugin-activity-0.4.10 ExecStart = "/nix/store/[…]-node_wiki-0.27.0/bin/wiki --config /home/rgb/.wiki/config.json";

$ nixos-rebuild switch

This plugin queries the origin server for information about installed plugins. Server administrators can install new or updated existing plugins from included inventories.

activity 0.4.10 installed

These are plugins where we are tracking current releases.

~

We track activity by neighborhood. More neighbors, more activity. Shared pages show together, ordered by collaborator and temporal place within other work.

We use the term activity to refer to changes or work done in the federation.

We apply our understanding of common ground and nessary features of joint activity to account for issues in the design

# Requirements for Joint Activity among People

List sites hosted within the origin's domain showing page counts and most recent activity.

Where is all the activity in the federation? Here we show recent changes in the visible federation. See also:

Where is all the activity in the federation? Here we show recent changes in the visible federation. See also:

ROSTER Recent Federation Activity

Collect activity over the past week.

Here we can view all the pages created by members of the Goal Jam Pod.

Here we list all the sites we know of that concentrate mainly on C0de Sites. We also provide other views of activity that you might find useful:

Here we list all the sites we know of that concentrate on the technical and social aspects of writing in Federated Wiki. See Fedwiki Sites for a list of domains we use in the views below:

Here we show __filtered__ recent changes in the visible federation for pages that are not on the Atopia Server.

We split the federation into the following:

__Mega Sites__ are federation sites with more than 30 pages. The generated roster below has been made from the visible federation constructed from the search index downloads.

Tip: Double-click Page Activity to edit options. There are many. See More About Activity Plugin