Commit graph

131 commits

Author SHA1 Message Date
feaf66fe34 meteor3: web Fires publications to async (findOneAsync/countAsync/awaited firesUnion)
fireFromId, fireFromAlertId, fireFromActiveId and fireFromHash now use the
async collection APIs and async publish handlers (so try/catch catches
rejections). falsePositivesMyloc/industriesMyloc/comments.forReference are
cursor-only and needed no change. Verified over raw DDP against the seeded
dev Mongo 7; REST smoke stays byte-identical (12/12).
2026-07-14 06:52:08 +02:00
637a749e8d meteor3: REST API async migration COMPLETE — smoke green on Meteor 3.1 + Mongo 7
All 12 Flutter REST endpoints byte-identical to the 1.6.1.1 baseline, running on
Meteor 3.1 against dockerized MongoDB 7. The 3.x jump works end-to-end.

- Rest.js: every endpoint action -> async; all Mongo calls -> *Async
  (findOneAsync/countAsync/fetchAsync/upsertAsync/removeAsync).
- Helpers to async: countRealFires (accepts array|cursor, forEachAsync->for-of),
  firesUnion (fetchAsync), fireFromHash/findOrCreateFire (await, dropped Fibers
  Promise.await), subscriptionsInsert/subscriptionsRemove, upsertFalsePositive,
  falsePositives.insert, subscriptions.update method, countFiresInRegions.
- getFires: countAsync() on a $near cursor throws on the mongodb 6 driver
  ($near not allowed in the aggregation countDocuments uses) -> fetch once and
  use array length for total.
- Route order: json-routes 3.0 matches in registration order, so
  mobile/subscriptions/all/:token/:mobileToken is now registered BEFORE
  :token/:mobileToken/:subsId (else GET .../all/x/y hit the delete-only route).
2026-07-14 06:21:35 +02:00
cd570b9d9c escala 2+3: Meteor 1.8.3 -> 2.3 (Mongo 3.2 compatible), dead-package remediation
Reaches Meteor 2.3 building + running against Mongo 3.2, REST smoke test
byte-identical to the 1.6.1.1 baseline (all 12 Flutter endpoints green).

Dead/abandoned Atmosphere packages removed or replaced (the upgrade blockers):
- arkham:comments-ui (no Meteor 2.x build; pinned accounts-password@1.x):
  reimplemented the fire-page comments as a React feature:
    imports/api/Comments/ (collection, server methods, publication, media
    analyzers, new-fire-comment email) + imports/ui/components/Comments/CommentsBox.
    Comment text now rendered as safe plain text + image/youtube embed (was
    markdown-to-HTML). Wired into Fires.js; sitemaps.js + migration v11 updated
    to the new collection. Old Blaze/startup comments files deleted.
- nimble:restivus (REST API; pinned accounts-password@1.3.3, CoffeeScript source
  that crashes this build host): vendored as a local package
  packages/nimble-restivus with the .coffee precompiled to plain JS and the
  accounts-password constraint loosened to 2.x. REST behavior unchanged
  (verified by smoke test). This also dropped the entire iron:router stack.
- maximum:server-transform (+ peerlibrary:*, meteorhacks:zones/inject-initial):
  unused; removal broke Meteor.publishTransformed in FalsePositives publications
  -> replaced with plain Meteor.publish (no transform was configured).
- less, markdown (no source files), and the dead test stack
  (meteortesting:mocha, practicalmeteor:chai, xolvio:cleaner) which transitively
  pulled coffeescript@1.0.17 — the build plugin that crashed meteor-tool
  (node_contextify assertion) on this machine. Removing it unblocked the build.
- fourseven:scss 4.5.4 -> 4.14.1 (node-sass 4.5.3 doesn't build on node 12).

npm-mongo driver at 2.3 is 3.9.x — still compatible with the production Mongo
3.2 replica set.
2026-07-13 22:24:09 +02:00
2a31435135 Refactor server startup: elimina segfaults, añade leaflet-workaround
Retira import './segfaults' (workaround de crash obsoleto) y añade
leaflet-workaround.js (shims global window/document/navigator para
render de Leaflet en servidor). Ajustes menores en publications de
FalsePositives y subsUnion.
2026-07-12 23:26:16 +02:00
vjrj
b9457fe141 Minor changes in fires union 2018-12-23 13:31:41 +01:00
vjrj
df51368d50 Better log in error 2018-11-18 15:05:04 +01:00
vjrj
266707052c Better error message 2018-11-18 14:27:34 +01:00
vjrj
6abe668740 Added fires union (wip) 2018-11-18 11:48:03 +01:00
vjrj
7b5f17fbe8 Added activeFiresUnion (wip) 2018-10-28 20:27:38 +01:00
vjrj
df47bef794 Fix API now using track 2018-09-15 10:27:03 +02:00
vjrj
a208eb7ea1 More work with unify, circle/square 2018-09-11 11:40:17 +02:00
vjrj
f9febb4415 Added fire type to REST call 2018-08-22 08:10:35 +02:00
Vicente J. Ruiz Jurado
3defbb01a2 Fix for false positive rest call 2018-08-15 06:18:51 +02:00
Vicente J. Ruiz Jurado
bbdc53bda1 More logs in Rest 2018-08-11 08:15:04 +02:00
Vicente J. Ruiz Jurado
8a741dc729 Adding log to false positive 2018-08-10 11:12:33 +02:00
Vicente J. Ruiz Jurado
15ed7e917a Adding log to false positive 2018-08-10 09:07:05 +02:00
Vicente J. Ruiz Jurado
759797e412 Fix for rest method for false positive stats when no fires 2018-08-08 08:42:52 +02:00
Vicente J. Ruiz Jurado
5e6271bb88 Trying to fix fireToHash func export 2018-08-05 10:58:35 +02:00
Vicente J. Ruiz Jurado
5429dfbc04 bind publish 2018-08-05 10:44:17 +02:00
Vicente J. Ruiz Jurado
9556bf4e60 New rest methods (subs-union, falsePositive) for mobile 2018-08-05 09:36:18 +02:00
Vicente J. Ruiz Jurado
bf926514c9 Mobile notifications 2018-08-02 12:42:19 +02:00
vjrj
47e9c18607 More work in REST api deletion 2018-06-19 10:49:53 +02:00
vjrj
5642b106d4 Improved rest api calls 2018-06-19 00:18:18 +02:00
vjrj
5b3d86e6a5 Changed rest params in subs 2018-06-18 11:58:04 +02:00
vjrj
b8ab47e867 Improvements in REST API 2018-06-15 06:39:09 +02:00
vjrj
a48da85ebe More REST calls 2018-06-14 20:35:41 +02:00
vjrj
1de7e4a7b3 Proper error codes 2018-06-14 19:48:48 +02:00
vjrj
eebbdda064 Rest api updated 2018-06-14 17:55:38 +02:00
vjrj
f144c986b7 Added fire stats in zone to API 2018-05-20 17:45:25 +02:00
vjrj
f65c1ee614 Added raven logger to wrong files 2018-05-10 11:06:41 +02:00
vjrj
b7930eeb0e More logs when fire decoding fails 2018-05-10 09:52:30 +02:00
vjrj
2d19778553 Fallback moved. Index points to telegran en bot 2018-05-10 09:00:05 +02:00
vjrj
03acf8ba65 Fix for firestats increased by one 2018-05-05 09:01:34 +02:00
vjrj
88a3eb9639 Adjusts in tweet texts 2018-05-04 11:27:12 +02:00
vjrj
032f6939f6 Remove tweet sample in dev 2018-05-03 20:33:02 +02:00
vjrj
56eccab054 Fix LocationSchema checks 2018-05-03 12:08:00 +02:00
vjrj
7bb004cdd2 Improved tweets when many fires 2018-05-02 19:03:30 +02:00
vjrj
cd63f88e72 Improved tweet sizes 2018-05-02 17:44:33 +02:00
vjrj
e60adc574b Fix server import 2018-04-27 20:05:38 +02:00
vjrj
a4053e6dcd Added debug to countFires 2018-04-27 17:32:03 +02:00
vjrj
4bdebc0af4 Added raven to countFires 2018-04-27 17:31:53 +02:00
vjrj
ed42d3d5ac Dev log 2018-04-19 12:52:45 +02:00
vjrj
8941d6e54e Users schema roles fix after update 2018-04-12 17:42:06 +02:00
vjrj
1eb6e45dfe Added EU fire stats tweets 2018-03-22 17:42:13 +01:00
vjrj
452f6baf45 Last fire detected 2018-03-22 16:38:27 +01:00
vjrj
9ee01a6ef8 Improved autonomies names, cron job return 2018-03-22 09:38:40 +01:00
vjrj
de7c56d99b Improved autonomies names 2018-03-22 09:09:53 +01:00
vjrj
681c70f80c Better calculation of fires in tweets 2018-03-22 08:47:24 +01:00
vjrj
a326000474 Remove space in tweets 2018-03-18 20:31:20 +01:00
vjrj
0c56bcf7e0 Added cron tweets for active fires in 'es' and 'pt' 2018-03-17 20:06:00 +01:00