Package: th2-grpc-common
th2 gRPC common library (4.2.0)This library contains common proto messages that are used in all th2 components. Seecommon.protofile for details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified repositories.How to maintain a projectPerform the necessary changes.Update the package version of Java ingradle.propertiesfile.Update the package version of Python inpackage_info.jsonfile.Commit everything.JavaIf you wish to manually create and publish a package for Java, run the following command:gradle --no-daemon clean build publish artifactoryPublish \
       -Purl=${URL} \ 
       -Puser=${USER} \
       -Ppassword=${PASSWORD}URL,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine:pip install -r requirements.txt
pip install twine
python setup.py generate
python setup.py sdist
twine upload --repository-url ${PYPI_REPOSITORY_URL} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*PYPI_REPOSITORY_URL,PYPI_USERandPYPI_PASSWORDare parameters for publishing.Release notes4.2.0Added vulnerability checkUpdated bom:4.2.0Updated protoc:3.21.7Updated grpc-service-generator:3.3.1Downgraded grpc version from 1.50.2 to 1.48.1 according to bom4.1.1Added script for publishing dev-release for maven artefactsMigrated to bom:4.2.04.1.0Added event / message batch metadata with the external_user_queue field. This field can be used to send MQ message to direct queue instead of schema routing in some cases.4.0.0Marked deprecated fields asreservedMovedtimestampfromMessageMetadata/RawMessageMetadatatoMessageIDMovedstart_timestampfromEventtoEventIDAddedbook_nametoMessageIDandEventIDAddedscopetoEventIDAddedmap<string, SessionAliasToDirectionCheckpoint>toCheckpoint. It describes book to session alias to direction.AddedEventBatchMetadataandMessageGroupBatchMetadatawithexternal_queueproperty3.13.0Updateth2-bomversion from '3.0.0' to '4.1.0'3.12.0Updategrpcio-toolsPython dependency version from1.38.1to1.50.0UpdategrpcJava dependency version from1.32.1to1.50.23.11.1Updatemypy-protobufPython dependency version from2.5to3.23.11.0Addedsession_groupparameter toConnectionID3.10.0Updated grpc-service-generator (added support for gRPC pins filters).3.9.0Addednull_valueinValueFilter. Should be used only with EQUAL and NOT_EQUAL operations.3.8.0Addedtime_precisionanddecimal_precisionparameters toRootComparisonSettingsAddedEQ_TIME_PRECISIONandEQ_DECIMAL_PRECISIONfilter operation, witch filter a field by comparing values(date/timein ISO format andnumerictypes) with the precision. The timestamps will be compared with the protobuf duration format. Numbers use string format, for example0.0001,0.125,125E-33.7.0Addedcheck_repeating_group_orderparameter toRootComparisonSettings3.6.0Addeddescriptionparameter toRootMessageFilter.3.5.0Added SimpleList parameter to SimpleFilter.3.4.0AddedINandNOT_INfilter operation, which filter a field by value from list ofString.AddedLIKEandNOT_LIKEfilter operation, which filter a field byStringregEx expression.AddedMORE,LESS,NOT_MORE,NOT_LESSfilter operations, which filter a field by comparing values(numerictypes anddate/timein ISO format).AddedWILDCARDandNOT_WILDCARDfilter operations, which filter a field byStringspecified wildcard expression.
The wildcard matcher uses the characters?and*to represent a single or multiple (zero or more) wildcard characters.
This is the same as often found on Dos/Unix command lines."abc-123", "*-123"     --> true"abc-123", "*-xyz"     --> false"abc-123", "ab*"       --> true"abc-123", "*-???"     --> true"abc-123", "*-????"    --> falseN.B. the sequence*?does not work properly at present in match strings.3.3.0Added information about message timestamp into checkpoint message3.2.0Implement stubs creation for Python