Conversation
… types of imput data: lists and dict. The current one only supports dicts while unit test explicitely passing list of dicts as one of 6 cases
|
Thank you for your contribution antimirov! We will review the pull request and get back to you soon. |
az webapp config container show: Fix accidental side-effect plus make sure this function handles both types of input data, lists and dict
az webapp config container show: Fix accidental side-effect plus make sure this function handles both types of input data, lists and dictaz webapp config container show: Fix accidental side-effect plus make sure this function handles both types of input data, lists and dict
|
webapp |
az webapp config container show: Fix accidental side-effect plus make sure this function handles both types of input data, lists and dictaz webapp config container show: Fix accidental side-effect plus make sure this function handles both types of input data, lists and dict
|
@StrawnSC Could you please help review the |
|
Could you add a test for this case? Want to make sure everything is being correctly masked. Would also help to have a test for lists and dicts input. |
|
@haroonf let me see what I can do |
|
@antimirov Any update? |
|
Please note that since we will launch the release of this sprint the day after tomorrow. If you cannot address all the comments tomorrow, we will have to postpone the release of this PR to the next sprint (02-07) |
@antimirov Please note that since we will launch the release of this sprint the day after tomorrow. If you cannot address all the comments tomorrow, we will have to postpone the release of this PR to the next sprint (03-07) |
|
@zhoxing-ms Sorry guys, I've been busy with some other tasks at my job. I could not finish any of the tests for this PR on time and I don't know when I'll be able to do it. No ETA at the moment. Maybe someone can help here? If you see the code change, you can judge its value. And whether reject this PR or not it's up to you. Apparently, when this code was produced, no tests were required and it was fine back then. |
|
@antimirov Ok, I postpone the release of this PR to the next sprint. You can refer to document authoring_tests.md to write the tests @haroonf Could you help antimirov add some relevant tests? |
The current implementation only supports dicts while its unit test explicitely passes a list of dicts as one of 6 cases. So it's actually broken in this regard.
Related command
N/A
Description
I've accidentally noticed a side-effect in the function
_mask_creds_related_appsettings()- it's modifying the dictionary it's iterating over, so when it's returning a new dict, in fact the input dict is also being modified, which may lead to some failures later. While fixing it, I also noticed that it's supposed to work with both list or dicts and dicts, while not actually doing it.In fact, this could be a bug, that this function should have only been used for one type of data, and it just accidentally does not break on lists while doing nothing basically, so difficult to spot the problem.
Testing Guide
History Notes
N/A
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.