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

Feature/weos 1505 #173

Merged
merged 56 commits into from
Jun 10, 2022
Merged

Feature/weos 1505 #173

merged 56 commits into from
Jun 10, 2022

Commits on May 2, 2022

  1. feature: WEOS-1505 reduce reliance on dynamic struct library

    * Replaced "Property" on ContentEntity with "payload" that is a map
    * Removed reference to dynamic struct builder and reader from Content Entity
    * Simplified the enumeration validation
    akeemphilbert committed May 2, 2022
    Configuration menu
    Copy the full SHA
    97a5702 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2022

  1. feature: WEOS-1507

    * Updated test fixtures to explicitly set nullable true since nullable true will no longer be the default
    * Updated isValid to do type checks
    * Got reid of using GenerateID function (this happens in the Set payload method)
    * Made "FromSchemaWIthValues" use "SetValueFromPayload" method
    * Update "SetValueFromPayload" to do some basic type casting and generating of default values
    * Deprecated GenerateID function
    * Updated GetByKey return in projection interface to use ContentEntity
    * Updated GetByProperties to return a slice of ContentEntities
    * Added utility method to check if string is in a slice of strings
    akeemphilbert committed May 8, 2022
    Configuration menu
    Copy the full SHA
    a1e6e77 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. feature: WEOS-1508 Fix broken tests

    * Updated integration test fixture  to specify nullable fields
    * Updated upload fixture to specify nullable fields
    * Added code if there is a payload then set the values on the gorm model
    * Made it so that if there is one part in the identifier then that is used to set the id for the entity
    * If the content entity does not have an id specified a ksuid will be generated by default
    * Removed reference to dynamic structs from domain service (use toMap instead)
    * Update test mocks to use use the updated model mocks
    akeemphilbert committed May 10, 2022
    Configuration menu
    Copy the full SHA
    54ce1d9 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2022

  1. feature: WEOS-1508 Fix broken tests

    * Started reducing the code needed for update in the domain service
    * Fixed domain service update test
    * Removed the need to pass the payload in the update time method
    * Added comments to update method in the domain service
    akeemphilbert committed May 11, 2022
    Configuration menu
    Copy the full SHA
    c3dcf9c View commit details
    Browse the repository at this point in the history
  2. feature: WEOS-1508 Fix broken tests

    * Omitted User from gorm (and new events) so that results can be serialized directly in ContentEntity
    * Made more properties nullable in fixtures
    * Consolidate update code in domain service
    * Added debug statements to gorm projection to debug issues
    * Updated mocks in projections
    akeemphilbert committed May 11, 2022
    Configuration menu
    Copy the full SHA
    7799128 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. bug: Fix issue where couldn't create item because a property was an o…

    …bject and it was null
    
    * Made unmarshal use SetValue method IF a schema is set
    * Fixed issue with date time use
    akeemphilbert committed May 16, 2022
    Configuration menu
    Copy the full SHA
    f3dc744 View commit details
    Browse the repository at this point in the history
  2. bug: Fix issue getting entity by key and weos id

    * Put back in reference to dynamic struct builder because we can't create a builder using just the schema of the current entity
    * Updated GORMModel to check if the content entity was instantiated with a builder
    * Added back in FromSchemaAndBuilder
    * Updated entity factory to instantiate content entity with the builder
    * Updated gorm methods to marshal result into dynamic struct gorm model from entity and then marshal the model into the content entity
    * Fixed property casing in projection test
    akeemphilbert committed May 16, 2022
    Configuration menu
    Copy the full SHA
    09eb98a View commit details
    Browse the repository at this point in the history
  3. bug: Fix issue where the entity was not correctly pulled from the con…

    …text
    
    * Fixed initializer tests
    akeemphilbert committed May 16, 2022
    Configuration menu
    Copy the full SHA
    0f7be37 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2866659 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    0daf398 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb34a3b View commit details
    Browse the repository at this point in the history
  3. bug: Fixed 1 test

    * Made it so that the weos_id is set on the GORM model based on the entity id
    * Added tests to ensure that the weos_id is set on the entity
    akeemphilbert committed May 17, 2022
    Configuration menu
    Copy the full SHA
    7fb1cdc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    89f0b21 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    599416f View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. Configuration menu
    Copy the full SHA
    788e43f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e3302f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15f3188 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    77ced9e View commit details
    Browse the repository at this point in the history

Commits on May 26, 2022

  1. Configuration menu
    Copy the full SHA
    a79b7cd View commit details
    Browse the repository at this point in the history

Commits on May 28, 2022

  1. WEOS-1505

    * Fixed nil pointer exceptions where schema is not set (this could be if the content entity was initialized directly and not through the entity factory
    * Added custom Time struct so that the dates could be marshalled in the iso 8601 format
    * Fixed more test fixtures
    akeemphilbert committed May 28, 2022
    Configuration menu
    Copy the full SHA
    49ae6b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a835c38 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2022

  1. WEOS-1505 Fixed issues with sequence no not being returned

    * Made it so that the Etag is only generated if the item was found
    * Updated test fixtures to make some fields nullable
    * Switched to using Unmarshaling so that sequence no. is set (as opposed to using setValue directly)
    akeemphilbert committed May 29, 2022
    Configuration menu
    Copy the full SHA
    817fd72 View commit details
    Browse the repository at this point in the history
  2. WEOS-1505 Fixed issues with view content

    * Made etag generation use the retrieved entity
    * Made projection functions use json.Unmarshal instead
    akeemphilbert committed May 29, 2022
    Configuration menu
    Copy the full SHA
    2252ca7 View commit details
    Browse the repository at this point in the history
  3. WEOS-1505 Fixed issues with delete

    * Updated test fixtures to have actual ids
    * GormModel returns 2 values so had to change from passing it directly to the delete method
    akeemphilbert committed May 29, 2022
    Configuration menu
    Copy the full SHA
    fc8ff40 View commit details
    Browse the repository at this point in the history
  4. WEOS-1505 Fixed edit content issues

    * Made it so that the handler error is returned
    * Updating an non existant entity returns error
    * Fixed end to end testing so that properties in the request are not automatically lower cased
    akeemphilbert committed May 29, 2022
    Configuration menu
    Copy the full SHA
    9e7c935 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    34fc436 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8dd4c3f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1cb0b6e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    49c5005 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Configuration menu
    Copy the full SHA
    3e989eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fac409 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb6c349 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8145fc7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1663c43 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    43e4e28 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    081557e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cefa67d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c2061de View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2022

  1. feature: WEOS-1509

    * Made it so that the schema is recursively parsed
    * Added statements to debug issues with table name for model not being recognized
    akeemphilbert committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    f71b322 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2022

  1. Configuration menu
    Copy the full SHA
    bc4ca3a View commit details
    Browse the repository at this point in the history
  2. feature: WEOS-1509 Deprecate initializing builders in initializers

    * Updated the migrate function signature to receive the entire schema
    * Deprecated CreateSchema initializer
    * Removed GormModel method from content entity
    * Deprecated constructure that creates an entity using the schema AND a builder (the GORM stuff is now in the GORM projection)
    * Made custom Time struct implment Value/Scanner interface to be compatible with GORM
    akeemphilbert committed Jun 4, 2022
    Configuration menu
    Copy the full SHA
    d9530a0 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2022

  1. feature: WEOS-1509 Fixing issues after updating to new GORM model gen…

    …eration
    
    * Removed inexplicable code that tried to set a value when value was nil in the gorm dialect
    * Marshalled the table name into the model correctly
    * Made sequence no. an integer
    * Made it so that the foreign key reference is a pointer so that nil could be set.
    * removed testing code
    akeemphilbert committed Jun 5, 2022
    Configuration menu
    Copy the full SHA
    ed4e6d3 View commit details
    Browse the repository at this point in the history
  2. feature: WEOS-1509 Fixing issues after updating to new GORM model gen…

    …eration
    
    * Updated ReplayEvents signature to use swagger config (since the projection migration also uses that now)
    * Added code to drop columns when x-remove is specified (removed the automagic that was happening when a primary key was removed)
    * Updated test to correctly reference an object
    akeemphilbert committed Jun 5, 2022
    Configuration menu
    Copy the full SHA
    24644d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. Configuration menu
    Copy the full SHA
    568e798 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    881efbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    475d6ba View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. feature: WEOS-1509 Limit the depth that is rendered

    * Updated feature files to reference lowercased columns (the columns seem to no longer be snake cased by gorm)
    * Fixed step that was not passing schema to replay events
    * Made it so that if the default value returned by GORMPropertyBuilder is nil then it's not added (this is so that we could break the recursive building at a depth of 3)
    * Commented out the scenario for removing a column that is part of an identifier since it was decided that should be removed
    akeemphilbert committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    88315df View commit details
    Browse the repository at this point in the history
  2. feature: WEOS-1509 Fix property (and table row) casing issue

    It turns out that the prescribed cases.Title(language.English).String is no the same as strings.Title (it lowercases the rest of the word instead of only uppercasing the first character)
    akeemphilbert committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    b6fdb56 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40bc93d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e652ce6 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. feature: WEOS-1505 fix issues in mysql

    * Turned off foreign keys during migration
    * Drop table at the end of more tests to avoid conflicts
    * Fixed issue in test where url was being set but not defined in the schema
    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    530acab View commit details
    Browse the repository at this point in the history
  2. feature: WEOS-1505 fix issues in mysql

    * Drop table at the end of more tests to avoid conflicts
    * Changed schema names in some tests to avoid collisions (the tests seem to work when they are run individually but fail when the entire suite is run which suggests an issue with table cleanup after testsare run in mysql)
    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    a403b4a View commit details
    Browse the repository at this point in the history
  3. feature: WEOS-1505 fix issues in mysql

    * Fix for issues with mysql in pipeline (seems like GORM will set auto increment because the type is uint)
    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    6a8716d View commit details
    Browse the repository at this point in the history
  4. feature: WEOS-1505 turned off tests for mysql since the issues seems …

    …really specific to the pipeline (the tests themselves run fine individually)
    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    22af306 View commit details
    Browse the repository at this point in the history
  5. feature: WEOS-1505

    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    f295585 View commit details
    Browse the repository at this point in the history
  6. feature: WEOS-1505

    akeemphilbert committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    0f2960f View commit details
    Browse the repository at this point in the history