117 Commits

Author SHA1 Message Date
Andy Gup
d62b828196 1st pass at tpklayer spec 2014-05-22 14:17:54 -06:00
Javier Abadia
a201620e26 fixed offline attachments unit tests (proxy thing) 2014-04-29 00:13:19 +02:00
Javier Abadia
afaa82d0d2 check for blob url in the locally stored attachments 2014-04-27 22:37:24 +02:00
Javier Abadia
9eb96ccd98 need to test with real attachment files now 2014-04-27 22:37:23 +02:00
Javier Abadia
f1f8111e50 delete of local attachments implemented 2014-04-27 01:15:07 +02:00
Javier Abadia
b58ba99d8a delete attachments of those features that are deleted offline 2014-04-27 00:08:48 +02:00
Javier Abadia
d681022d0a refactored attachmentsStore into offlineFeaturesManager (and not in each layer) 2014-04-15 14:09:15 +02:00
Javier Abadia
53da2e734a added getAllAttachments() method 2014-04-15 14:08:04 +02:00
Javier Abadia
12be0cd6d6 now we can upload attachments and delete them from indexeddb afterwards 2014-04-15 12:30:30 +02:00
Javier Abadia
d92acc87b3 implemented delete() method 2014-04-15 12:01:07 +02:00
Javier Abadia
9470f24990 now, uploading attachments works (not complete) 2014-04-15 11:46:38 +02:00
Javier Abadia
363396faea fixed getAttachmentsByFeatureLayer() to support negative featureIds
fixed replaceFeatureId() method to allow changes to be really written
2014-04-15 11:45:09 +02:00
Javier Abadia
fda270c218 almost working for uploading new attachments 2014-04-14 18:31:29 +02:00
Javier Abadia
db7f2b1f45 add getAttachmentsByFeatureLayer() method to attachmentsStore 2014-04-14 18:00:04 +02:00
Javier Abadia
0f76800d34 allow time for changes to persist 2014-04-14 17:42:12 +02:00
Javier Abadia
25d427faaf added replaceFeatureId() method to low level attachmentsStore module 2014-04-14 17:34:41 +02:00
Javier Abadia
20578f3bf3 more unit testing 2014-04-14 13:38:58 +02:00
Javier Abadia
f57f22dd7a keep working in attachment unit tests 2014-04-14 12:11:36 +02:00
Javier Abadia
6638bd9a0f Merge branch 'jabadia-attachments' of github.com:jabadia/offline-editor-js into jabadia-attachments 2014-04-14 11:25:22 +02:00
Javier Abadia
701789f6ad moved attachments testing into separate test suite 2014-04-10 23:10:13 +02:00
Javier Abadia
9ca50f6f00 started writing unit tests for attachment management 2014-04-10 22:48:46 +02:00
Javier Abadia
d93ff253da new method to delete all attachments of a feature 2014-04-10 22:48:46 +02:00
Javier Abadia
74d6ec5563 store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-10 22:48:45 +02:00
Javier Abadia
a1225faaac noticed a potential problem if we have multiple input nodes or multiple files 2014-04-10 22:48:45 +02:00
Javier Abadia
e13b12904d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-10 22:48:45 +02:00
Javier Abadia
1de689bf3d delete all attachments after testing 2014-04-10 22:48:44 +02:00
Javier Abadia
7795fe0235 changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API 2014-04-10 22:48:44 +02:00
Javier Abadia
6569b8353e unit testing fo attachmentsStore.js 2014-04-10 22:48:44 +02:00
Javier Abadia
a36aa531a3 started writing unit tests for attachment management 2014-04-10 00:20:52 +02:00
Javier Abadia
0d66b7e4c9 new method to delete all attachments of a feature 2014-04-09 23:19:23 +02:00
Javier Abadia
d6b6af7c0b store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-09 18:10:44 +02:00
Javier Abadia
3f8273be9e noticed a potential problem if we have multiple input nodes or multiple files 2014-04-09 18:10:43 +02:00
Javier Abadia
989de0688d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-09 18:10:42 +02:00
Javier Abadia
f0f50a354e delete all attachments after testing 2014-04-09 18:10:41 +02:00
Javier Abadia
c50559a575 changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API 2014-04-09 18:10:40 +02:00
Javier Abadia
c650761c7f unit testing fo attachmentsStore.js 2014-04-09 18:10:38 +02:00
Javier Abadia
be8c36f827 add test for duplicate tile store 2014-04-04 00:34:54 +02:00
andygup
77aba43e5b validate if urls are actual urls 2014-03-31 17:33:59 -06:00
andygup
1ceb0dabac updated spec to include two new helper methods 2014-03-30 17:31:16 -06:00
Javier Abadia
2e766176b0 Convert offlineTileEnabler to a Class
closes #124
2014-03-02 17:50:53 +01:00
andygup
6eb12ebd12 fixes default proxy paths. 2014-02-26 13:41:45 -07:00
andygup
60c13f494e fixes some breaking changes from last nights PR 2014-02-25 09:46:35 -07:00
andygup
e030934ca8 updated tileEnabler spec to 3.8 2014-02-21 18:17:43 -07:00
andygup
7e5a2c477b fixed "gets level estimation" spec. Working again. 2014-02-20 16:40:02 -07:00
Javier Abadia
bf3e419b05 changed name of private methods 2014-02-18 10:30:05 +01:00
Javier Abadia
8d7ef26efc renamed offlineEnabler to offlineTilesEnabler 2014-02-18 09:21:11 +01:00
Javier Abadia
90afc39446 removed unused unit tests 2014-02-17 23:50:55 +01:00
Javier Abadia
c597111832 tool to test localStorage full condition 2014-02-14 14:11:23 +01:00
Javier Abadia
535e2c3d06 update unit test 2014-02-11 22:57:06 +01:00
Javier Abadia
08a97f2c7b trying to catch quota errors at application level... not that easy! 2014-02-11 22:40:17 +01:00