-
Notifications
You must be signed in to change notification settings - Fork 373
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
Validate industries GHA #711
Conversation
39f554d
to
f2762b1
Compare
|
||
@impl Mix.Task | ||
@doc false | ||
def run([file_path]) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth doing a Path.wildcard
so the function can run over all the files. It would be simpler to do it in Elixir than doing it via a bash shell, and it would be easier for devs to run locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hesitant to run it over all the files as a good majority of the existing company will likely need to be updated. My thought was adding this so that new or updates to company files could have some data consistency for industries.
This was my attempt at something similar to an ecto changeset validation rule without having or adding ecto back to the project.
I'm open to other ideas or approaches.
Adds custom validation so that new / updates to company files add a standard for industries.
Supports #671 in the long term