pgsync icon indicating copy to clipboard operation
pgsync copied to clipboard

Retain Plugin Order As Defined in JSON

Open jvanderen1 opened this issue 1 year ago • 1 comments

I noticed that if you have multiple plugins defined, PGSync will use alphabetical order of the file name(s) instead of the order defined in the schema.json.

Example:

"plugins": [
  "ZSerializer",  # z_serializer.py
  "ASerializer"   # a_serializer.py
]

What's Wrong?

First ASerializer is executed first, followed by ZSerializer. This is because a_serializer.py comes before z_serializer.py.

What Should Happen

The schema.json clearly defined the order to be ZSerializer first, then ASerializer. Therefore, it should respect that order.

jvanderen1 avatar Aug 13 '24 22:08 jvanderen1

This had been resolved in main

toluaina avatar Aug 14 '24 19:08 toluaina