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

Asset Archive Feature #176

Merged
merged 4 commits into from
Aug 1, 2020
Merged

Asset Archive Feature #176

merged 4 commits into from
Aug 1, 2020

Conversation

alejandrosaenz117
Copy link
Collaborator

Pull Request

Fixes #167

Type of change

  • A new feature
  • A bug fix
  • Documentation only changes
  • Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • A code change that neither fixes a bug nor adds a feature
  • A code change that improves performance
  • Adding missing tests or correcting existing tests
  • Changes that affect the build system or external dependencies
  • Changes to our CI configuration files and scripts
  • Other changes that don't modify src or test files

This pull request allows the user to archive assets so that it can be removed from active assets.


Checklist

  • My code follows the contributing guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

alejandrosaenz117 and others added 3 commits July 31, 2020 15:50
Implement the ability to archive assets which includes database, API updates, and UI updates.

BREAKING CHANGE: Additional asset column breaks current model validations.

feat #167
In order to use MySQL and SQLITE3, a column mapper was created to have dynamic column options
available to run the application and its tests

BREAKING CHANGE: Updated column options

feat #167
@alejandrosaenz117
Copy link
Collaborator Author

@DarrellRichards With this pull-request, I have managed to stabilize the unit test infrastructure with Sqlite3. I have added dynamic column options so that that databases are isolated. I have also introduced the node env test which jest will only use. Please review the test within this PR if you're free. Thanks!

@DarrellRichards
Copy link
Contributor

@Whamo12

This LGTM 🚀 🎸

I like the usage of the sqlite3 and mock-express's request & responses instead of the customs ones we started out with.

I ran the test and seeing about 52% line coverage on asset.controller.ts, everything was passing.

@alejandrosaenz117
Copy link
Collaborator Author

I ran the test and seeing about 52% line coverage on asset.controller.ts, everything was passing.

We have an existing issue for the asset controller and the remainder of the tests will be finished there.

Thanks for the review. A lot of unknowns in regard to the backend unit tests were resolved here which makes me happy.

@DarrellRichards
Copy link
Contributor

I ran the test and seeing about 52% line coverage on asset.controller.ts, everything was passing.

We have an existing issue for the asset controller and the remainder of the tests will be finished there.

Thanks for the review. A lot of unknowns in regard to the backend unit tests were resolved here which makes me happy.

Understood, just wanted to make sure I wasn't missing something.

I'm glad everything is coming together so nicely.

Hopefully, I'll have some time upcoming to help the unit testing integration.

@alejandrosaenz117 alejandrosaenz117 merged commit ef85dd0 into develop Aug 1, 2020
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.

2 participants