Skip to content

Commit

Permalink
feat: Added support for perosnlaize in MEG and code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamg1304 committed Oct 3, 2024
1 parent f0b5f43 commit dfdfbb7
Show file tree
Hide file tree
Showing 52 changed files with 2,706 additions and 1,367 deletions.
59 changes: 57 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,73 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[1.3.0] - 2024-10-03

### Added

- **Personalize MEG** - Add support for Personalize rules within `Mutually Exclusive Groups`

- **Segmentation module**

- Modify how context and settings are being used inside modular segmentor code
- Cache location / User-Agent data per `getFlag` API
- Single endpoint for location and User-Agent at gateway-service so that at max one call will be required to fetch data from gateway service
- If userAgent and ipAddress both are null, then no need to send call to gatewayService
- Add support for DSL where featureIdValue could be `off`

- **Context refactoring** - context is now flattened out

```php
[
'id' => $userId,
'ipAddress' => '',
'userAgent' => '',
// For pre-segmentation in campaigns
'customVariables' => [ 'variable' => 'value' ]
]
```

- **Code refactoring** - source code is refactored to have error-handling, model-driven code, and inline documentation.

[1.2.5] - 2024-07-29

### Fixed

- Removed unnecessary vendor/autoload from `UuidUtil.php`

[1.2.1] - 2024-07-17

### Added

- Support for optional parameter SettingsFile in init
- Support for gt,gte,lt,lte in Custom Variable pre-segmentation


[1.1.1] - 2024-07-04

### Changed

- **Testing** - PHPUnit version changed to support in lower php versions


[1.1.0] - 2024-07-02
### Changed

### Changed

- **Refactoring**

- Redesigned models to use private properties instead of public properties.
- Implemented object notation with getter and setter functions for all models.

- **Unit and E2E Testing**
<<<<<<< HEAD
- **Unit and E2E Testing**
=======
- **Unit and E2E Testing**
>>>>>>> origin/feat/personalize-meg

- Set up Test framework using `Jest`
- Wrote unit and E2E tests to ensure nothing breaks while pushing new code
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vwo/vwo-fme-php-sdk",
"version": "1.2.0",
"version": "1.3.0",
"keywords": ["vwo", "fme", "sdk"],
"license": "Apache-2.0",
"authors": [{
Expand Down
Loading

0 comments on commit dfdfbb7

Please sign in to comment.