Commit 2c017a6
committed
feat(sequelize-adapter): ensure snake_case gate keys for Ruby compatibility
Enable cross-language compatibility with Ruby Flipper by storing
percentage gates (percentage_of_actors, percentage_of_time) in snake_case
rather than camelCase. The adapter now reads and writes both formats to
avoid data inconsistencies. Added helper methods to convert keys and
tests to verify reading and migration of gate keys.
- Store new gates in snake_case format
- Read and clean up both camelCase and snake_case keys
- Add tests for Ruby compatibility in gate key handling1 parent 2730686 commit 2c017a6
2 files changed
Lines changed: 68 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
544 | 570 | | |
545 | 571 | | |
546 | 572 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
256 | 287 | | |
257 | 288 | | |
258 | 289 | | |
| |||
335 | 366 | | |
336 | 367 | | |
337 | 368 | | |
338 | | - | |
| 369 | + | |
339 | 370 | | |
340 | 371 | | |
341 | 372 | | |
342 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
343 | 377 | | |
344 | 378 | | |
345 | 379 | | |
| |||
350 | 384 | | |
351 | 385 | | |
352 | 386 | | |
353 | | - | |
| 387 | + | |
354 | 388 | | |
355 | 389 | | |
356 | 390 | | |
| |||
0 commit comments