-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
API: Remove projectIds
from Export Workspace Data
response.
#425
Comments
/attempt |
Assigned the issue to @Meeran-Tofiq! |
Hello, everyone! I have already implemented the removal of the project IDs being exported. In the issue it is stated that there are changes that need to be made to the E2E tests of If it is necessary for me to make new tests to make sure that there ISN'T project IDs in the exported data, I'd gladly do so. But I didn't want to fill the test file with unnecessary tests, unless instructed to otherwise. Should I implement the new tests? |
I think in that case you can update the existing test to do a deep equality check for the presence of the fields (not the values). That should do it. |
Hello again. I believe this test already adequately tests for the existence of necessary keys in the returned object. I believe it will be unnecessary to make changes to it. I am a beginner and I apologize if I'm going about this the wrong way. If no extra tests are required, I will go ahead and make the pull request :) thanks |
Hey! We do appreciate you pinging us with your suggestion. In fact, we encourage that highly. Coming to your question, yes, this is present. What we also want is, just try to fetch the 0th element in the array and check if the required fields are present or not. That's all that we need. |
🎉 This issue has been resolved in version 2.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Calling
/api/workspace/:workspaceSlug/export-data
fetches us all the roles, projects, environments, variables and secrets of a workspace. Just that in the roles listing, we also get theprojectIds
associated to that role. We would want to exclude this selection.Solution
keyshade/apps/api/src/workspace/service/workspace.service.ts
Lines 275 to 356 in a97681e
workspace.e2e.spec.ts
to reflect this scenario.The text was updated successfully, but these errors were encountered: