Johannes Zellner
5460027a49
Add restoreConfig to backupsdb.js
2017-04-18 11:57:59 +02:00
Girish Ramakrishnan
790ad4e74d
Add getAddonConfigByName
2017-03-26 19:06:36 -07:00
Girish Ramakrishnan
f92297cc99
Store env vars as name, value pairs
...
Part of #109
2017-03-26 12:22:19 -07:00
Girish Ramakrishnan
330c9054b4
add/del/update user mailbox as part of transaction
2017-02-14 10:42:32 -08:00
Girish Ramakrishnan
db6474ef2a
Merge readonlyRootfs and development mode into debug mode
...
The core issue we want to solve is to debug a running app.
Let's make it explicit that it is in debugging mode because
functions like update/backup/restore don't work.
Part of #171
2017-01-20 09:29:32 -08:00
Girish Ramakrishnan
a71323f8b3
Add developmentMode flag to appdb
...
Part of #171
2017-01-19 15:57:24 -08:00
Girish Ramakrishnan
9a41f111b0
Fix failing tests
2017-01-19 12:51:16 -08:00
Girish Ramakrishnan
536c16929b
Remove showTutorial
2017-01-17 09:11:34 -08:00
Girish Ramakrishnan
2b27e554fd
Change backup filenames
...
appbackup_%s_%s-v%s.tar.gz -> app_%s_%s_v%s.tar.gz
drop 'backup'. rationale: it is known these files are backups
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
backup_%s-v%s.tar.gz -> box_%s_v%s.tar.gz
drop 'backup' and name it 'box'. this makes it clear it related to the box backup
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
Part of #159
2017-01-04 13:36:25 -08:00
Johannes Zellner
d1161b3ff8
Add mailboxdb.updateName()
2016-12-15 16:57:29 +01:00
Johannes
cb64ac1b7f
Add unit tests for eventlog search
2016-11-28 16:02:59 +01:00
Girish Ramakrishnan
1adc47ab32
make ordering of results predictable
2016-11-19 18:24:32 +05:30
Girish Ramakrishnan
94037e5266
remove oauth proxy backend logic
2016-11-19 17:13:08 +05:30
Girish Ramakrishnan
6064db9467
read sso field in db code
2016-11-19 17:10:54 +05:30
Johannes Zellner
552ca43175
Only cleanup high frequency events in eventlog
...
Those are currently the login events and backup
2016-11-18 11:32:12 +01:00
Girish Ramakrishnan
430ac330dc
add groupdb tests
2016-09-29 15:11:56 -07:00
Girish Ramakrishnan
a91ae2b9aa
add mailboxdb.getGroup tests
2016-09-27 16:34:28 -07:00
Johannes Zellner
34f624abef
Give auth codes much longer expiration
...
Since the expiration is calculated when mocha loads the tests,
5000 was too low if some tests take longer
2016-09-27 21:48:39 +02:00
Girish Ramakrishnan
9d9278b6f2
s/by/for
2016-09-26 14:02:23 -07:00
Girish Ramakrishnan
1f1f56b431
Fix mailboxdb API
2016-09-25 23:21:55 -07:00
Girish Ramakrishnan
baa2dbbf39
Add alias and list ldap routes
2016-09-25 21:34:52 -07:00
Girish Ramakrishnan
c158548c19
remove ununsed mailboxdb.getAll
2016-09-25 16:46:08 -07:00
Girish Ramakrishnan
00ee2eea39
Remove code to push aliases
...
The mail-addon will query via LDAP
2016-09-23 15:14:07 -07:00
Girish Ramakrishnan
7fde57f7de
clear db ignoring foreign key checks
2016-09-20 14:33:22 -07:00
Girish Ramakrishnan
408dd61408
Send and receive oauthProxy in REST routes
...
Part of #6
2016-09-06 23:32:42 -07:00
Girish Ramakrishnan
98facf2a3c
delete eventlog older than 7 days
2016-07-25 12:54:27 -07:00
Girish Ramakrishnan
b3a4973348
default xframeoption is sameorigin
2016-07-24 23:00:43 -07:00
Johannes Zellner
7f6360361f
Fixup the appsdb tests
2016-07-14 16:28:59 +02:00
Girish Ramakrishnan
fe62aba4d7
make appdb.add take a data object
2016-06-17 16:43:35 -05:00
Girish Ramakrishnan
5f3378878e
remove lastBackupConfig
2016-06-13 19:19:28 -07:00
Johannes Zellner
1508a5c6b9
Add tokendb.delByClientId()
2016-06-09 15:42:52 +02:00
Johannes Zellner
d6482414bb
Fixup the clientdb tests
2016-06-08 14:49:54 +02:00
Johannes Zellner
4df49a82e5
Some clientdb.TYPE_ oversight in clients.js
2016-06-03 15:28:04 +02:00
Johannes Zellner
b4dfad3aa3
Fixup the unit tests after removing PREFIX_USER
2016-06-03 13:09:26 +02:00
Johannes Zellner
594be7dbbd
Allow the userdb code to distinguish between username or email duplicates
2016-06-02 15:34:27 +02:00
Girish Ramakrishnan
ce927bfa22
alias
...
also remove id since it's not useful for mailbox case (not like
mailbox can be renamed and we need a fixed it)
2016-05-27 22:20:08 -07:00
Girish Ramakrishnan
77457d1ea9
initial mailbox db and model code
2016-05-27 10:36:47 -07:00
Johannes Zellner
3af95508f5
eventlog getAllPaged is now getByQueryPaged
2016-05-06 17:27:52 +02:00
Johannes Zellner
e986a67d39
Fixup all the unit tests
2016-05-06 15:16:22 +02:00
Girish Ramakrishnan
ca8731c282
add source to events table
2016-04-30 12:56:23 -07:00
Girish Ramakrishnan
8c427553ba
add eventlogdb tests
2016-04-30 10:16:27 -07:00
Girish Ramakrishnan
d2a3925e04
add altDomain to install route
2016-04-26 14:45:58 -07:00
Girish Ramakrishnan
ef12740060
add altDomain to appdb fields
2016-04-25 10:52:12 -07:00
Johannes Zellner
101ce62ef3
Move username and email lowercasing to where it belongs
...
Fixes #592
2016-04-14 16:25:48 +02:00
Girish Ramakrishnan
e6c2c77f03
set username for predictability
2016-04-06 09:18:00 -07:00
Johannes Zellner
94faa3575c
Ensure we lowercase all emails
...
This ensures the uniqueness of that field
2016-04-05 11:15:50 +02:00
Johannes Zellner
544c1474d1
Allow multiple empty usernames in the db
2016-04-05 10:54:09 +02:00
Girish Ramakrishnan
82c74e6787
add backupdb tests
2016-04-04 12:41:17 -07:00
Johannes Zellner
d4480ec407
Remove oauthProxy usage in the database wrapper
2016-02-19 16:12:58 +01:00
Johannes Zellner
ab003bf81f
adjust appdb.js and unit tests to support memoryLimit
2016-02-10 12:25:26 +01:00