Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-23 Thread Giorgos Tsiapaliokas


> On April 20, 2013, 1:37 p.m., Commit Hook wrote:
> > This review has been submitted with commit 
> > 7b5b517ff25d01a801b6a1a688aaffd61307acaf by Giorgos Tsiapaliokas to branch 
> > master.
> 
> Aleix Pol Gonzalez wrote:
> :) cool! good work!!

:)


- Giorgos


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review31329
---


On April 20, 2013, 1:37 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 20, 2013, 1:37 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/config.json PRE-CREATION 
>   server/config.sample.json 16de381 
>   server/package.json e68c27c 
>   sql/do_sql PRE-CREATION 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-21 Thread Aleix Pol Gonzalez


> On April 20, 2013, 1:37 p.m., Commit Hook wrote:
> > This review has been submitted with commit 
> > 7b5b517ff25d01a801b6a1a688aaffd61307acaf by Giorgos Tsiapaliokas to branch 
> > master.

:) cool! good work!!


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review31329
---


On April 20, 2013, 1:37 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 20, 2013, 1:37 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/config.json PRE-CREATION 
>   server/config.sample.json 16de381 
>   server/package.json e68c27c 
>   sql/do_sql PRE-CREATION 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-20 Thread Commit Hook

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/
---

(Updated April 20, 2013, 1:37 p.m.)


Status
--

This change has been marked as submitted.


Review request for Bodega.


Description
---

This patch does,

* adds a sql/updates dir
* impoves the setup.sh file
* executes the sql/updates scripts before npm updates
* populates the package.json
** adds a restriction to node
** overrides the default functionality of npm start


Diffs
-

  README 7515b65 
  server/config.json PRE-CREATION 
  server/config.sample.json 16de381 
  server/package.json e68c27c 
  sql/do_sql PRE-CREATION 
  sql/setup.sh 82cf22e 
  sql/updates/README PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/109975/diff/


Testing
---


Thanks,

Giorgos Tsiapaliokas

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-20 Thread Commit Hook

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review31329
---


This review has been submitted with commit 
7b5b517ff25d01a801b6a1a688aaffd61307acaf by Giorgos Tsiapaliokas to branch 
master.

- Commit Hook


On April 20, 2013, 10:03 a.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 20, 2013, 10:03 a.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/config.json PRE-CREATION 
>   server/config.sample.json 16de381 
>   server/package.json e68c27c 
>   sql/do_sql PRE-CREATION 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-20 Thread Aaron J. Seigo

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review31328
---


two small changes, and then this can go in. (unnecessary to post an update; 
once the comments below are addressed, push push push (yes marco!)


server/config.json


this file should not be added; config.sample.json is meant to be copied 
over.



sql/do_sql


vivaldi.sql should not be included by default.


- Aaron J. Seigo


On April 20, 2013, 10:03 a.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 20, 2013, 10:03 a.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/config.json PRE-CREATION 
>   server/config.sample.json 16de381 
>   server/package.json e68c27c 
>   sql/do_sql PRE-CREATION 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-20 Thread Giorgos Tsiapaliokas

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/
---

(Updated April 20, 2013, 10:03 a.m.)


Review request for Bodega.


Changes
---

I have ported the script from bash to node.js in
order to be able to read the config.json file


Description
---

This patch does,

* adds a sql/updates dir
* impoves the setup.sh file
* executes the sql/updates scripts before npm updates
* populates the package.json
** adds a restriction to node
** overrides the default functionality of npm start


Diffs (updated)
-

  README 7515b65 
  server/config.json PRE-CREATION 
  server/config.sample.json 16de381 
  server/package.json e68c27c 
  sql/do_sql PRE-CREATION 
  sql/setup.sh 82cf22e 
  sql/updates/README PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/109975/diff/


Testing
---


Thanks,

Giorgos Tsiapaliokas

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-12 Thread Giorgos Tsiapaliokas


> On April 12, 2013, 4:26 p.m., Aaron J. Seigo wrote:
> > sql/setup.sh, lines 16-17
> > 
> >
> > bodega should be replaced here with the $database and $username vars

right


- Giorgos


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review30960
---


On April 12, 2013, 2:40 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 12, 2013, 2:40 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/package.json e68c27c 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
>   sql/updates/do_updates.sh PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-12 Thread Giorgos Tsiapaliokas


> On April 12, 2013, 5:19 p.m., Aleix Pol Gonzalez wrote:
> > sql/setup.sh, line 6
> > 
> >
> > Shouldn't these come from the config.json file?
> 
> Aaron J. Seigo wrote:
> that would be nice, but it's not parsed/sourced by this script. it would 
> mean either bringing in a json parser to this, or writing this in js. the 
> latter wouldn't be the worst idea in the world, really.

>that would be nice,

I believe that we really need this.
The ideal is to do as many stuff as we can from the config.json(no?)

> but it's not parsed/sourced by this script. it would mean either bringing in 
> a json parser to this, 

a json parser in bash.. well it will be ugly. No?

>or writing this in js. the latter wouldn't be the worst idea in the world, 
>really.

I agree. writing stuff like this in js could make a quite good result.
After all in the end we need a language in which we will be able to write 
scripts.

options(this is my personal opinion):
a. use bash when its possible and some other language* when it isn't
b. use only the other language(overkill, see main.sh)

*other language
1. use perl/ruby/python/etc, this solution increases the complexity of the 
scripts. One more language with her idioms etc
2. use Qt, Qt hasn't been created for this reason
3. use js, seams logical. Its not perfect but since this is a node.js project
we must do with the nodeish way. A lot of people use js for their scripts.

I believe the a and 3 are the best solutions :)


- Giorgos


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review30962
---


On April 12, 2013, 2:40 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 12, 2013, 2:40 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/package.json e68c27c 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
>   sql/updates/do_updates.sh PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-12 Thread Aaron J. Seigo


> On April 12, 2013, 5:19 p.m., Aleix Pol Gonzalez wrote:
> > sql/setup.sh, line 6
> > 
> >
> > Shouldn't these come from the config.json file?

that would be nice, but it's not parsed/sourced by this script. it would mean 
either bringing in a json parser to this, or writing this in js. the latter 
wouldn't be the worst idea in the world, really.


- Aaron J.


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review30962
---


On April 12, 2013, 2:40 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 12, 2013, 2:40 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/package.json e68c27c 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
>   sql/updates/do_updates.sh PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-12 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review30962
---



sql/setup.sh


Shouldn't these come from the config.json file?


- Aleix Pol Gonzalez


On April 12, 2013, 2:40 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 12, 2013, 2:40 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/package.json e68c27c 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
>   sql/updates/do_updates.sh PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active


Re: Review Request 109975: various fixes to sql scripts and package.json

2013-04-12 Thread Aaron J. Seigo

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109975/#review30960
---



sql/setup.sh


bodega should be replaced here with the $database and $username vars


- Aaron J. Seigo


On April 12, 2013, 2:40 p.m., Giorgos Tsiapaliokas wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109975/
> ---
> 
> (Updated April 12, 2013, 2:40 p.m.)
> 
> 
> Review request for Bodega.
> 
> 
> Description
> ---
> 
> This patch does,
> 
> * adds a sql/updates dir
> * impoves the setup.sh file
> * executes the sql/updates scripts before npm updates
> * populates the package.json
> ** adds a restriction to node
> ** overrides the default functionality of npm start
> 
> 
> Diffs
> -
> 
>   README 7515b65 
>   server/package.json e68c27c 
>   sql/setup.sh 82cf22e 
>   sql/updates/README PRE-CREATION 
>   sql/updates/do_updates.sh PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109975/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Giorgos Tsiapaliokas
> 
>

___
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active