Closed mikailkarimi closed 2 years ago
Sorry, first time work on this repo so I have some basic questions:
Do we need to squash all changes into one to keep history clean before merge?
Do we need to release a new version for this API change and should I follow the semver, where the next version will be 0.38.0
with this public API change?
you've committed your redis database, you shouldn't.
Do we need to squash all changes into one to keep history clean before merge?
You can have multiple commits if they makes sense. Commits like "fix linter" etc should definitely be squashed.
Do we need to release a new version for this API change
No. Releases are handled separately. And you don't need to cut a release to get your change deployed on our Shipit instance.
Can you remove the redis database before merging?
Sorry, I felt so bad about it. I'll either stop the redis or select the files I really need to commit. 🤦♂️
🤷 What are you trying to accomplish?
We need API support for archive/
locka stack for our project. Modifying the API to be able to perform archive andlockfunctionalities on one stack. This includes unarchiving andunlockingfunctionalities as well.Updated: As mentioned in PR review comment, there is a locks_controller we could directly leverage.
🛠️ How did you accomplish this and why did you choose this approach?
Modified the api/stacks_controller.rb to align with the current stacks_controller.rb. In order to avoid modification to the API behaviour, when the keys are not provided, we do not perform any modification to the stack. I added testing to the testing file to accommodate this change.
🎩 Tophat
In order to run tests in local, I installed redis.
Then because I'm using M1, so I need to follow the instruction to install
libpq
before I canbundle install
Then all tests should pass.