slalombuild / secureli

seCureLI is a tool that enables you to experience the delight of building products by helping you get ideas from your head into working software as frictionlessly as possible, in a reliable, secure, scalable, and observable way.
Apache License 2.0
28 stars 3 forks source link

Move all model class items from SERVICE files to shared/models.py #441

Open JordoHeffernan opened 5 months ago

JordoHeffernan commented 5 months ago

As a secureli contributor, I want shared models to be located in a central location

AC

  1. create a new file called models.py in the shared directory (create it if it does not yet exist)
  2. Move any model classes that exist at the top of files in the Services directory to the new file IF they are reused in multiple files (depending on order of operations, these files may now live in their respective modules) a. models that are only used in the file in which they're defined should be left as is.
  3. Move existing code that are in one off files in the models directory to shared/models.py a. delete models directory after this is done.
  4. Update any and all dependent imports (VS code should do this for you)

Notes