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/227 #229

Merged
merged 88 commits into from
Jan 18, 2023
Merged

Feature/227 #229

merged 88 commits into from
Jan 18, 2023

Commits on Jul 28, 2022

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

Commits on Aug 6, 2022

  1. Configuration menu
    Copy the full SHA
    c96e60c View commit details
    Browse the repository at this point in the history
  2. Fixed #198: Added EntityRepository interface

    * Switched to directly using the model projections interface (instead of the projections.Projection)
    * Updated the middleware interface signature to have EntityRepository (removed Projection, EventRepository, EntityFactory)
    * Removed default controllers (since they are going to be reworked anyway in #209)
    * Removed default middleware (since they are going to be reworked anyway in #209)
    * Created Function to get repository from context
    * Moved EntityFactory to interfaces.go file
    * Impelmented EntityRepository on GORMDB
    * Small updates to get end2end to run
    akeemphilbert committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    67de3d3 View commit details
    Browse the repository at this point in the history
  3. Fixed #209: Setup basic default write controller

    * Removed httpClient object form RESTAPI
    * Updated mocks
    * Added documentation for the WeOS initialization etc
    akeemphilbert committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    93a6165 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2022

  1. Fixed #209: Added DefaultReadController

    * Updated StandardInitializer
    * Deprecated stanard controllers and middleware
    akeemphilbert committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    e6a8594 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1abdb57 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68d1ff3 View commit details
    Browse the repository at this point in the history
  4. wip #209: Updated controller signature so that the operation is a map…

    … with the method as the key
    
    * Removed unused middleware and controllers from controller_standard.go
    * Moved the command resolution outside of the echo handler so it's only done once (instead of on every request)
    * Removed initializers that setup middleware that was removed
    akeemphilbert committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    9693ce1 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'feature/209' into feature/210

    # Conflicts:
    #	controllers/rest/controller_standard.go
    akeemphilbert committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    edd068d View commit details
    Browse the repository at this point in the history
  6. feature #210: Pass EntityRepository to Command Receivers

    * Removed CreateBatch handler (this will now be handled by the Create receiver)
    * EventRepository is no longer passed in from the controller. It's instead pulled from the container in the receiver
    * Updated the command signature such that the entity repository is passed in and an interface was added to the command dispatch return (this is to avoid having to do an extra query in the controller, also to facilitate id generation in the receiver)
    * Updated mocks because of the update to the command signature
    * Updated the create handler in a basic way
    * Update the delete handler in a basic way
    * Update the update hanlder in a basic way
    * Added container mock in the model package since the event repository is retrieved from the container and the receiver will need to mock the container. Note that it was not added to the other mocks_test.go because that is used to make mocks in other packages and would cause a conflict if copied to the weos_mocks_test.go
    akeemphilbert committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    2a6a001 View commit details
    Browse the repository at this point in the history
  7. feature #205: Updated command receivers

    * Added sequence no. to delete command factory
    * Added a bit of documentation for repository
    * Added methods to EntityRepository interface for deleting and generatingID (and updated the mocks accordingly)
    * Updated receivers to try to get entity using entity id if available otherwise use the identifier from the entity
    * Updated GORMDB repository to implement new EntityRepository methods
    akeemphilbert committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    b7a646f View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2022

  1. feature #205: Updated EntityFactoryInitializer to be EntityRepository…

    …Initializer
    
    * Created factory method for GORMRepository
    * Updated event store to get entitytype from entity if it's a content entity
    akeemphilbert committed Aug 8, 2022
    Configuration menu
    Copy the full SHA
    3aa122b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. feature: #209 Add Default Controllers

    * Added a separate List Controller
    * Created utility to get the requested content type based on the "Accept" header (need to add code to process priority)
    akeemphilbert committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    d460b27 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    506859a View commit details
    Browse the repository at this point in the history
  2. feature: #209 Added code to render templates response

    * Added code to parse the response configuration and setup serving files, templates, and folder
    akeemphilbert committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    3dab4d5 View commit details
    Browse the repository at this point in the history
  3. feature: #209 Added huge workaround that hardcodes static serving to /

    * Moved the static render code outside the request handler
    akeemphilbert committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    ff17f52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9454910 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49b63ee View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2781d61 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

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

Commits on Aug 15, 2022

  1. feature: #194 Added x-inline extension to mark schema as inline

    * Updated gorm extension to marshal a property that is an array or object that references a schema that is marked as inline with the x-inline extension
    * Made it so that an error is thrown when a property that references an inline model is processed as a gorm model (when this happens it is treated as a string)
    * Updated content entity to parse strings for inline schemas so they are returned correctly
    akeemphilbert committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    1e817d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38bf908 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d137f5e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9780380 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    15efee2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    84dc4aa View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Configuration menu
    Copy the full SHA
    f8ea629 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    edd7302 View commit details
    Browse the repository at this point in the history
  3. feature: #194 Got entity with inline schemas saving

    * Made a few related schemas inline
    * Updated what is returned when a handler panics a bit to try to get more info
    * Made it so that properties that are referencing inline schemas can also be null
    * Added weos_id and sequence no. to the payload so that it could be persisted correctly
    * Added integration test for inline schema
    akeemphilbert committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    2c69316 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2022

  1. Merge branch 'dev' into feature/194

    # Conflicts:
    #	model/mocks_test.go
    akeemphilbert committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    ab58a21 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5897f30 View commit details
    Browse the repository at this point in the history
  3. feature: #194 #209 Test Fixes

    * Removed tests that checked that default middleware was added
    * Added etag header if command response is a content entity
    * Updated operation initializer so that DefaultWriteController is used
    * Fixed issue where the schema properties were not being read correctly in the ContentEntity Identifier method
    * Updated end to end step to use entity repository instead of entity factory
    akeemphilbert committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    6ae69f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2022

  1. feature: #209 Added path to the controller function interface to bene…

    …fit th default reader controller
    akeemphilbert committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    ebdbcfc View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2022

  1. Configuration menu
    Copy the full SHA
    839a2a3 View commit details
    Browse the repository at this point in the history
  2. feature: #218 Add global initializer for entity repositories

    * Setup new global initializer
    * Removed unused variable "schema" as it doesn't seem to be used and caused a shadow declaration
    * Updated operation initializer to inject registered schema and add to context
    akeemphilbert committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    df6eeb8 View commit details
    Browse the repository at this point in the history
  3. feature: #209 Made it so that if the accept header is empty return em…

    …pty response type
    
    It was returning the first content type
    akeemphilbert committed Aug 27, 2022
    Configuration menu
    Copy the full SHA
    f541368 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    62dc438 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2022

  1. fix: Switched to using entity repository

    * Skipped test after realizing that parsing an array is not working correctly. Will need to circle back to that
    akeemphilbert committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    ed1b729 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52b277b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa2ada2 View commit details
    Browse the repository at this point in the history
  4. fix: Made it so that error is returned on DefaultWriteController so t…

    …hat individual projects can handle
    akeemphilbert committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    f02152c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    67ef537 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. feature: #209 Made it so that the DefaultWriteController is used when…

    … x-command is set on POST,PATCH,PUT,DELETE operations
    akeemphilbert committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    53caa6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f37ae3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b3062a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    73d2487 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

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

Commits on Sep 7, 2022

  1. Configuration menu
    Copy the full SHA
    6e37fa3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2fa7e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    716d494 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d72929 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a0e2b6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bc3886f View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

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

Commits on Sep 16, 2022

  1. feature #209 Fix issue where autoConfigure was not being set to true …

    …so the list controller was not being attached
    akeemphilbert committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    0404643 View commit details
    Browse the repository at this point in the history
  2. feature #209 wrapped list logic in a check for existance of an entity…

    … repository. This is because the list controller is the new default controller
    akeemphilbert committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    e88cc43 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2022

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

Commits on Sep 20, 2022

  1. feature #223 fix primary key comparison issues by checking to see if …

    …the current property is in the primary key array
    akeemphilbert committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    90fd8c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1c8f37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e87c141 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

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

Commits on Oct 2, 2022

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

Commits on Oct 3, 2022

  1. Configuration menu
    Copy the full SHA
    49dd3f2 View commit details
    Browse the repository at this point in the history
  2. feature: #224 Started setting up table alias code

    * Switched odbc connection to use Database name for the DSN
    akeemphilbert committed Oct 3, 2022
    Configuration menu
    Copy the full SHA
    6b1e77f View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. Configuration menu
    Copy the full SHA
    00c994c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d162bf View commit details
    Browse the repository at this point in the history
  3. feature: #224 added log line

    akeemphilbert committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    2ffc767 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. feature: #224 added log line

    akeemphilbert committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    578c9e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4dad3c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2022

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

Commits on Oct 28, 2022

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

Commits on Nov 23, 2022

  1. Configuration menu
    Copy the full SHA
    0bc1c71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2449950 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    92e26c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2f2dd45 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c32bb50 View commit details
    Browse the repository at this point in the history
  6. Revert "feature: #224 added log line"

    This reverts commit 578c9e0.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    a46c1fb View commit details
    Browse the repository at this point in the history
  7. Revert "feature: #224 added log line"

    This reverts commit 2ffc767.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    9e60cf2 View commit details
    Browse the repository at this point in the history
  8. Revert "feature: #224 put back in username and password in the connec…

    …tion string"
    
    This reverts commit 1d162bf.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    4feaf8c View commit details
    Browse the repository at this point in the history
  9. Revert "feature: #224 import odbc library as a side import"

    This reverts commit 00c994c.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    79771f8 View commit details
    Browse the repository at this point in the history
  10. Revert "feature: #224 Started setting up table alias code"

    This reverts commit 6b1e77f.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    f2e581f View commit details
    Browse the repository at this point in the history
  11. Revert "add support for odbc connection"

    This reverts commit 49dd3f2.
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    753ed2b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cb3f3e5 View commit details
    Browse the repository at this point in the history
  13. feature: #224 fix issue where security enforcer was not working when …

    …deployed to the server
    
    * Added debug message when user is blocked from a path
    akeemphilbert committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    fde552b View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. feature: #227 Added tests for the IAM functionality

    * Updated the signature for SQLConnectionFromConfig to return the connection string to make it more testable
    * Added two variable to the DB config, one for specifying that IAM is to be used and the other for the AWS Region
    * Added InvalidAWSDriver error to be used when an incompatible driver is specified
    akeemphilbert committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    29b888d View commit details
    Browse the repository at this point in the history
  2. feature #227: updated the SQLConnectionFromConfig function to connect…

    … to a db using IAM in AWS
    IshikaGopie committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    25f97e9 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. feature #227: updated connection string to include the parameters tha…

    …t are needed to get the mysql working with GORM
    IshikaGopie committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    0d1a631 View commit details
    Browse the repository at this point in the history