Skip to content

Yggdrasil engine #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f84b0b1
Is enabled
gastonfournier Nov 16, 2023
ba5370c
All tests working
gastonfournier Nov 16, 2023
162d408
Removing shortcuts
gastonfournier Nov 16, 2023
48811ed
More cleanups
gastonfournier Nov 16, 2023
9a4a8ae
WIP
gastonfournier Nov 17, 2023
09ed04b
chore: fix some tests
gastonfournier Nov 17, 2023
3862610
Attempt to run tests with a compiled version of unleash-engine and yg…
gastonfournier Nov 17, 2023
c736c2b
Format changes
gastonfournier Nov 17, 2023
8baf2c6
chore: use published yggdrasil engine
sighphyre Nov 25, 2024
7674b6d
wip: move metrics to be handled by yggdrasil
sighphyre Nov 27, 2024
ddadd4d
chore: upgrade ygg to handle metrics bug
sighphyre Nov 27, 2024
8517b43
wip: repair metrics tests
sighphyre Nov 27, 2024
4ba1c45
chore: rename adapt context method
sighphyre Nov 27, 2024
d83d62d
fix client spec tests
sighphyre Nov 27, 2024
2ec31e5
chore: merge main
sighphyre Nov 28, 2024
0420d5c
chore: remove unneccessary stuff
sighphyre Nov 28, 2024
629636e
chore: remove ygg binary + jar, this is now resolved as a dependency
sighphyre Nov 28, 2024
2aec091
chore: restore some changes that just added noise
sighphyre Nov 28, 2024
12b5834
chore: remove dependent feature toggle test
sighphyre Nov 28, 2024
2a2e090
re enable test
sighphyre Nov 28, 2024
979229f
chore: trim out unneeded comment
sighphyre Nov 28, 2024
d49d244
chore: tease out yggdrasil adapters into their own static class
sighphyre Nov 28, 2024
cfefa56
chore: warn on fallback for unparsable dates
sighphyre Nov 28, 2024
76b99fa
Update src/main/java/io/getunleash/metric/UnleashMetricServiceImpl.java
sighphyre Nov 28, 2024
937b29c
feat: yggdrasil feature enabled (#259)
sighphyre Jan 14, 2025
26d5f3d
fix: handle unicode strings on Windows (#261)
sighphyre Jan 16, 2025
d5d674c
chore: clean up legacy domain (#265)
sighphyre Jan 27, 2025
70c134d
docs: migration guide (#269)
sighphyre Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
version: [ 8, 11, 17 ]
version: [8, 11, 17]
os: ["ubuntu", "windows", "macos"]
exclude:
- version: 8
os: macos
- version: 8
os: windows
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This is the Unleash Client SDK for Java. It is compatible with the [Unleash-host
[![Maven Central](https://img.shields.io/maven-central/v/io.getunleash/unleash-client-java)](https://mvnrepository.com/artifact/io.getunleash/unleash-client-java)


> **Migrating to v10**
>
> If you're using `MoreOperations`, custom or fallback strategies, subscribers or bootstrapping, please see the full [migration guide](../v10_MIGRATION_GUIDE) for details. If you use GraalVM or Quarkus, please hold off on upgrading to v10, support is planned but not implemented.

## Getting started

This section shows you how to get started quickly and explains some common configuration scenarios. For a full overview of Unleash configuration options, check out [the _Configuration options_ section](#configuration-options).
Expand Down Expand Up @@ -355,7 +359,7 @@ assertThat(fakeUnleash.isEnabled("unknown"), is(false));
// example 3: variants
FakeUnleash fakeUnleash = new FakeUnleash();
fakeUnleash.enable("t1", "t2");
fakeUnleash.setVariant("t1", new Variant("a", (String) null, true));
fakeUnleash.setVariant("t1", new Variant("a", (String) null, true, true));

assertThat(fakeUnleash.getVariant("t1").getName(), is("a"));
```
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<version.junit5>5.10.3</version.junit5>
<version.okhttp>4.12.0</version.okhttp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.unleash.specification>5.1.5</version.unleash.specification>
<version.unleash.specification>5.1.9</version.unleash.specification>
<arguments />
<version.jackson>2.17.2</version.jackson>
<version.logback>1.3.14</version.logback>
Expand Down Expand Up @@ -56,6 +56,12 @@
</scm>

<dependencies>
<dependency>
<groupId>io.getunleash</groupId>
<artifactId>yggdrasil-engine</artifactId>
<version>0.1.0-alpha.15</version>
<classifier>${os.detected.classifier}</classifier>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
Expand Down Expand Up @@ -156,6 +162,13 @@
</dependencies>

<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.7.0</version>
</extension>
</extensions>
<resources>
<resource>
<directory>src/main/resources</directory>
Expand Down
58 changes: 0 additions & 58 deletions src/main/java/io/getunleash/ActivationStrategy.java

This file was deleted.

79 changes: 0 additions & 79 deletions src/main/java/io/getunleash/Constraint.java

This file was deleted.

Loading