Repository navigation
Issue #2269: Names starting with underscore must be allowed. Changes … - #2275
Conversation
…nges pattern of StartCharacterExp in Odata.Edm\EdmUtils.cs and added an "underscore" to the pattern.
|
Not sure if I did something wrong, but this is not getting reviewed? |
|
Changes look good. Any chance you could add a simple test to validate names starting with the underscore are now allowed, so that we don't inadvertently break this in the future? |
|
Thank you Mike. Yes, sure, good idea, will add a test. |
|
Hi Mike, unfortunately I cannot get the Unit Tests to run, that was the reason why I did not add a unit test, from the start I was unalbe to get it to run, but since there were no other unit tests on the EdmUtils at that level I thought it will be OK, would have liked to add a test, but after truggling and Googling for 5 hours I gave up. If you have a tip for me or know what I might do to get it running I will appreciate it, else there is no way for me currently to get it working. I upgraded my Visual Studio 2019 to the altest to be sure, but did not help. I have tried upgrading the XUnit runner and packages etc, to no avail. Here is a trace of errors I am getting when I run the "IsQualifiedName_Test" in the "EdmUtilTests" of project Microsoft.Odata.Edm.Tests: |
|
Sorry for the hassle trying to get the tests to run. We are in the process of cleaning up the projects to make them easier to build/test locally, but right now the .NET Framework tests require strong name signing of the assemblies, so the only way to get them to run is to disable strong name check on your machine (not recommended for production machines). There are also .NET Core versions of the tests that you could try, although they have been problematic lately as well, and are part of our clean-up effort. One option would be to add your test and push it to the repo. The CI would then run the test and report any issues. Certainly not ideal, but if the test is pretty straightforward (as I imagine it would be for this issue) it might provide a way forward. Thanks for your efforts. As I say, we're working on making this easier, but I'd like to figure out a way to take this contribution in the meantime. |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
I added a test to the EdmUtil tests, please see if that is satisfactory. |
|
Do you perhaps have an indication of when this change will be next released in the nuget package please? |
|
@elize-vdr sorry that you were having trouble running the tests locally. If you can try applying the commits from this branch: It looks like your test is working successfully on the build machine, so that is a good indication, but it would also be good to make sure that it is working as expected locally. If you can confirm that, we are trying to take this fix in our next release early next week. |
|
Thank you Mike, it will be great if it can be in next release. I am giving the above steps a go to get the tests working locally. |
|
Hi @elize-vdr -- we have merged your PR and it will go out in the next release, targeted for early next week. Thanks again for your contribution! |
Names starting with underscore must be allowed.
Issues
This pull request fixes #2269
Description
Changed pattern of
StartCharacterExpin Odata.Edm\EdmUtils.cs and added an "underscore" to the pattern.