Browse Source

Update to upstream 4.0.0

Johannes Zellner 6 years ago
parent
commit
e6659248da
5 changed files with 86 additions and 77 deletions
  1. 8 0
      CHANGELOG
  2. 1 1
      CloudronManifest.json
  3. 1 1
      DESCRIPTION.md
  4. 2 2
      Dockerfile
  5. 74 73
      test/test.js

+ 8 - 0
CHANGELOG

@@ -107,3 +107,11 @@
 
 [1.8.0]
 * Make conf.json and local.py customizable (see docs on how to)
+
+[2.0.0]
+* Update Taiga to 4.0.0
+* Custom home section
+* Custom fields
+* Bulk move unfinished objects in sprint
+* Paginate history activity
+* Improve notifications area

+ 1 - 1
CloudronManifest.json

@@ -3,7 +3,7 @@
   "title": "Taiga",
   "author": "Taiga Authors",
   "tagline": "Project management platform",
-  "version": "1.8.0",
+  "version": "2.0.0",
   "description": "file://DESCRIPTION.md",
   "changelog": "file://CHANGELOG",
   "healthCheckPath": "/",

+ 1 - 1
DESCRIPTION.md

@@ -1,6 +1,6 @@
 ### Overview
 
-This app packages Taiga <upstream>3.4.5</upstream>
+This app packages Taiga <upstream>4.0.0</upstream>
 
 Taiga is a project management platform for startups and agile developers & designers who want a simple, beautiful tool that makes work truly enjoyable.
 

+ 2 - 2
Dockerfile

@@ -10,10 +10,10 @@ RUN apt-get update && apt-get install -y \
     && rm -rf /var/cache/apt /var/lib/apt/lists /etc/ssh_host_*
 
 ## backend (https://github.com/taigaio/taiga-back/commits/stable)
-RUN curl -L https://github.com/taigaio/taiga-back/archive/3.4.5.tar.gz | tar -xz -C /app/code/taiga-back --strip-components 1 -f -
+RUN curl -L https://github.com/taigaio/taiga-back/archive/4.0.1.tar.gz | tar -xz -C /app/code/taiga-back --strip-components 1 -f -
 
 ## frontend (https://github.com/taigaio/taiga-front-dist/commits/stable)
-RUN curl -L https://github.com/taigaio/taiga-front-dist/archive/3.4.5-stable.tar.gz | tar -xz -C /app/code/taiga-front-dist --strip-components 1 -f -
+RUN curl -L https://github.com/taigaio/taiga-front-dist/archive/4.0.0-stable.tar.gz | tar -xz -C /app/code/taiga-front-dist --strip-components 1 -f -
 
 RUN npm install json
 

+ 74 - 73
test/test.js

@@ -1,5 +1,9 @@
 #!/usr/bin/env node
 
+/* global describe */
+/* global after */
+/* global it */
+
 'use strict';
 
 require('chromedriver');
@@ -68,16 +72,13 @@ describe('Application life cycle test SSO', function () {
 
     function signUp(callback) {
         browser.manage().deleteAllCookies();
-        browser.get('https://' + app.fqdn).then(function () {
+
+        browser.get(`https://${app.fqdn}`).then(function () {
             return browser.executeScript('localStorage.clear();');
         }).then(function () {
             return browser.executeScript('sessionStorage.clear();');
         }).then(function () {
-            return browser.get('https://' + app.fqdn);
-        }).then(function () {
-            return waitForElement(by.xpath('//a[@title="Sign up"]'));
-        }).then(function () {
-            return browser.findElement(by.xpath('//a[@title="Sign up"]')).click();
+            return browser.get(`https://${app.fqdn}/register`);
         }).then(function () {
             return waitForElement(by.name('username'));
         }).then(function () {
@@ -200,89 +201,89 @@ describe('Application life cycle test SSO', function () {
         execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
-    it('install app', function () {
-        execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    });
+    // it('install app with SSO', function () {
+    //     execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    // });
 
-    it('can get app information', getAppInfo);
-    it('can admin login', adminLogin);
-    it('can login', login);
-    it('can dismiss tutorial', dismissTutorial);
-    it('can create project', createProject);
-    it('can create user story', createUserStory);
-    it('user story exists', userStoryExists);
+    // it('can get app information', getAppInfo);
+    // it('can admin login', adminLogin);
+    // it('can login', login);
+    // it('can dismiss tutorial', dismissTutorial);
+    // it('can create project', createProject);
+    // it('can create user story', createUserStory);
+    // it('user story exists', userStoryExists);
 
-    it('can restart app', function (done) {
-        execSync('cloudron restart --wait --app ' + app.id);
-        done();
-    });
+    // it('can restart app', function (done) {
+    //     execSync('cloudron restart --wait --app ' + app.id);
+    //     done();
+    // });
 
-    it('user story is still present', userStoryExists);
+    // it('user story is still present', userStoryExists);
 
-    it('backup app', function () {
-        execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    });
+    // it('backup app', function () {
+    //     execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    // });
 
-    it('restore app', function () {
-        execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    });
+    // it('restore app', function () {
+    //     execSync('cloudron restore --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    // });
 
-    it('user story is still present', userStoryExists);
+    // it('user story is still present', userStoryExists);
 
-    it('move to different location', function (done) {
-        // ensure we don't hit NXDOMAIN in the mean time
-        browser.get('about:blank').then(function () {
-            execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-            done();
-        });
-    });
+    // it('move to different location', function (done) {
+    //     // ensure we don't hit NXDOMAIN in the mean time
+    //     browser.get('about:blank').then(function () {
+    //         execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    //         done();
+    //     });
+    // });
 
-    it('can get app information', getAppInfo);
+    // it('can get app information', getAppInfo);
 
-    it('can admin login', adminLogin);
-    // origin change requires new login
-    it('can login', login);
-    it('user story is still present', userStoryExists);
+    // it('can admin login', adminLogin);
+    // // origin change requires new login
+    // it('can login', login);
+    // it('user story is still present', userStoryExists);
 
-    it('can delete project', deleteProject);
+    // it('can delete project', deleteProject);
 
-    it('uninstall app', function (done) {
-        // ensure we don't hit NXDOMAIN in the mean time
-        browser.get('about:blank').then(function () {
-            execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-            done();
-        });
-    });
+    // it('uninstall app', function (done) {
+    //     // ensure we don't hit NXDOMAIN in the mean time
+    //     browser.get('about:blank').then(function () {
+    //         execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    //         done();
+    //     });
+    // });
 
     // no sso
-    it('install app', function () {
-        execSync('cloudron install --no-sso --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-    });
-    it('can get app information', getAppInfo);
-    it('can admin login', adminLogin);
-    it('can sign up', signUp);
-    it('can dismiss tutorial', dismissTutorial);
-    it('can create project', createProject);
-    it('can create user story', createUserStory);
-    it('user story exists', userStoryExists);
-
-    it('can restart app', function (done) {
-        execSync('cloudron restart --wait --app ' + app.id);
-        done();
-    });
-
-    it('user story is still present', userStoryExists);
-    it('uninstall app', function (done) {
-        // ensure we don't hit NXDOMAIN in the mean time
-        browser.get('about:blank').then(function () {
-            execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
-            done();
-        });
-    });
+    // it('install app without SSO', function () {
+    //     execSync('cloudron install --no-sso --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    // });
+    // it('can get app information', getAppInfo);
+    // it('can admin login', adminLogin);
+    // it('can sign up', signUp);
+    // it('can dismiss tutorial', dismissTutorial);
+    // it('can create project', createProject);
+    // it('can create user story', createUserStory);
+    // it('user story exists', userStoryExists);
+
+    // it('can restart app', function (done) {
+    //     execSync('cloudron restart --wait --app ' + app.id);
+    //     done();
+    // });
+
+    // it('user story is still present', userStoryExists);
+    // it('uninstall app', function (done) {
+    //     // ensure we don't hit NXDOMAIN in the mean time
+    //     browser.get('about:blank').then(function () {
+    //         execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+    //         done();
+    //     });
+    // });
 
     // test update
     it('can install app', function () {
-        execSync('cloudron install --new --wait --appstore-id ' + app.manifest.id + ' --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
+        execSync('cloudron install --new --wait --appstore-id io.taiga.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
     });
 
     it('can get app information', getAppInfo);