Commit Graph

2704 Commits

Author SHA1 Message Date
Christopher Kolstad b7b5f0caa0 fix: add constraint for changing project. (#1049)
- In order for a feature toggle to be allowed to change project, the
  target project must have the same enabled environments.
- If the feature toggle has an environment which is not in use that does
  not exist in target project, this is ok.

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-10-21 10:29:09 +02:00
Ivar Conradi Østhus 3484340cd0 fix: only add project environments if enabled (#1050) 2021-10-21 10:14:35 +02:00
Renovate Bot e345980dcf chore(deps): update dependency husky to v7.0.4 2021-10-21 06:03:10 +00:00
Ivar Conradi Østhus c657cd588c 4.2.0-beta.4 v4.2.0-beta.4 2021-10-20 13:27:24 +02:00
Ivar Conradi Østhus 3e1a745db9 fix: bump unleash-frontend to 4.2.7 2021-10-20 13:27:06 +02:00
Christopher Kolstad 62b121285c Create a apiuser for demo auth. (#1045)
- If api token middleware is disabled, still allow calls to /api/client with a
  populated fake api user with client access.
2021-10-20 13:16:07 +02:00
Christopher Kolstad 28d0238732 add try-catch to demo auth middleware (#1044)
- Since we validate email used in auth the route function needs to
  handle the possibility that userService.loginUserWithoutPassword can
  throw.
2021-10-19 14:24:23 +02:00
Renovate Bot 72445b6423 chore(deps): update dependency jest to v27.3.1 2021-10-19 10:20:23 +00:00
Christopher Kolstad 1f37b0bf4b fix: make hasPermission call handle api tokens (#1041) 2021-10-19 11:34:56 +02:00
Christopher Kolstad 26407cc02e Fix/feature strategies needs project update (#1040)
* Make sure feature_strategies follow feature to new project
2021-10-19 09:49:43 +02:00
Renovate Bot 3f02e9c070 chore(deps): update dependency jest to v27.3.0 2021-10-17 20:23:53 +00:00
Renovate Bot 99c1039b4d chore(deps): update node.js to v14.18.1 2021-10-17 14:11:14 +00:00
David Alpert 0681a7b1d3 chore(node-version): move node spec to .node-version (#1034)
placing the required node version in a .node-version
file allows it to be read programatically by node
version managers like nodenv, asdf, etc
2021-10-17 15:26:59 +02:00
David Alpert 1d828e8190 docs: add reference to developer-guide (#1035) 2021-10-17 15:21:25 +02:00
Renovate Bot 51e535baf3 chore(deps): update dependency ts-jest to v27.0.7 2021-10-16 12:08:52 +00:00
Renovate Bot 44bb2ec760 chore(deps): update dependency @types/faker to v5.5.9 2021-10-16 08:57:58 +00:00
Ivar Conradi Østhus 3b925902d7 fix: event-log 2021-10-15 20:11:51 +02:00
Ivar Conradi Østhus 706e711819 Update developer-guide.md 2021-10-15 19:43:29 +02:00
Renovate Bot 8f6b89cc9e fix(deps): update docusaurus monorepo to v2.0.0-beta.7 2021-10-15 15:15:10 +00:00
Ivar Conradi Østhus 20282e05de 4.2.0-beta.3 v4.2.0-beta.3 2021-10-15 14:19:35 +02:00
Ivar Conradi Østhus 524bbc9bab fix: bump unleash-frontend to 4.2.6 2021-10-15 14:19:16 +02:00
Renovate Bot cdec9ee40d chore(deps): update dependency ts-jest to v27.0.6 2021-10-14 21:50:39 +00:00
Ivar Conradi Østhus 87a2710a84 4.2.0-beta.2 v4.2.0-beta.2 2021-10-14 09:46:12 +02:00
Ivar Conradi Østhus 064e5ccf29 fix: bump unleash-forntend to 4.2.5 2021-10-14 09:45:48 +02:00
Ivar Conradi Østhus 5f6758d8f0 fix: update context field does not await the response (#1027) 2021-10-14 08:30:36 +02:00
Renovate Bot 6957c44add fix(deps): update dependency unleash-frontend to v4.2.4 2021-10-13 21:32:58 +00:00
Ivar Conradi Østhus ae03390331 fix: add support for experimental flags (#1025) 2021-10-13 20:52:44 +02:00
Christopher Kolstad 1ce913ddf1 4.2.0-beta.1 v4.2.0-beta.1 2021-10-13 13:05:08 +02:00
Ivar Conradi Østhus daba53976d fix: feature_strategies paramter column should not be null (#1024) 2021-10-13 12:42:57 +02:00
Renovate Bot 01509b0e09 chore(deps): update dependency eslint-plugin-import to v2.25.2 2021-10-13 01:36:50 +00:00
Renovate Bot 49acd57126 chore(deps): update dependency typescript to v4.4.4 2021-10-12 23:17:57 +00:00
Rob Levin 4e0c0aa368 docs: typo fix (#1021)
definitely not compromised and google search says to prefer composed of

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-12 22:09:14 +02:00
Rob Levin c1f39353b9 docs: grammatical error (#1022) 2021-10-12 22:05:55 +02:00
Ivar Conradi Østhus 41574e3938 fix: create admin users if enabled and zero users already 2021-10-12 21:39:57 +02:00
Ivar Conradi Østhus ce60d7f31b fix: upgrade unleash-frontend to version 4.2.3 2021-10-12 14:22:24 +02:00
Renovate Bot 985f5cd007 chore(deps): update metcalfc/changelog-generator action to v1.0.1 2021-10-12 11:36:18 +00:00
Christopher Kolstad 20a4aeff97 Make Appinstance registration include environment (#1014) 2021-10-12 10:39:28 +02:00
Renovate Bot 8ac3f6fc36 chore(deps): update dependency ts-node to v10.3.0 2021-10-11 19:52:11 +00:00
Rob Levin d7e85c3fe0 Update node.md (#1016)
Since it's much. more likely that consumers will want a Promise, Observable, or other asynchronous mechanism to listen for the flag enabled callback, add a link out to those docs. This took our team a while to find fwiw.
2021-10-11 18:39:51 +02:00
Joe J Collins 8a74ad9fd5 Docs: Update python.md (#1015) 2021-10-11 17:49:29 +02:00
Christopher Kolstad d176028a00 Trigger STALE events when patching stale field
- Also moved the patch function into service, instead of performing the
  operation in the controller
2021-10-11 11:27:20 +02:00
Renovate Bot 1e2a0d9045 chore(deps): update dependency lint-staged to v11.2.3 2021-10-10 20:47:52 +00:00
Renovate Bot 8b98e075ae chore(deps): update dependency lint-staged to v11.2.2 2021-10-09 22:25:27 +00:00
Renovate Bot 41a141d82e chore(deps): update dependency lint-staged to v11.2.1 2021-10-09 07:52:12 +00:00
Renovate Bot 56332fbf9e chore(deps): update dependency jest to v27.2.5 2021-10-08 16:02:49 +00:00
Renovate Bot 02e7402985 chore(deps): update dependency eslint-config-airbnb-typescript to v14.0.1 2021-10-08 11:29:52 +00:00
Ivar Conradi Østhus fc455811f8 feat/metricsV2 (#1005)
Adds a new way of handling usage metrics where we push it directly to the database and performs aggregation on the fly. All metrics are aggregated in to buckets of hours. We will for now store metrics for the 48 hours with the following dimensions:

- featureName
- projectName
- envrionment
- yes (the actual count)
- no (the actual count)
2021-10-08 10:09:22 +02:00
Ivar Conradi Østhus 3612884501 feat: clone feature toggle API (#1006) 2021-10-08 09:37:27 +02:00
Christopher Kolstad b4b222f4c9 feat: add new more specific feature/environment events to addons (#994)
* feat: add new more specific feature/environment events to addons

* Updated strategy change text

* Update all three addon messages for strategy

* Link to new features view for strategy change text

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-07 10:22:20 +02:00
Ivar Conradi Østhus 14e09fe6aa fix: modify actions for PRs 2021-10-06 22:16:58 +02:00