Harry Adel
63ce45c538
Split shared models from Meteor 3 server runtime
2026-03-24 01:50:39 +02:00
Harry Adel
2e3fbf25db
Meteor 3.4 migration: Convert allow/deny callbacks to async
...
Meteor 3.x supports async allow/deny callbacks. Convert all 25 sync
allow/deny callbacks across 23 model files to use async/await with
findOneAsync/fetchAsync instead of sync findOne/find().fetch().
Also converts helper functions in server/lib/utils.js:
- allowIsBoardMemberWithWriteAccessByCard -> async
- allowIsBoardMemberByCard -> async
- canUpdateCard (cards.js) -> async
- permissionHelper.allow (integrations.js) -> async
2026-03-22 17:44:29 +02:00
Harry Adel
b5782c7b86
Replace underscore with native JS in models
...
Largest changes in cards.js (~76 calls), boards.js (~38 calls),
and activities.js (~31 calls). Key patterns:
- _.contains -> .includes() with null guards where needed
- _.findWhere/_.where -> findWhere()/where() helpers
- _.pluck -> .map()
- _.union -> [...new Set()]
- _.extend -> Object.assign()
- _.each on objects -> Object.entries().forEach() (argument order swap)
- _.debounce -> debounce() helper
- _.groupBy/_.indexBy -> groupBy()/indexBy() helpers
- _.clone -> spread operator
- _.sortBy -> [...arr].sort()
- Type checks -> native typeof
2026-03-18 22:39:06 +02:00
Lauri Ojansivu
73eb98c57a
Fix GHSL-2026-044_Wekan.
...
Thanks to GHSL and xet7.
2026-02-19 23:40:56 +02:00
Harry Adel
e77be37450
Use sync code in allow/deny for 2.x
2026-02-19 00:26:47 +02:00
Harry Adel
71eb01e233
Update ReactiveCache call sites to use async/await for Meteor 3.0
...
Part 3 of ReactiveCache async migration:
- Add await before all ReactiveCache.getX() calls
- Make functions containing ReactiveCache calls async
- Convert forEach/map/filter loops with async callbacks to for...of
- Update model helpers, Meteor methods, JsonRoutes handlers
- Update collection hooks (.before/.after insert/update/remove)
- Update .allow() callbacks to async
Files updated across models/ and server/ directories:
- Model files: cards, boards, lists, swimlanes, activities, users,
checklists, checklistItems, customFields, attachments, integrations,
cardComments, settings files, creators, exporters, and more
- Server files: publications, methods, notifications, routes, migrations
2026-02-01 00:54:38 +02:00
Lauri Ojansivu
25eedd187e
Merge pull request #6093 from harryadel/createIndex-migration
...
Migrate createIndex to createIndexAsync
2026-01-24 02:04:35 +02:00
Harry Adel
ca2083c858
Migrate createIndex to createIndexAsync
2026-01-24 01:55:29 +02:00
Harry Adel
94a3575e2c
Replace mquandalle:collection-mutations with collection helpers
2026-01-21 19:22:54 +02:00
Jakub Jurczyk
7865368153
Fix return value of edit_custom_field_dropdown_item
2023-08-02 14:11:47 +02:00
Martin Filser
f83ee124d0
Move every Boards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
2023-07-18 21:25:29 +02:00
Martin Filser
981a641bce
Move every CustomFields.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
2023-07-18 21:25:28 +02:00
Martin Filser
08e3ca3435
Move every Activities.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
2023-07-18 21:25:28 +02:00
Martin Filser
806ad78637
Move every CustomFields.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
2023-07-18 21:25:28 +02:00
Martin Filser
3b65113d05
Move every Cards.findOne() to the ReactiveCache
2023-07-18 21:25:28 +02:00
Martin Filser
a182482cfb
Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)
2023-07-18 21:25:28 +02:00
Lauri Ojansivu
8092f8be28
Try to fix User API.
...
Thanks to xet7 !
Fixes #4039
2023-01-13 21:50:39 +02:00
Lauri Ojansivu
c926475eb1
Fixed _ensureIndex to createIndex for MongoDB 5. Updated to latest Meteor beta.
2022-04-18 18:08:12 +03:00
Lauri Ojansivu
e3a0dea85f
Fixed REST API, it shoud work now by Admin user.
...
Reverted Allow board members to use more of API of Wekan v5.35
https://github.com/wekan/wekan/commit/a719e8fda1f78bcbf9af6e7b4341f8be1d141e90
Thanks to tomhughes.
Fixes #4009 ,
fixes #2793 ,
fixes #2790
2021-09-25 18:09:18 +03:00
Lauri Ojansivu
8626b466b8
Sum of cards. In Progress.
...
Thanks to xet7 !
Related #3796
2021-09-08 15:55:53 +03:00
Lauri Ojansivu
164b6e9070
Part 2: Allow board members to use more of API. Please add issue (or pull request) if this allows too much.
...
Thanks to JayVii and xet7 !
Fixes #3862
2021-06-14 15:13:15 +03:00
Lauri Ojansivu
a719e8fda1
Allow board members to use more of API. Please add issue (or pull request) if this allows too much.
...
Thanks to JayVii and xet7 !
Fixes #3862
2021-06-14 15:01:37 +03:00
tod31
3778a9ebcf
add configuration field for separator
2021-04-09 11:46:07 +02:00
tod31
b8dc7ff18e
add custom field "stringtemplate"
2021-04-09 11:44:49 +02:00
Lauri Ojansivu
0bb3b67075
Fixed generating API docs and Wekan Custom Fields REST API.
...
Thanks to xet7 !
2021-03-07 17:57:24 +02:00
Louis Orleans
9cbef4ba4b
🔒 fix warning from deepcode
2021-02-20 14:11:17 -08:00
Louis Orleans
24035329b8
✨ edit custom field dropdown item
2021-02-20 13:50:24 -08:00
Louis Orleans
457977f954
✨ add and remove dropdown items
2021-02-20 12:46:29 -08:00
Louis Orleans
373dc5cadb
⏪ Revert "🎨 format with Prettier"
...
This reverts commit a35cfe660e .
2021-02-20 09:27:33 -08:00
Louis Orleans
a35cfe660e
🎨 format with Prettier
2021-02-20 09:02:36 -08:00
Louis Orleans
db666eec65
🐛 fix updating fields
2021-02-20 09:02:12 -08:00
Louis Orleans
586473aaa7
✨ add custom field edit REST API
2021-02-19 11:21:13 -08:00
John R. Supplee
0adde3e06d
Fix Wekan JSON import bug
...
If not all users are mapped the import crashes.
2021-01-28 00:44:48 +02:00
John R. Supplee
74d93a6adc
Option to add custom field to all cards
2021-01-22 21:28:37 +02:00
John R. Supplee
c89a0eb694
Initial work on import of custom fields from Trello
...
* start adding import functionality
* Add checkbox type to customFields
2021-01-18 16:41:35 +02:00
Lauri Ojansivu
3b2b108744
Fix: Unable to delete a custom field in a board.
...
Thanks to xet7 !
Fixes #2605
2020-06-16 19:55:56 +03:00
Haben Amare
8732e4b18f
use Intl.NumberFormat to format currency
2020-05-25 22:05:06 +00:00
Haben Amare
3cf6ed916f
add the 'currency' custom field type
2020-05-25 22:02:51 +00:00
Justin Reynolds
3b9f2ca7c2
Fixes #2596 incorrect date types for created & updated
2019-09-05 12:29:45 -05:00
James Byrne
851246a59b
Updated insert action for CustomFields API
2019-08-12 17:47:04 +01:00
Lauri Ojansivu
2003d90467
Outgoing Webhooks setCustomField: Add board name, card name, custom field name to be visible.
...
Still missing: custom field value, list name, swimlane name.
Thanks to xet7 !
2019-07-10 17:46:07 -04:00
Justin Reynolds
3eb4d2c341
Prettier & eslint project style update
2019-06-28 12:56:51 -05:00
Justin Reynolds
c60e80d25b
Add createdAt and modifiedAt to all collections
2019-06-27 09:13:20 -05:00
Lauri Ojansivu
5283ba9ebb
- Fix Outgoing Webhook messages for Checlists, Checklist Items, Card comments, Add/Remove CustomField to board.
...
Not yet fixed is Outgoing Webhook message about setting CustomField value.
Thanks to xet7 !
Related #1969
2019-06-27 04:06:21 +03:00
Andrés Manelli
d01fccd949
- Fix card copy & move between boards with customFields
...
- Fix card copy & move between boards with labels with same name
- Fix activities for labels when copying and moving card
- Fix activities for customFields when copying and moving card
2019-03-16 22:49:45 +01:00
Andrés Manelli
4cd0d1c397
Migrate customFields
2019-03-16 22:49:45 +01:00
Justin Reynolds
3c49e2d0ed
Performance Enhancements
2019-02-28 11:44:29 -06:00
Benjamin Tissoires
ff467402c0
RESTAPI: Add some JSDoc
...
So we can have a decent REST API documentation generated.
2019-01-18 17:02:56 +01:00
Nunes Nelson
a82aa87850
custom fields upgrade
2018-11-05 21:46:57 +01:00
Benjamin Tissoires
53c8e63a09
models: customFields: fix GET api
...
Calling GET on /api/board/XXXX/customfields
returns a 500 error:
TypeError: Converting circular structure to JSON
2018-10-23 18:48:01 +02:00