Skip to content
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

Added tracking for the top level categories in each pack. #357

Merged

Conversation

klingbolt
Copy link
Contributor

@klingbolt klingbolt commented Sep 23, 2024

Stops writing if there are any duplicates between packs. Added an argument to bypass this if necessary. Added tests for both cases

klingbolt and others added 3 commits September 22, 2024 23:07
…ng if there are any duplicates between packs. Added an argument to bypass this if nessecary. Addded tests for both cases
@klingbolt klingbolt changed the title Added tracking for the top level categories in each pack. Stops writi… Added tracking for the top level categories in each pack. Sep 23, 2024
@klingbolt klingbolt marked this pull request as ready for review September 23, 2024 03:19

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._old	2024-09-30 00:43:16.418871175 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._new	2024-09-30 00:43:16.426871135 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._old	2024-09-30 00:43:16.435871091 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._new	2024-09-30 00:43:16.442871057 +0000
@@ -0,0 +1,28 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._old	2024-09-30 00:43:16.449871023 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._new	2024-09-30 00:43:16.457870984 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

xml_converter/integration_tests/run_tests.py Outdated Show resolved Hide resolved
xml_converter/src/packaging_xml.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
…mbining set, error handling for argument parsing
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._old	2024-10-02 03:05:21.892076970 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._new	2024-10-02 03:05:21.900077036 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._old	2024-10-02 03:05:21.908077101 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._new	2024-10-02 03:05:21.916077166 +0000
@@ -0,0 +1,28 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._old	2024-10-02 03:05:21.923077223 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._new	2024-10-02 03:05:21.931077289 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

@klingbolt klingbolt requested a review from AsherGlick October 8, 2024 21:10
xml_converter/src/string_helper.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Show resolved Hide resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._old	2024-11-11 02:57:11.383991655 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._new	2024-11-11 02:57:11.391991647 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._old	2024-11-11 02:57:11.399991639 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._new	2024-11-11 02:57:11.407991629 +0000
@@ -0,0 +1,28 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._old	2024-11-11 02:57:11.415991621 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._new	2024-11-11 02:57:11.423991613 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
xml_converter/src/xml_converter.cpp Outdated Show resolved Hide resolved
…file by suffix function to return relative paths

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._old	2024-11-13 00:22:41.909758062 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._new	2024-11-13 00:22:41.917758143 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._old	2024-11-13 00:22:41.961758593 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._new	2024-11-13 00:22:41.969758675 +0000
@@ -0,0 +1,28 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._old	2024-11-13 00:22:41.977758756 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._new	2024-11-13 00:22:41.985758838 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._old	2024-11-14 07:24:27.334909730 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/input/pack2/markers.bin.textproto._new	2024-11-14 07:24:27.342909771 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._old	2024-11-14 07:24:27.354909833 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_allow_duplicates/output_proto/markers.bin.textproto._new	2024-11-14 07:24:27.358909854 +0000
@@ -0,0 +1,28 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._old	2024-11-14 07:24:27.366909895 +0000
+++ xml_converter/integration_tests/test_cases/proto_and_xml_input_no_duplicates/input/pack2/markers.bin.textproto._new	2024-11-14 07:24:27.374909938 +0000
@@ -0,0 +1,12 @@
+category {
+  name: "MyCategory"
+  icon {
+    map_id: 50
+    position {
+      x: 169.81
+      y: 210.65
+      z: 215.83
+    }
+  }
+  id: "(\350\314\006\302\223^\226"
+}

@AsherGlick AsherGlick merged commit ad3053d into AsherGlick:xml_converter Nov 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants