Compare commits

...
13 Commits
18 changed files with 353 additions and 9134 deletions

No files matched your search

+20 -1
View File
@@ -1,3 +1,23 @@
# v4.95 2021-02-08 Wekan release
This release adds back the following features:
- [Added back Custom Fields sorting, because it now does not prevent loading boards](https://github.com/wekan/wekan/pull/3547).
Thanks to mfilser.
and adds the following updates:
- [Updated dependencies](https://github.com/wekan/wekan/commit/1c494803b091d987e26ccb783432434e7fee15a5).
Thanks to xet7.
- [Fix typo](https://github.com/wekan/wekan/commit/0bd0a70564d3dda67706deb1bbfbd1d5a96f811f).
Thanks to xet7.
- Updated release scripts
[Part 1](https://github.com/wekan/wekan/commit/d0df3a2915d08b255d7ab92f9bcac195a1e7f442),
[Part 2](https://github.com/wekan/wekan/commit/e34a2840366351c0e069515ac2210db3911dbc0f).
Thanks to xet7.
Thanks to above GitHub users for their contributions and translators for their translations.
# v4.94 2021-02-08 Wekan release
This release adds the following new features:
@@ -16,7 +36,6 @@ and fixes the following bugs:
- [Fix bug in adding new users](https://github.com/wekan/wekan/pull/3544).
Thanks to jrsupplee.
- [Issue - Deleting a linked card blocked the parent board to load
- [Fixed Board does not load, by disabling Custom Fields sorting](https://github.com/wekan/wekan/commit/d57eb6a2fc73c7b25c957ad42b5f7a06f680e1a1).
Thanks to marcungeschikts, olivierlambert and xet7.
- [Fixed lint](https://github.com/wekan/wekan/commit/60fedad3fe384a2b0652941e57ecaa5fc4b7897a).
+1 -1
View File
@@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v4.94.0"
appVersion: "v4.95.0"
files:
userUploads:
- README.md
+11 -24
View File
@@ -702,7 +702,7 @@ Cards.helpers({
const definitions = CustomFields.find({
boardIds: { $in: [this.boardId] },
}).fetch();
if (definitions === undefined) {
if (!definitions) {
return {};
}
// match right definition to each field
@@ -711,7 +711,7 @@ Cards.helpers({
const definition = definitions.find(definition => {
return definition._id === customField._id;
});
if (definition === undefined) {
if (!definition) {
return {};
}
//search for "True Value" which is for DropDowns other then the Value (which is the id)
@@ -733,28 +733,15 @@ Cards.helpers({
definition,
};
});
/*
Sometimes sorting custom fields returns a is undefined or
something else is undefined, so only trying does it work,
and catching errors.
=> Custom Fields sorting disabled, because could not
get with working with any error handling logic,
board did have errors with many variations of below changes.
if (definition === undefined) {
return {};
}
if (definition.name === undefined) {
return {};
}
try {
ret.sort((a, b) =>
a.definition.name.localeCompare(b.definition.name),
);
} catch (error) {
console.error(error);
}
*/
// at linked cards custom fields definition is not found
ret.sort(
(a, b) =>
a.definition !== undefined &&
b.definition !== undefined &&
a.definition.name !== undefined &&
b.definition.name !== undefined &&
a.definition.name.localeCompare(b.definition.name)
);
return ret;
},
+138 -9084
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "wekan",
"version": "v4.94.0",
"version": "v4.95.0",
"description": "Open-Source kanban",
"private": true,
"scripts": {
+2 -2
View File
@@ -1528,7 +1528,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
<ul class="toc-list-h1">
<li>
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v4.94">Wekan REST API v4.94</a>
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v4.95">Wekan REST API v4.95</a>
</li>
@@ -2046,7 +2046,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
<div class="page-wrapper">
<div class="dark-box"></div>
<div class="content">
<h1 id="wekan-rest-api">Wekan REST API v4.94</h1>
<h1 id="wekan-rest-api">Wekan REST API v4.95</h1>
<blockquote>
<p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
</blockquote>
+1 -1
View File
@@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: Wekan REST API
version: v4.94
version: v4.95
description: |
The REST API allows you to control and extend Wekan with ease.
+32 -5
View File
@@ -1,12 +1,39 @@
## Wekan release scripts
Sorry about the mess. I try to cleanup it sometime.
Release process, for example version 4.94:
1) Build x64 bundle and upload to x2/a/s/o:
===========================================
./release.sh 4.94
2) Build bundles at servers
===========================
arm64:
ssh a
./maintainer-make-release-a.sh 4.94
s390x:
ssh s
./maintainer-make-release-s.sh 4.94
openpower:
ssh o
./maintainer-make-release-o.sh 4.94
3) Download bundles and upload to x2 releases:
==============================================
./releases/up.sh
4) At x2, do release:
=====================
ssh x2
cd /var/snap/wekan/common
./release-x2.sh 4.93 4.94
I usually use these:
- release.sh
- release-sandstorm.sh
- release-snap.sh
https://github.com/wekan/wekan-snap/wiki/Making-releases-from-source
https://github.com/wekan/wekan-maintainer/wiki/Building-Wekan-for-Sandstorm
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
sudo sandstorm stop
sudo systemctl disable sandstorm
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
echo "INSTALLING WEKAN SANDSTORM VERSION RELATED FILES:"
sudo apt-get -y install p7zip-full wget curl
cd ~
wget https://releases.wekan.team/meteor-spk/projects.7z
7z x projects.7z
rm projects.7z
echo "export PATH=$PATH:~/projects/meteor-spk/meteor-spk-0.5.1" >> ~/.bashrc
source ~/.bashrc
echo "INSTALL DEV VERSION OF SANDSTORM:"
curl https://install.sandstorm.io | bash
cd ~/repos/wekan
+40
View File
@@ -0,0 +1,40 @@
#!/bin/bash
# This script is only for Wekan maintainer to
# convert x64 bundle to arm64 bundle.
cd ~/repos
rm -rf bundle
unzip wekan-$1.zip
sudo chown wekan:wekan bundle -R
sudo apt -y install libcurl4-openssl-dev
sudo rm -f /home/wekan/repos/bundle/programs/server/node_modules/.bin/node-pre-gyp
sudo rm -f /home/wekan/repos/bundle/programs/server/node_modules/.bin/node-gyp
sudo rm -rf /home/wekan/repos/bundle/programs/server/npm/node_modules/meteor/lucasantoniassi_accounts-lockout/node_modules/.phantomjs-prebuilt-garbage-*
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/.bin/*
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/node-pre-gyp/node_modules/.bin/*
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/node-gyp/node_modules/.bin/*
sudo rm -rf /home/wekan/repos/bundle/programs/server/npm/node_modules/meteor/ostrio_files/node_modules/request-libcurl/.node_modules-garbage*
cd bundle/programs/server
chmod u+w *.json
npm uninstall fibers node-gyp node-pre-gyp
npm install node-gyp@5.0.4 node-pre-gyp fibers
npm install
npm uninstall fibers node-gyp node-pre-gyp
npm install node-pre-gyp
npm install fibers
npm install node-gyp@5.0.4
cd /home/wekan/repos/bundle
find . -type d -name '*-garbage*' | xargs rm -rf
find . -name '*phantom*' | xargs rm -rf
find . -name '.*.swp' | xargs rm -f
find . -name '*.swp' | xargs rm -f
cd /home/wekan/repos
zip -r wekan-$1-arm64.zip bundle
+17
View File
@@ -0,0 +1,17 @@
cd /home/ubuntu
rm -rf bundle
#wget https://releases.wekan.team/wekan-$1.zip
unzip wekan-$1.zip
cd /home/ubuntu/bundle/programs/server
chmod u+w *.json
cd /home/ubuntu/bundle/programs/server/node_modules/fibers
node build.js
cd /home/ubuntu
cp -pR /home/ubuntu/node-fibers/bin/linux-ppc64-72-glibc bundle/programs/server/node_modules/fibers/bin/
cd bundle
find . -type d -name '*-garbage*' | xargs rm -rf
find . -name '*phantom*' | xargs rm -rf
find . -name '.*.swp' | xargs rm -f
find . -name '*.swp' | xargs rm -f
cd ..
zip -r wekan-$1-ppc64le.zip bundle
+16
View File
@@ -0,0 +1,16 @@
cd /home/linux1
rm -rf bundle
unzip wekan-$1.zip
cd /home/linux1/bundle/programs/server
chmod u+w *.json
cd /home/linux1/bundle/programs/server/node_modules/fibers
node build.js
cd /home/linux1
#cp -pR /home/linux1/node-fibers/bin/linux-s390x-83-glibc bundle/programs/server/node_modules/fibers/bin/
cd bundle
find . -type d -name '*-garbage*' | xargs rm -rf
find . -name '*phantom*' | xargs rm -rf
find . -name '.*.swp' | xargs rm -f
find . -name '*.swp' | xargs rm -f
cd ..
zip -r wekan-$1-s390x.zip bundle
+1 -3
View File
@@ -1,12 +1,10 @@
cd ~/repos/wekan
sudo apt -y install parallel
sudo apt-get -y install parallel
./releases/rebuild-release.sh
#./releases/delete-phantomjs.sh
cd ~/repos/wekan/.build
zip -r wekan-$1.zip bundle
mv ~/repos/wekan/.build/wekan-$1.zip .
{
scp wekan-$1.zip x2:/var/snap/wekan/common/releases.wekan.team/
scp wekan-$1.zip a:/home/wekan/repos/
+15 -10
View File
@@ -13,19 +13,24 @@ WEKANDIR=/home/wekan/repos/wekan
# Ensure sudo access
sudo echo .
rm -rf ~/repos/wekan/.meteor-spk
sudo systemctl enable sandstorm
sudo sandstorm start
sudo sandstorm update
# Build Sandstorm
cd $REPODIR
rm -rf $WEKANDIR
git clone git@github.com:wekan/wekan.git
cd $WEKANDIR
sudo n 12.20.1
sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
#cd $REPODIR
#rm -rf $WEKANDIR
#git clone git@github.com:wekan/wekan.git
#cd $WEKANDIR
#sudo n 12.20.1
#sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
# Build Wekan
./releases/rebuild-release.sh
cd .build/bundle/programs/server
npm install node-gyp node-pre-gyp fibers
#./releases/rebuild-release.sh
#cd .build/bundle/programs/server
#npm install node-gyp node-pre-gyp fibers
cd $WEKANDIR
# Build Sandstorm
meteor-spk pack wekan-$1.spk
#spk publish wekan-$1.spk
spk publish wekan-$1.spk
rm -rf ~/repos/wekan/.meteor-spk
#scp wekan-$1.spk x2:/var/snap/wekan/common/releases.wekan.team/
+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
## Syntax: ./release.sh oldversion newversion
## Example: ./release.sh 3.87 3.88
echo "Release: x64"
cd releases.wekan.team
mv wekan-$1.zip /data2/old-releases/
sha256sum wekan-$2.zip >> SHA256SUMS.txt
mv SHA256SUMS.txt ../x64-SHA256SUMS.txt
cat ../x64-SHA256SUMS.txt | grep -v wekan-$1.zip > SHA256SUMS.txt
cd ..
echo "Release: arm64"
cd releases.wekan.team/raspi3
mv wekan-$1-arm64.zip /data2/old-releases/raspi3/
sha256sum wekan-$2-arm64.zip >> SHA256SUMS.txt
mv SHA256SUMS.txt ../../arm64-SHA256SUMS.txt
cat ../../arm64-SHA256SUMS.txt | grep -v wekan-$1-arm64.zip > SHA256SUMS.txt
cd ../..
echo "Release: s390x"
cd releases.wekan.team/s390x
mv wekan-$1-s390x.zip /data2/old-releases/s390x/
sha256sum wekan-$2-s390x.zip >> SHA256SUMS.txt
mv SHA256SUMS.txt ../../s390x-SHA256SUMS.txt
cat ../../s390x-SHA256SUMS.txt | grep -v wekan-$1-s390x.zip > SHA256SUMS.txt
cd ../..
echo "Release: ppc64le"
cd releases.wekan.team/ppc64le
mkdir -p /data2/old-releases/ppc64le
mv wekan-$1-ppc64le.zip /data2/old-releases/ppc64le/
sha256sum wekan-$2-ppc64le.zip >> SHA256SUMS.txt
mv SHA256SUMS.txt ../../ppc64le-SHA256SUMS.txt
cat ../../ppc64le-SHA256SUMS.txt | grep -v wekan-$1-ppc64le.zip > SHA256SUMS.txt
cd ../..
+2
View File
@@ -1,5 +1,7 @@
#!/bin/bash
sudo apt-get -y install parallel
{
~/repos/wekan/releases/up-a.sh $1
~/repos/wekan/releases/up-s.sh $1
+2 -2
View File
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user.
appVersion = 494,
appVersion = 495,
# Increment this for every release.
appMarketingVersion = (defaultText = "4.94.0~2021-02-08"),
appMarketingVersion = (defaultText = "4.95.0~2021-02-08"),
# Human-readable presentation of the app version.
minUpgradableAppVersion = 0,