Naz
4300f14d79
Removed hidden row mapping in csv parser
...
refs https://github.com/TryGhost/Toolbox/issues/430
refs https://github.com/TryGhost/Ghost/issues/14882
- Having an explicit mappings passed into the members CSV parser makes it easier to control and understand the transforms for package clients
- Eventually the parser will receive a strict map with the fields it should parse - skipping all unknown & unmapped fields
2022-10-19 18:10:40 +08:00
Naz
971a562b46
Added JSDoc to members csv parser
...
refs https://github.com/TryGhost/Toolbox/issues/430
- Typings make developer's life nicer
2022-10-19 18:10:40 +08:00
Naz
1c746c0ca0
Added test coverage for 'subscribed' transform
...
refs https://github.com/TryGhost/Toolbox/issues/430
- Not having any extra logic in the mapper will allow to have a generalized "mapping" concept for CSV input serialization
- This is groundwork for stricter header value filtering on the parsing stage
2022-10-19 18:10:40 +08:00
Naz
bc70835890
Increased test coverage
...
refs https://github.com/TryGhost/Toolbox/issues/430
- The bonus of using the module exports file is that it also gets included in the test coverage statistics ^_^
2022-10-19 18:10:40 +08:00
renovate[bot]
e9587e02d0
Update dependency mocha to v10.1.0
2022-10-17 08:41:28 +00:00
Naz
5b8b18ded1
Moved csv parser utility method
...
refs https://github.com/TryGhost/Toolbox/issues/430
- The 'readCSV' method was only exposed to be used in the unit tests. To keep the module code to the minimum moved readCSV to the unit test itself - the only place where it's used and belongs to.
2022-10-13 09:53:16 +08:00
renovate[bot]
2c2ee81adb
Update Test & linting packages
2022-10-05 00:36:08 +00:00
Simon Backx
7a565d4892
🐛 Fixed duplicate error columns in members import error CSV
...
fixes https://github.com/TryGhost/Team/issues/1911
Kept on creating a new error column when unparsing the error list. So for every error we would create a new column when it was already added.
2022-09-16 11:02:22 +02:00
Daniel Lockyer
54aa9f016b
Fixed full Admin test suite running during unit tests
...
- because of how the npm scripts were set up, we were running the full
Admin integration tests during the unit tests phase of CI
- this commit renames the majority of `test` to `test:unit` in the
package.json files, and aliases `test` to `test:unit`
- special packages like Admin have no-op'd `test:unit` scripts so we
don't end up running its tests
2022-08-15 15:34:52 +02:00
Daniel Lockyer
308a28d31a
Tidied up package READMEs
...
refs https://github.com/TryGhost/Toolbox/issues/354
- these READMEs were migrated over from when each package was in a
different repo
- they also assume you're going to be publishing the packages because it
mentions install instructions
- only a few of them contain custom content
- this commit deletes the majority of these files because they're now
not useful
- any that contained other instructions have been cut down
2022-07-25 15:17:12 +02:00
Daniel Lockyer
61125d7605
Removed repository
from component package.json files
...
refs https://github.com/TryGhost/Toolbox/issues/354
- these repository links made sense when they were in different repos
and published to NPM but we don't publish these packages any more
- this commit deletes those keys from the files
2022-07-25 11:15:16 +02:00
Daniel Lockyer
d73d7da7ef
Deleted non-root LICENSE files
...
- these were copied over during the monorepo conversion but we're not
going to be publishing these packages so the top-level LICENSE file
covers all packages here
2022-07-25 08:35:59 +02:00
renovate[bot]
c34edc9f26
Pin dependency pump to 3.0.0
2022-07-21 18:04:31 +00:00
renovate[bot]
d228144c27
Pin dependencies
2022-07-21 16:27:57 +02:00
Daniel Lockyer
48fd5ca8cb
Removed posttest linting step
...
- linting is done as a separate step in CI and it's a git hook upon
pushing locally, so we don't need to run it after tests
2022-07-21 10:09:36 +02:00
Daniel Lockyer
9ec83a6e21
Disabled publishing for Members packages
...
- we don't want to publish these anymore so this commit disables the
ability to
- also fixes up a missing version that wasn't reset
2022-07-21 09:26:04 +02:00
Daniel Lockyer
376ee24600
Switched to unversioned Members packages
...
- these packages are split apart for local development, but will be
bundled into Ghost when publishing
- therefore, these packages won't be published so we are resetting the
versions to make them cleaner
2022-07-21 09:15:29 +02:00
renovate[bot]
bc4aebf163
Update Test & linting packages
2022-07-19 18:55:22 +00:00
Simon Backx
90fc7f5064
Published new versions
...
- @tryghost/members-csv@1.2.16
- @tryghost/members-importer@0.5.15
2022-05-19 18:11:03 +02:00
Simon Backx
70229e4fd3
Fixed members-csv not using renamed tiers field
2022-05-19 18:09:50 +02:00
Fabien "egg" O'Carroll
c41f067ea8
Published new versions
...
- @tryghost/domain-events@0.1.14
- @tryghost/express-dynamic-redirects@0.2.13
- @tryghost/magic-link@1.0.26
- @tryghost/member-analytics-service@0.1.16
- @tryghost/member-events@0.4.6
- @tryghost/members-analytics-ingress@0.1.17
- @tryghost/members-api@8.0.0
- @tryghost/members-csv@1.2.15
- @tryghost/members-events-service@0.4.3
- @tryghost/members-importer@0.5.14
- @tryghost/members-ssr@1.0.28
- @tryghost/members-offers@0.11.6
- @tryghost/members-payments@0.3.6
- @tryghost/members-stripe-service@0.10.5
- @tryghost/verification-trigger@0.2.5
2022-05-16 19:29:05 +01:00
Renovate Bot
a599830920
Update dependency c8 to v7.11.3
2022-05-16 05:20:36 +00:00
Aileen Nowak
152a2ea41f
Published new versions
...
- @tryghost/domain-events@0.1.13
- @tryghost/express-dynamic-redirects@0.2.12
- @tryghost/magic-link@1.0.25
- @tryghost/member-analytics-service@0.1.15
- @tryghost/member-events@0.4.5
- @tryghost/members-analytics-ingress@0.1.16
- @tryghost/members-api@7.0.1
- @tryghost/members-csv@1.2.14
- @tryghost/members-events-service@0.4.2
- @tryghost/members-importer@0.5.13
- @tryghost/members-ssr@1.0.27
- @tryghost/members-offers@0.11.5
- @tryghost/members-payments@0.3.5
- @tryghost/members-stripe-service@0.10.4
- @tryghost/verification-trigger@0.2.4
2022-05-10 11:40:41 -04:00
Renovate Bot
7af0eb6fdf
Update dependency sinon to v14
2022-05-09 04:41:01 +00:00
Simon Backx
0111e23fb7
Published new versions
...
- @tryghost/domain-events@0.1.12
- @tryghost/express-dynamic-redirects@0.2.11
- @tryghost/magic-link@1.0.24
- @tryghost/member-analytics-service@0.1.14
- @tryghost/member-events@0.4.4
- @tryghost/members-analytics-ingress@0.1.15
- @tryghost/members-api@6.3.1
- @tryghost/members-csv@1.2.13
- @tryghost/members-events-service@0.4.1
- @tryghost/members-importer@0.5.12
- @tryghost/members-ssr@1.0.26
- @tryghost/members-offers@0.11.4
- @tryghost/members-payments@0.3.4
- @tryghost/members-stripe-service@0.10.3
- @tryghost/verification-trigger@0.2.3
2022-05-03 16:40:39 +02:00
Renovate Bot
bddc9a5159
Update dependency c8 to v7.11.2
2022-05-02 21:39:21 +00:00
Fabien "egg" O'Carroll
b8545d2912
Published new versions
...
- @tryghost/domain-events@0.1.11
- @tryghost/express-dynamic-redirects@0.2.10
- @tryghost/magic-link@1.0.23
- @tryghost/member-analytics-service@0.1.13
- @tryghost/member-events@0.4.3
- @tryghost/members-analytics-ingress@0.1.14
- @tryghost/members-api@6.3.0
- @tryghost/members-csv@1.2.12
- @tryghost/members-events-service@0.4.0
- @tryghost/members-importer@0.5.11
- @tryghost/members-ssr@1.0.25
- @tryghost/members-offers@0.11.3
- @tryghost/members-payments@0.3.3
- @tryghost/members-stripe-service@0.10.2
- @tryghost/verification-trigger@0.2.2
2022-05-02 19:11:55 +01:00
Renovate Bot
cddf87863e
Update dependency mocha to v10
2022-05-02 02:29:13 +00:00
Simon Backx
a0a50f7acc
Published new versions
...
- @tryghost/domain-events@0.1.10
- @tryghost/express-dynamic-redirects@0.2.9
- @tryghost/magic-link@1.0.22
- @tryghost/member-analytics-service@0.1.12
- @tryghost/member-events@0.4.2
- @tryghost/members-analytics-ingress@0.1.13
- @tryghost/members-api@6.2.0
- @tryghost/members-csv@1.2.11
- @tryghost/members-events-service@0.3.4
- @tryghost/members-importer@0.5.9
- @tryghost/members-ssr@1.0.24
- @tryghost/members-offers@0.11.2
- @tryghost/members-payments@0.3.2
- @tryghost/members-stripe-service@0.10.1
- @tryghost/verification-trigger@0.2.1
2022-04-27 19:08:40 +02:00
Renovate Bot
a49bb037c4
Update Test & linting packages
2022-04-27 12:16:56 +00:00
Rishabh
0e09a57971
Published new versions
...
- @tryghost/express-dynamic-redirects@0.2.8
- @tryghost/members-api@5.5.0
- @tryghost/members-csv@1.2.10
- @tryghost/members-events-service@0.3.3
- @tryghost/members-importer@0.5.7
- @tryghost/members-stripe-service@0.9.3
2022-04-04 21:08:04 +05:30
Daniel Lockyer
b84e54b0cf
Unpinned dependencies
...
- libraries should have dependencies unpinned so we can rely on
lockfiles and reduce duplicates
- this commit unpins a handful of dependencies
2022-03-24 11:06:57 +00:00
Thibaut Patel
84bbcbb057
Published new versions
...
- @tryghost/members-api@5.4.1
- @tryghost/members-csv@1.2.9
- @tryghost/members-importer@0.5.6
- @tryghost/members-stripe-service@0.9.2
2022-03-23 11:26:35 +01:00
Simon Backx
2cab543473
Published new versions
...
- @tryghost/members-api@5.4.0
- @tryghost/members-csv@1.2.8
- @tryghost/members-importer@0.5.5
2022-03-18 16:38:42 +01:00
Renovate Bot
e1d6fc4ed4
Update dependency papaparse to v5.3.2
2022-03-15 13:08:41 +00:00
Thibaut Patel
c37021c575
Published new versions
...
- @tryghost/domain-events@0.1.9
- @tryghost/express-dynamic-redirects@0.2.7
- @tryghost/magic-link@1.0.21
- @tryghost/member-analytics-service@0.1.11
- @tryghost/member-events@0.4.1
- @tryghost/members-analytics-ingress@0.1.12
- @tryghost/members-api@5.3.0
- @tryghost/members-csv@1.2.7
- @tryghost/members-events-service@0.3.2
- @tryghost/members-importer@0.5.4
- @tryghost/members-ssr@1.0.23
- @tryghost/members-offers@0.10.9
- @tryghost/members-payments@0.1.11
- @tryghost/members-stripe-service@0.9.1
- @tryghost/verification-trigger@0.1.6
2022-03-11 22:45:26 +01:00
Renovate Bot
0ad973c8b5
Update dependency mocha to v9.2.2
2022-03-11 18:04:58 +00:00
Thibaut Patel
dafda42e0a
Published new versions
...
- @tryghost/domain-events@0.1.8
- @tryghost/express-dynamic-redirects@0.2.6
- @tryghost/magic-link@1.0.20
- @tryghost/member-analytics-service@0.1.10
- @tryghost/member-events@0.4.0
- @tryghost/members-analytics-ingress@0.1.11
- @tryghost/members-api@5.0.4
- @tryghost/members-csv@1.2.6
- @tryghost/members-events-service@0.1.0
- @tryghost/members-importer@0.5.3
- @tryghost/members-ssr@1.0.22
- @tryghost/members-offers@0.10.8
- @tryghost/members-payments@0.1.10
- @tryghost/members-stripe-service@0.8.4
- @tryghost/verification-trigger@0.1.5
2022-03-01 10:36:48 +01:00
Daniel Lockyer
db696a9272
Added --all
to c8 command
...
refs https://github.com/TryGhost/Toolbox/issues/203
- without `--all`, c8 ignores files that should be included in the
coverage score but aren't used in tests
- this means we have artificially high scores in places where this isn't
used
- this commit adds `--all` where previously missing
- where this fails `--check-coverage`, that has been removed for now
2022-02-21 13:08:55 +01:00
Renovate Bot
d813510a07
Update dependency mocha to v9.2.1
2022-02-21 00:05:27 +00:00
Fabien "egg" O'Carroll
6c1081df23
Published new versions
...
- @tryghost/magic-link@1.0.19
- @tryghost/members-api@5.0.2
- @tryghost/members-csv@1.2.5
- @tryghost/members-importer@0.5.2
- @tryghost/members-ssr@1.0.21
- @tryghost/members-stripe-service@0.8.2
2022-02-17 14:05:22 +02:00
Daniel Lockyer
f229d1077d
Fixed repository link in old packages
...
- these are some of our first packages here and use `master` in their
repository link
- we've since switched the repo to use `main` but these links were not
updated
- this commit updates the links
2022-02-16 09:32:32 +01:00
Daniel Lockyer
a0f716f475
Published new versions
...
- @tryghost/domain-events@0.1.7
- @tryghost/express-dynamic-redirects@0.2.5
- @tryghost/magic-link@1.0.18
- @tryghost/member-analytics-service@0.1.9
- @tryghost/member-events@0.3.5
- @tryghost/members-analytics-ingress@0.1.10
- @tryghost/members-api@5.0.1
- @tryghost/members-csv@1.2.4
- @tryghost/members-importer@0.5.1
- @tryghost/members-ssr@1.0.20
- @tryghost/members-offers@0.10.7
- @tryghost/members-payments@0.1.9
- @tryghost/members-stripe-service@0.8.1
- @tryghost/verification-trigger@0.1.4
2022-02-15 13:42:23 +01:00
Renovate Bot
463317eb76
Update dependency sinon to v13
2022-02-15 13:39:43 +01:00
Renovate Bot
5e91609abb
Update Test & linting packages
2022-02-15 13:35:28 +01:00
Fabien "egg" O'Carroll
883945886c
Published new versions
...
- @tryghost/domain-events@0.1.5
- @tryghost/express-dynamic-redirects@0.2.4
- @tryghost/magic-link@1.0.16
- @tryghost/member-analytics-service@0.1.6
- @tryghost/member-events@0.3.3
- @tryghost/members-analytics-ingress@0.1.7
- @tryghost/members-api@4.2.0
- @tryghost/members-csv@1.2.3
- @tryghost/members-importer@0.4.1
- @tryghost/members-ssr@1.0.18
- @tryghost/members-offers@0.10.5
- @tryghost/members-payments@0.1.7
- @tryghost/members-stripe-service@0.6.3
2022-01-20 17:49:29 +02:00
Renovate Bot
a2bcff314f
Update dependency c8 to v7.11.0
2022-01-20 14:30:04 +00:00
Fabien "egg" O'Carroll
5652f1169f
Published new versions
...
- @tryghost/members-csv@1.2.2
- @tryghost/members-importer@0.3.7
2022-01-11 16:28:23 +02:00
Fabien "egg" O'Carroll
b1cc2a8ea8
Fixed CSV unparsing for subscribed flag
...
no-issue
We have a special mapping for subscribed_to_emails -> subscribed in the
parse method, but were not mapping it in the unparse method, which meant
we were losing information during CSV imports.
2022-01-11 16:26:11 +02:00
Fabien "egg" O'Carroll
379fbc7f13
Published new versions
...
- @tryghost/domain-events@0.1.4
- @tryghost/express-dynamic-redirects@0.2.3
- @tryghost/magic-link@1.0.15
- @tryghost/member-analytics-service@0.1.5
- @tryghost/member-events@0.3.2
- @tryghost/members-analytics-ingress@0.1.6
- @tryghost/members-api@3.0.0
- @tryghost/members-csv@1.2.1
- @tryghost/members-importer@0.3.6
- @tryghost/members-ssr@1.0.17
- @tryghost/members-stripe-service@0.5.2
- @tryghost/members-offers@0.10.4
- @tryghost/members-payments@0.1.6
2022-01-10 17:56:12 +02:00