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

Handle hex #611

Closed
wants to merge 160 commits into from
Closed

Handle hex #611

wants to merge 160 commits into from

Conversation

rpiazza
Copy link
Contributor

@rpiazza rpiazza commented Nov 21, 2024

if hex is being stored in the db as a string - don't convert it to bytes

rpiazza and others added 28 commits September 10, 2024 19:47
Expand relational data store query capability
work as valid_types, and fix some bugs.
 - DictionaryProperty.__init__()'s valid_types argument now accepts either
   property classes or instances
 - DictionaryProperty now correctly propagates allow_custom down to its
   valid_types properties, and propagates their returned has_custom flag
   upward
 - DictionaryProperty's cleaned dictionaries actually contain the cleaned
   values now (before, the cleaned values were ignored)

Property class cleanup:
 - Property subclass .clean() methods now are correct overrides of the
   base class method, including parameter naming and default values
 - OpenVocabProperty now doesn't treat any value as custom, regardless of
   the allow_custom setting, which was our original intent.  A violation
   of strict mode now causes ValueError to be raised, not
   CustomContentError.
 - BooleanProperty.clean() now honors strict=True (it will only accept
   values True and False in that case).

Added various property tests of strictness, and additional
DictionaryProperty tests which exercise custom value detection when used
with ReferenceProperty.
…nary-property

Fix DictionaryProperty valid_types bugs, and other misc property issues
dictionary properties, to account for fixes to relational data sink.
Also fix a minor typo in DictionaryProperty where an exception
variable was left in by mistake...
…t-unit-test

Minor fix to certain relational data sink unit tests related to dictionary properties
fix: Add a missing "return" to determine_sql_type_from_stix()
column types, to the relational data source
relational data source: support db backends, db's which don't support array columns
@rpiazza rpiazza closed this Nov 21, 2024
@rpiazza rpiazza deleted the handle-hex branch November 22, 2024 14:54
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.

5 participants