8000 Allow addEdge() to take vertex ids in the JS library by moonglum · Pull Request #528 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Allow addEdge() to take vertex ids in the JS library #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2,481 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2481 commits
Select commit Hold shift + click to select a range
c3f6e44
more transparency, new api style
hkernbach Oct 8, 2013
8168520
more transparency, new api style
hkernbach Oct 8, 2013
797cbc4
dashboard label fix for detailedgraph
hkernbach Oct 8, 2013
4044863
css fixes for apps-view and docs-view
hkernbach Oct 8, 2013
132032c
foxxcss
hkernbach Oct 8, 2013
2eb9ff1
keep deletions in compaction
jsteemann Oct 9, 2013
4cac289
added assertion
jsteemann Oct 9, 2013
5d5624a
added config file for arangodump
jsteemann Oct 9, 2013
77bb297
fix filename
jsteemann Oct 9, 2013
980ccb6
removed superfluous parameter
jsteemann Oct 9, 2013
7cf6198
added collection id translation for dumps
jsteemann Oct 9, 2013
fff528b
fix temp file creation on Windows
jsteemann Oct 9, 2013
473bf9d
fix some VS warnings
jsteemann Oct 9, 2013
bd2d2c3
fix Windows file handling
jsteemann Oct 9, 2013
b509e79
refuse to start if no app path is set
jsteemann Oct 9, 2013
49b6f64
Windows fixes
jsteemann Oct 9, 2013
52f480f
updated config files
jsteemann Oct 9, 2013
f8cba10
config file handling
jsteemann Oct 9, 2013
937415f
updated Windows batch files
jsteemann Oct 9, 2013
baef8f2
updated batch files
jsteemann Oct 9, 2013
d950d4f
notes on Windows and upgrading
jsteemann Oct 9, 2013
9e88528
fixed typo
jsteemann Oct 9, 2013
47808ee
worked around arguments.callee
jsteemann Oct 10, 2013
1536caa
use batches in arangodump
jsteemann Oct 10, 2013
55ab125
better not use ofstream
jsteemann Oct 10, 2013
1427daf
resolve collection names on reimport
jsteemann Oct 10, 2013
9b3705a
updated arangorestore
jsteemann Oct 10, 2013
59afd52
updated Visual Studio projects
jsteemann Oct 10, 2013
cec068e
fixed alignment in compaction
jsteemann Oct 10, 2013
2cd22a9
fixed test
jsteemann Oct 10, 2013
83c8e8f
added docs
jsteemann Oct 11, 2013
cdd8109
dashboard new main-page
hkernbach Oct 11, 2013
78edf64
api button styling
hkernbach Oct 11, 2013
4b90201
removed tooltips for small charts
hkernbach Oct 11, 2013
6af82aa
green glow for searchInput + width
hkernbach Oct 11, 2013
123870a
updated sln
jsteemann Oct 11, 2013
017e6eb
delay for tooltips, updated nav-routes
hkernbach Oct 11, 2013
13a3b8c
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 11, 2013
dcfe787
updated batch files
jsteemann Oct 11, 2013
76db5f4
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 11, 2013
98b7682
notes on Windows
jsteemann Oct 11, 2013
9d7269a
updated navigate route
hkernbach Oct 11, 2013
af92d5f
updated CHANGELOG
jsteemann Oct 11, 2013
2268e4f
fixed header in aql modals
hkernbach Oct 11, 2013
6d73174
updated docs
jsteemann Oct 11, 2013
15777f1
OpenSans font, css changes
hkernbach Oct 11, 2013
b1bfe88
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 11, 2013
a7a5be5
collections settings menu no autoclose added
hkernbach Oct 11, 2013
89da26e
removed old background, changed some css
hkernbach Oct 11, 2013
e8c4aee
css
hkernbach Oct 11, 2013
0bac75c
css
hkernbach Oct 11, 2013
956bd53
updated manuals
jsteemann Oct 11, 2013
e3b0225
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 11, 2013
0048f92
fixed PDF generation
jsteemann Oct 11, 2013
c43dc9e
removed aboutView-links
hkernbach Oct 11, 2013
77036ff
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 11, 2013
1875f43
added dump & reload to new features
jsteemann Oct 11, 2013
2563664
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 11, 2013
91a267f
visual status for replication state
hkernbach Oct 11, 2013
1ef062c
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 11, 2013
3ff9f60
radio buttons styling
hkernbach Oct 11, 2013
1add879
changed new styling for foxx-docu view
hkernbach Oct 11, 2013
091406b
added armv7
fceller Oct 12, 2013
184daa7
removed generated file
fceller Oct 13, 2013
2a78917
added modifications for raspberry
fceller Oct 13, 2013
d08ce37
added armv7
fceller Oct 12, 2013
27f23d9
removed generated file
fceller Oct 13, 2013
abce53e
added modifications for raspberry
fceller Oct 13, 2013
0679a35
do not install dot files
fceller Oct 13, 2013
722d7e0
added database selection to arango-dfdb
jsteemann Oct 14, 2013
e2e1f6e
report status at end
jsteemann Oct 14, 2013
bcc530d
remove database-specific directories underneath app-path and dev-app-…
jsteemann Oct 14, 2013
25a0868
replication applier will now preferrably use collection names instead…
jsteemann Oct 14, 2013
e0c4e84
make console a default object
jsteemann Oct 14, 2013
b32e510
Merge branch 'devel' of github.com:triAGENS/ArangoDB into 1.4
fceller Oct 14, 2013
deab253
regenerated swagger
fceller Oct 14, 2013
2581910
regenerated swagger
fceller Oct 14, 2013
b06170f
release version 1.4.0-beta2
fceller Oct 14, 2013
8bffba5
updated compilation manual
jsteemann Oct 14, 2013
cb6004a
updated comment
jsteemann Oct 14, 2013
22bc1aa
fixed typo
jsteemann Oct 14, 2013
8c364e8
removed unused script
jsteemann Oct 15, 2013
d044276
adjusted message
jsteemann Oct 15, 2013
1c7ef2d
fixed #607: console was redefined
jsteemann Oct 15, 2013
aad0cb7
issue #608: added documentation on arangosh configuration
jsteemann Oct 15, 2013
f56a8a9
added tests for dump/restore
jsteemann Oct 15, 2013
b590e12
issue #612: extended documentation
jsteemann Oct 15, 2013
6a991e3
issue #612
jsteemann Oct 15, 2013
2e70f58
fixed "error with AQL in user function"
jsteemann Oct 16, 2013
3834ed3
issue #611: a bit more preselection in the graph viewer
jsteemann Oct 16, 2013
316f181
issue #611: more preselection
jsteemann Oct 16, 2013
e1d516f
issue #603
jsteemann Oct 16, 2013
0ebe111
hide div in footer
jsteemann Oct 16, 2013
d278880
Minor JSLint fixes in GraphViewer
mchacki Oct 16, 2013
bba3a33
GraphViewer Solved mergeconflict in arangoAdapter
mchacki Oct 16, 2013
e60ff3a
issue #611: Implemented rerendering after collection switch.
mchacki Oct 16, 2013
d47a1f8
GraphViewer: Fixed some broken tests due to changes in the arangoAdapter
mchacki Oct 16, 2013
01d97f4
Issue: 609 - Modified background colour to suggested value from @lueb…
mchacki Oct 16, 2013
2ecc3bd
moved path checks from --upgrade to server start and database creation
jsteemann Oct 16, 2013
18a3afe
create less collections for a new databases
jsteemann Oct 16, 2013
70dbbd0
removed unused file
jsteemann Oct 16, 2013
fd79f64
updated CHANGELOG
jsteemann Oct 16, 2013
b4e241e
direct 8000 ory creation on startup
jsteemann Oct 16, 2013
20b21b2
updated manual
jsteemann Oct 16, 2013
7e0c9a1
fixed some VS complaints
jsteemann Oct 16, 2013
9b5cb90
closed issue #614
jsteemann Oct 17, 2013
12d3b82
removed resourceholder
jsteemann Oct 17, 2013
b88afda
fixed issue #615
jsteemann Oct 17, 2013
0c39ecf
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 17, 2013
bedd1d1
issue #617: Swagger API is missing '/_api/version'
jsteemann Oct 17, 2013
c97e6ac
updated documentation for console, added section about Foxx development
jsteemann Oct 17, 2013
7062d43
1.4.0-beta2
fceller Oct 17, 2013
453b566
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 17, 2013
1eb5451
fixed merge problem
fceller Oct 17, 2013
b52e650
added `replace` command for foxx-manager, updated docs
jsteemann Oct 17, 2013
3d8b9bf
added foxx-manager `installed` command
jsteemann Oct 17, 2013
700455b
open databases in deterministic order
jsteemann Oct 18, 2013
0bfcac5
faster server shutdown
jsteemann Oct 18, 2013
70a0497
updated CHANGELOG
jsteemann Oct 18, 2013
a23a320
removed multiline shell editor
hkernbach Oct 18, 2013
3985f6a
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 18, 2013
896b11d
shell css
hkernbach Oct 18, 2013
12b5878
fixed typo in ifdef
fceller Oct 18, 2013
e3b0e3d
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 18, 2013
2588178
renamed titles and changed them to "h1" so that they appear in the ta…
luebbert42 Oct 18, 2013
9c837ad
Merge pull request #618 from luebbert42/devel
moonglum Oct 18, 2013
b2e0333
added zlib version
fceller Oct 18, 2013
89f0ba0
added first attempt for cmake
fceller Oct 18, 2013
fa9562b
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 18, 2013
c3ba580
design
hkernbach Oct 18, 2013
585acfd
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
hkernbach Oct 18, 2013
3c03fb6
design
hkernbach Oct 18, 2013
7450a2d
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 20, 2013
fbaddd5
more tests with cmake
fceller Oct 20, 2013
055096c
more cmake
fceller Oct 20, 2013
17789f3
added mruby
fceller Oct 20, 2013
601e3f8
added arangod
fceller Oct 20, 2013
0acc644
mruby and output
fceller Oct 20, 2013
3965a55
potential fix for issue #622
jsteemann Oct 20, 2013
d2dabe5
moved TRI_ENABLE_MRUBY to command line
fceller Oct 20, 2013
442cad3
added tests
fceller Oct 20, 2013
93d9c6b
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 20, 2013
07b5deb
fix typo in help text
jsteemann Oct 20, 2013
49ca923
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 20, 2013
e9b5462
fetch time outside of lock
jsteemann Oct 20, 2013 8000
cdcc3dc
prep for 1.4 release
hkernbach Oct 20, 2013
60bf435
dashboard changed
hkernbach Oct 20, 2013
e97d9a3
added Jan's answer in the google group on how collections work in Fox…
luebbert42 Oct 21, 2013
bfe6c6e
FOXX -> Foxx
luebbert42 Oct 21, 2013
2efd0cc
commit for 1.4 final
hkernbach Oct 25, 2013
f99eedb
small design update
hkernbach Oct 25, 2013
4e0da17
dashboard bugfix
hkernbach Oct 25, 2013
6f81b29
changelog addition
hkernbach Oct 25, 2013
5b3cb32
css
hkernbach Oct 25, 2013
996000e
improved error messages for invalid new indexes
hkernbach Oct 25, 2013
d130713
single update interval for graphs and replication
hkernbach Oct 25, 2013
00748e3
removed console logs
hkernbach Oct 25, 2013
f7bf8f4
GraphViewer: Nodes will now user pointer and edges will now be thicke…
mchacki Oct 25, 2013
2764aba
Merge
mchacki Oct 25, 2013
f66434f
cmake
fceller Oct 26, 2013
6ae6ea4
moved to icu 52.1 for Mavericks
fceller Oct 26, 2013
d2fbe54
cosmetics
fceller Oct 26, 2013
ec495d0
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
fceller Oct 26, 2013
0a53768
added missing file
fceller Oct 26, 2013
32cc2ec
fixed var
fceller Oct 26, 2013
37e146b
added variables
fceller Oct 27, 2013
4c7405a
cosmetics
fceller Oct 27, 2013
53fbf9a
added variables
fceller Oct 27, 2013
3c65eae
added variables
fceller Oct 27, 2013
fa48b42
added variables
fceller Oct 27, 2013
d93a2be
added startup script
fceller Oct 27, 2013
bd0a027
use icu & v8 from 3rdParty
fceller Oct 27, 2013
fcbe746
added ARANGODB_ROOT
fceller Oct 27, 2013
d8dc0c0
fixed paths, added docs
fceller Oct 27, 2013
f5230ef
fixed paths (again)
fceller Oct 27, 2013
745eb9d
one that got away.... :D
frankmayer Oct 27, 2013
f9f1eaa
Merge pull request #644 from frankmayer/devel
fceller Oct 28, 2013
fb96642
issue #639: compiling v1.4 on maverick produces warnings on -Wstrict-…
jsteemann Oct 28, 2013
99906f3
manually merged PR from @frankmayer
jsteemann Oct 28, 2013
1c35baf
manually merged issue #643 by @frankmayer
jsteemann Oct 28, 2013
00b3f97
fixed jslint warnings
jsteemann Oct 28, 2013
a5191db
GraphViewer: Implemented Random Vertex on collection switch (#611)
mchacki Oct 28, 2013
dcff372
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
mchacki Oct 28, 2013
c02f006
some fixes for issue #642
jsteemann Oct 28, 2013
cb74f66
fixed memleak
jsteemann Oct 28, 2013
921f3f2
removed beta remark
fceller Oct 28, 2013
7f04a7e
issue #621: Standard Config needs to be fixed
jsteemann Oct 28, 2013
a60f7c2
fixed freeing of key
8000 jsteemann Oct 28, 2013
a768d6a
rc1
fceller Oct 28, 2013
21aea16
issue #620
jsteemann Oct 28, 2013
00e5ff1
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
jsteemann Oct 28, 2013
5d1e2bd
merging failed... angst
jsteemann Oct 28, 2013
8d01f63
remove unused method
jsteemann Oct 28, 2013
7672f5c
issue #647: fixed tooltips
jsteemann Oct 28, 2013
055d7b3
issue #646: index creation in web interface
jsteemann Oct 28, 2013
c15f420
updated CHANGELOG
jsteemann Oct 28, 2013
f9cb543
indenting
jsteemann Oct 29, 2013
7c287a6
issue #634: Web interface bug: Escape does not always propagate
jsteemann Oct 29, 2013
8f42303
issue #645: Allow jumping from edge to linked vertices
jsteemann Oct 29, 2013
6070fd7
issue #621: always print fatal error at the end
jsteemann Oct 29, 2013
12ca4c6
issue #648: /batch API is missing from Web Interface API Docummentati…
jsteemann Oct 29, 2013
3a10ad8
release version 1.4.0-rc1
fceller Oct 29, 2013
3bc6120
lol self
jsteemann Oct 29, 2013
2b6b5a6
fixed syntax error on Win
jsteemann Oct 29, 2013
7b955fc
Windows warnings
jsteemann Oct 29, 2013
a883c80
fixed a warning in Windows
jsteemann Oct 29, 2013
0b00f2c
tooltips
jsteemann Oct 29, 2013
04176c6
added DOCUMENT_HANDLE function
jsteemann Oct 29, 2013
921e44f
fixed small memleak
jsteemann Oct 29, 2013
67bd7a6
Merge remote-tracking branch 'origin/devel' into 1.4
fceller Oct 29, 2013
4100a53
release version 1.4.0
fceller Oct 29, 2013
9670f4a
fixed sed on Mac
fceller Oct 29, 2013
51f97a2
fixed build number
fceller Oct 29, 2013
0270a4f
1.5.devel
fceller Oct 29, 2013
d9280ce
fixed version
fceller Oct 29, 2013
d5f3f89
added 1.4
fceller Oct 29, 2013
cf74bb7
new version 1.5
fceller Oct 29, 2013
e59709a
updated documentation
jsteemann Oct 29, 2013
4c562a7
updated documentation
jsteemann Oct 29, 2013
2db69e2
issue #642
jsteemann Oct 29, 2013
b862775
fixed thread shutdown (double detach)
jsteemann Oct 29, 2013
533a1f4
added collection status "loading"
jsteemann Oct 29, 2013
f074b62
removed second logger implementation
jsteemann Oct 29, 2013
ee405b1
updated CHANGELOG
jsteemann Oct 29, 2013
cf2cc5c
simplify logging
jsteemann Oct 30, 2013
9c52c73
removed some old example files
jsteemann Oct 30, 2013
976ee76
removed --log.format command line option
jsteemann Oct 30, 2013
1f3f4ea
issue #424: Documentation about IDs needs to be upgraded
jsteemann Oct 30, 2013
2842eb9
updated docs
jsteemann Oct 30, 2013
226679f
removed eol option
jsteemann Oct 30, 2013
f86f837
added pretty print option
jsteemann Oct 30, 2013
8cb3434
added help text
jsteemann Oct 30, 2013
e7cdb16
print error details
jsteemann Oct 30, 2013
c95da02
show error details in arangoimp
jsteemann Oct 30, 2013
80f9437
issue #642: renamed macro from TRI_WARN_UNUSED to TRI_WARN_UNUSED_RESULT
jsteemann Oct 30, 2013
ee11fde
improve error message
jsteemann Oct 30, 2013
28d27a4
made AQL DOCUMENT function polymorphic
jsteemann Oct 30, 2013
63a2be9
issue #597: added more documentation
jsteemann Oct 30, 2013
3c1fdbb
allow dynamic parameters in DOCUMENT()
jsteemann Oct 30, 2013
f1f2070
fixed --javascript.check option for arangosh
jsteemann Oct 30, 2013
2dc61d8
more help
jsteemann Oct 30, 2013
267ba59
Paragraph on Foxx added
luebbert42 Oct 30, 2013
a1ca973
Merge pull request #649 from luebbert42/devel
jsteemann Oct 30, 2013
6d050b6
issue #650: Randonmess of any() should be improved
jsteemann Oct 31, 2013
715f795
windows fixes
jsteemann Oct 31, 2013
80d193e
updated Windows msi
jsteemann Oct 31, 2013
49350d9
Whitespace.
Oct 31, 2013
e7e47ce
Graph Module / Client: It has to send the ID, not the key
Oct 31, 2013
d9a14a8
Code Style
Oct 31, 2013
1c2b379
Graph Refactoring: Determination of ID pushed to Common
Oct 31, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated documentation
  • Loading branch information
jsteemann committed Oct 29, 2013
commit e59709ae0c752f3dc7ae20df2331ff76cc2421e1
305 changes: 241 additions & 64 deletions Documentation/Manual/Upgrading14.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,63 @@ Upgrading to ArangoDB 1.4 {#Upgrading14}
Upgrading {#Upgrading14Introduction}
====================================

1.4 is currently beta, please do not use in production.

Please read the following sections if you upgrade from a pre-1.4 version of ArangoDB
to ArangoDB 1.4.

ArangoDB 1.4 comes with a few changes, some of which are not 100% compatible to
ArangoDB 1.3. The incompatibilies are mainly due to the introduction of the multiple
databases feature and to some changes inside Foxx.
databases feature and to some changes inside Foxx. One change also affects AQL user-
defined functions, so if you use them in ArangoDB, please make sure to read @ref
Upgrade14AqlFunctions "this" too.

Following is a list of incompatible changes with workarounds. Please read the list
carefully and adjust any client programs or processes that work with ArangoDB
appropriately. Please also make sure to create a full backup of your existing ArangoDB
installation before performing an update.

The upgrading section is closed with an instruction summary and a list of potential
problems and @ref Upgrading14Troubleshooting "troubleshooting options" for them.
Please consult that section if you encounter any problems during or after the upgrade.

Database Directory Version Check and Upgrade {#Upgrading14VersionCheck}
-----------------------------------------------------------------------

ArangoDB will perform a database version check at startup. This has not changed in
ArangoDB 1.4. When ArangoDB 1.4 encounters a database created with earlier
versions of ArangoDB, it will refuse to start. This is intentional.
The output will then look like this:

2013-10-29T16:34:02Z [3927] INFO ArangoDB 1.4.0 -- ICU 49.1.2, V8 version 3.16.14.1, SSL engine OpenSSL 1.0.1e 11 Feb 2013
2013-10-29T16:34:02Z [3927] ERROR no databases found. Please start the server with the --upgrade option
2013-10-29T16:34:02Z [3927] ERROR unable to initialise databases: invalid database directory
2013-10-29T16:34:02Z [3927] FATAL cannot start server: invalid database directory

To make ArangoDB 1.4 start with a database directory created with an
earlier ArangoDB version, you may need to invoke the upgrade procedure once.
This can be done by running ArangoDB from the command line and supplying
the `--upgrade` option:

unix> arangod data --upgrade

where `data` is the database directory. This will run a database version and
any necessary migrations. As usual, you should create a backup of your database
directory before performing the upgrade.

The output should be something like this:

....
2013-10-29T16:35:01Z [3959] INFO In database '_system': starting upgrade from version 1.3 to 1.4.0
2013-10-29T16:35:01Z [3959] INFO In database '_system': Found 18 defined task(s), 5 task(s) to run
2013-10-29T16:35:01Z [3959] INFO In database '_system': Executing task #1 (moveProductionApps): move Foxx apps into per-database directory
2013-10-29T16:35:01Z [3959] INFO In database '_system': Task successful
...
2013-10-29T16:35:01Z [3959] INFO In database '_system': Task successful
2013-10-29T16:35:01Z [3959] INFO In database '_system': upgrade successfully finished
2013-10-29T16:35:01Z [3959] INFO database upgrade passed

Please check the output the `--upgrade` run. It may produce errors, which need to be
fixed before ArangoDB can be used properly. If no errors are present or they have been
resolved, you can start ArangoDB 1.4 regularly.

Filesystem layout changes {#Upgrading14FileSystem}
--------------------------------------------------
Expand Down Expand Up @@ -153,12 +202,149 @@ the database name as part of the URLs. Most clients will use just one database m
time, making it sufficient to set the database name when the connection to the server is
established and then prefixing all requests with the database name initially set.

Changed Behavior {#Upgrading14ChangedBehavior}
==============================================

Changed Namespace Separator for AQL user-defined Functions {#Upgrade14AqlFunctions}
-----------------------------------------------------------------------------------

The namespace resolution operator for AQL user-defined functions has been changed from
`:` to `::`.

AQL user-defined functions were introduced in ArangoDB 1.3, and the namespace resolution
perator for them has been the single colon (`:`) in 1.3. A call to a user-defined function
in an AQL query looked like this:

RETURN mygroup:myfunc()

The single colon caused an ambiguity in the AQL grammar, making it indistinguishable from
named attributes or the ternary operator in some cases, e.g.

{ mygroup:myfunc ? mygroup:myfunc }

To fix this ambiguity, the namespace resolution operator in 1.4 is changed from `:` to `::`,
so the above call will in 1.4 look like this:

RETURN mygroup::myfunc()

Names of existing user-defined AQL functions in the database will automatically be fixed
when starting ArangoDB 1.4 with the `--upgrade` option.

Still any AQL query strings assembled on the client side must be adjusted for use with 1.4
if they refer to AQL user-defined functions. If AQL queries stored in Foxx applications or
other server-side actions use the "old" function name sytanx, they must be adjusted manually,
too. These change should be simple to carry out (replacing the `:` in names of user-defined
functions with `::`) but cannot be done automatically by ArangoDB.

If function names are not changed in AQL queries, referring to a function using the old (`:`)
namespace operator is likely to cause a query parse error in 1.4.

The return value of the AQL `DOCUMENT` function is also changed in 1.4 when called with a
single argument (a document id or key) in case the sought document cannot be found.
In pre-1.4, the function returned `undefined` in this case. As `undefined` is not part of
the JSON type system, 1.4 now returns `null` for the same case. The return value for other
cases has not changed.

Changed Return Value of REST API method GET `/_api/collection/figures` {#Upgrade14ChangedFigures}
-------------------------------------------------------------------------------------------------

The value returned by the REST API method GET `/_api/collection/<collection-name>/figures` has
been extended in version 1.4 to also include the following attributes:

- `compactors`.`count`
- `compactors`.`fileSize`
- `shapefiles`.`count`
- `shapefiles`.`fileSize`

These attributes were not present in the return value in ArangoDB 1.3. Clients which rely on the
return value structure may need to be adjusted.

Removed Features {#Upgrading14RemovedFeatures}
==============================================

Removed or Renamed Configuration options {#Upgrading14RemovedConfiguration}
---------------------------------------------------------------------------

The following changes have been made in ArangoDB 1.4 with respect to
configuration / command-line options:

- The options `--server.admin-directory` and `--server.disable-admin-interface`
have been removed.

In previous versions of ArangoDB, these options controlled where the static
files of the web admin interface were located and if the web admin interface
was accessible via HTTP.
In ArangoDB 1.4, the web admin interface has become a Foxx application and
does not require an extra location.

- The option `--log.filter` was renamed to `--log.source-filter`.

This is a debugging option that should rarely be used by non-developers.

Other removed Features {#Upgrading14RemovedMisc}
------------------------------------------------

The action deployment tool available in ArangoDB 1.3 has been removed in
version 1.4. Installing actions can now be achieved easier by packaging them
in a Foxx application and deploying them with the `foxx-manager` binary.

Upgrade Checklist {#Upgrading14Checklist}
=========================================

Here is a checklist for the required upgrade steps. For more details please
consult the more detailed topics and the @ref Upgrading14Troubleshooting sections.

- Upgrade ArangoDB
- Stop _arangod_
- Create a full backup of your database directory
- Upgrade ArangoDB to 1.4 using package manager, homebrew, `git pull` etc.
- Adjust configuration file `arangod.conf`:
- Add option `--javascript.app-path` if not yet present (otherwise _arangod_
will refuse to start)
- Check if you want to set `--server.default-api-compatibility` to `10300` for
"old" client drivers
- Remove now superfluous configuration options `--server.admin-directory` and
`--server.disable-admin-interface`
- If required, start _arangod_ with the `--upgrade` option once and check the
output/logfile for any errors
- Upgrade clients/drivers
- Upgrade client drivers to a 1.4-compatible version if needed and if available
- When using AQL user-defined functions, adjust AQL function namespace separator
in queries/client code
- Upgrade Foxx applications
- When using Foxx application from ArangoDB 1.3, make sure to adjust the manifest
and the app/controller JavaScript files
- Restart _arangod_
- Check the output of _arangod_ and the server logfile for potential errors.

Troubleshooting {#Upgrading14Troubleshooting}
=============================================

If you cannot find a solution here, please ask the Google-Group at
http://groups.google.com/group/arangodb

Please make sure that you include the currently used ArangoDB version number plus the
version from which you upgrade in your post.
You can retrieve the current version number as follows:

unix> arangod --version

Problem: Server does not start
------------------------------

If the server complains about no databases being found at startup like this

2013-10-29T16:34:02Z [3927] ERROR no databases found. Please start the server with the --upgrade option
2013-10-29T16:34:02Z [3927] ERROR unable to initialise databases: invalid database directory
2013-10-29T16:34:02Z [3927] FATAL cannot start server: invalid database directory

the problem might be that an ArangoDB 1.4 server was started with database directory
created with an older version of ArangoDB. In this case it is necessary to start
ArangoDB with the `--upgrade` option once. If it still does not start, it may be necessary to
specifiy the `--javascript.app-path` option (see next item) when running `--upgrade`.
In case of errors, please also check ArangoDB's output or logfile for further details about
the problem.

Problem: Server does not start
------------------------------

Expand Down Expand Up @@ -200,6 +386,22 @@ the same IP address, so ArangoDB will try to bind to the same address twice
Other obvious bind problems at startup may be caused by ports being used by
other programs, or IP addresses changing.

Problem: Where can Example Configuration files for ArangoDB be found?
---------------------------------------------------------------------

Updating ArangoDB will likely not overwrite an existing ArangoDB configuration
file. If you have a configuration file from a previous ArangoDB version in use
already, you may need to adjust this file locally.

The most current configuration files for ArangoDB 1.4 can be found on Github
(look for files with file extension *.conf):

- for Linux & MacOS: https://github.com/triAGENS/ArangoDB/tree/1.4/etc/relative
- for Windows: https://github.com/triAGENS/ArangoDB/tree/1.4/VS2012/Installer

Please note that all these configuration files use relative paths that may
need to be adjusted to the absolute paths on your system.

Problem: Server returns different `location` headers than in 1.3
-----------------------------------------------------------------

Expand Down Expand Up @@ -270,79 +472,54 @@ can use a Bash script like this:
The above script should print out the names of all databases and collections
with their corresponding directory names.

Problem: AQL user-functions do not work anymore
-----------------------------------------------
Problem: AQL user-functions from 1.3 do not work anymore
--------------------------------------------------------

The namespace resolution operator for AQL user-defined functions has changed from `:`
to `::`. Names of user-defined function names need to be adjusted in AQL queries.
Please refer to @ref Upgrading14ChangedBehavior for details.

Changed Behavior {#Upgrading14ChangedBehavior}
==============================================

The namespace resolution operator for AQL user-defined functions has been changed from
`:` to `::`.
Problem: Foxx Applications from 1.3 are missing in 1.4
------------------------------------------------------

AQL user-defined functions were introduced in ArangoDB 1.3, and the namespace resolution
perator for them has been the single colon (`:`) in 1.3. A call to a user-defined function
in an AQL query looked like this:
The directory layout for Foxx applications got changed between ArangoDB 1.3 and 1.4.
In ArangoDB 1.4, Foxx applications need to placed in per-database directories which
were not present in 1.3. ArangoDB 1.4 will automatically move existing Foxx applications
into the required new structure if you start it with the `--upgrade` option and the
Foxx application directory `--javascript.app-path`. Please note that specifiying
`--javascript.app-path` is required in 1.4 anyway, so it is good to add this option
to your configuration file if not already done.

RETURN mygroup:myfunc()
Please read more about the 1.4 Foxx application directory layout @ref
Upgrading14FileSystem "here".

The single colon caused an ambiguity in the AQL grammar, making it indistinguishable from
named attributes or the ternary operator in some cases, e.g.
Problem: Foxx Applications from 1.3 do not work in 1.4
------------------------------------------------------

{ mygroup:myfunc ? mygroup:myfunc }
@ref UserManualFoxx "Foxx" was released in an alpha state with ArangoDB 1.3. It got more
stable over time, but some its internal APIs changed during the development of ArangoDB 1.4.

To fix this ambiguity, the namespace resolution operator in 1.4 is changed from `:` to `::`,
so the above call will in 1.4 look like this:
Foxx applications written for ArangoDB 1.3 need some modifications in order to work
properly with ArangoDB 1.4:
- in the manifest file of a Foxx application, please rename the `apps` attribute to
`controllers`.
- the `require` directive for the Foxx framework components changed between 1.3 and 1.4.
Whereas in 1.3 you could require `Foxx.Application`, in 1.4 you will need to require
`Foxx.Controller`:

RETURN mygroup::myfunc()
Please look out for all places like this in your 1.3 Foxx controller/application
files:

Names of existing user-defined AQL functions in the database will automatically be fixed
when starting ArangoDB 1.4 with the `--upgrade` option.
var FoxxApplication = require("org/arangodb/foxx").Application;
var app = new FoxxApplication();

Still any AQL query strings assembled on the client side must be adjusted for use with 1.4
if they refer to AQL user-defined functions. If AQL queries stored in Foxx applications or
other server-side actions use the "old" function name sytanx, they must be adjusted manually,
too. These change should be simple to carry out (replacing the `:` in names of user-defined
functions with `::`) but cannot be done automatically by ArangoDB.
and adjust them as follows for 1.4:

If function names are not changed in AQL queries, referring to a function using the old (`:`)
namespace operator is likely to cause a query parse error in 1.4.

The return value of the AQL `DOCUMENT` function is also changed in 1.4 when called with a
single argument (a document id or key) in case the sought document cannot be found.
In pre-1.4, the function returned `undefined` in this case. As `undefined` is not part of
the JSON type system, 1.4 now returns `null` for the same case. The return value for other
cases has not changed.

Removed Features {#Upgrading14RemovedFeatures}
==============================================

Removed or Renamed Configuration options {#Upgrading14RemovedConfiguration}
---------------------------------------------------------------------------

The following changes have been made in ArangoDB 1.4 with respect to
configuration / command-line options:

- The options `--server.admin-directory` and `--server.disable-admin-interface`
have been removed.

In previous versions of ArangoDB, these options controlled where the static
files of the web admin interface were located and if the web admin interface
was accessible via HTTP.
In ArangoDB 1.4, the web admin interface has become a Foxx application and
does not require an extra location.

- The option `--log.filter` was renamed to `--log.source-filter`.

This is a debugging option that should rarely be used by non-developers.

Other removed Features {#Upgrading14RemovedMisc}
------------------------------------------------

The action deployment tool available in ArangoDB 1.3 has been removed in
version 1.4. Installing actions can now be achieved easier by packaging them
in a Foxx application and deploying them with the `foxx-manager` binary.
var FoxxController = require("org/arangodb/foxx").Controller;
controller = new FoxxController(applicationContext);

You may also need to adjust the `setup` and `teardown` scripts if used. To check
for any errors after adjusting your Foxx application, you can start ArangoDB 1.4
in development mode using the `--javascript.dev-app-path` option. This will
either print or log (depending on configuration) errors occurring in Foxx
applications.
3 changes: 2 additions & 1 deletion Documentation/Manual/Upgrading14TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ TOC {#Upgrading14TOC}
=====================

- @ref Upgrading14Introduction
- @ref Upgrading14FileSystem
- @ref Upgrading14Databases
- @ref Upgrading14Troubleshooting
- @ref Upgrading14ChangedBehavior
- @ref Upgrading14RemovedFeatures
- @ref Upgrading14Troubleshooting
0