You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst we want to add certain helpers to reduce code complexity and code duplication conscious we don't want to turn the migration scripts into constant helper functions, so wanted to have an open issue for anybody to add any ideas they have for potential helper functions, or any ideas on ways we can replicate these with the likes of lodash in scripts rather than adding helper functions.
Please consider only adding helpers with the greatest utility - the more helpers we have the harder it is to read the migration scripts. Reducing repetition here is not necessarily a benefit. Keep it simple, use straightforward javascript. Repeat things inside a readable number of lines to reduce scrolling, such that other people can read your describe blocks and mutations without needing wider context. Rely on others documented code.
These helpers, for example, exist in lodash, which can be imported using import _ from 'lodash';
Whilst we want to add certain helpers to reduce code complexity and code duplication conscious we don't want to turn the migration scripts into constant helper functions, so wanted to have an open issue for anybody to add any ideas they have for potential helper functions, or any ideas on ways we can replicate these with the likes of lodash in scripts rather than adding helper functions.
The ones currently identified are:
Feel free to either edit this issue to add ideas or comment below.
The text was updated successfully, but these errors were encountered: