-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat: Added IsMeasurement option to Column attribute #240
Conversation
Codecov Report
@@ Coverage Diff @@
## master #240 +/- ##
==========================================
+ Coverage 85.28% 85.49% +0.21%
==========================================
Files 71 72 +1
Lines 6366 6424 +58
==========================================
+ Hits 5429 5492 +63
+ Misses 937 932 -5
Continue to review full report at Codecov.
|
I've been able to run the most immediately relevant unit tests without issue, but I'm struggling to run tests that depend on a live instance of InfluxDB. How can I configure the tests to run against my InfluxDB server? |
Thanks for your PR 👍
You can configure following env variables:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your PR 👍
There are a few requirements that must be be satisfy before we accept the PR:
43f4ca5
to
9b66c82
Compare
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
@bednar I am having a miserable time trying to get these tests to run. I've been able to set up my environment variables, I've enabled HTTP in my influxdb.conf, and I am running an instance of InfluxDB 2.0.8
Is there some documentation I'm missing for how to correctly set up a test environment? |
The best way to prepare testing environment is use a |
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
@bednar thank you so much for the hand holding. I was ultimately able to set up a debian container with docker, the .net SDK, this repository, and run the influxdb-restart and ci-test.sh scripts with no errors. I hope you don't mind but I took the liberty of:
Something still isn't quite right when using linq. My results appear to be correct but the measurement property is not being populated. I'll keep digging and see what I can find. |
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
The measurement column was being explicitly dropped by the QueryAggregator in BuildFluxQuery. I have removed _measurement from the list of dropped columns. Is this ok by you? I don't want to introduce any performance issues. |
…ement names in POCO classes (influxdata#240)
It is definitely increase amount of data transferred from the server. What do you think about configure this dropping by QueryableOptimizerSettings? |
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
I've added optimization settings for dropping start, stop and measurement columns. At this point I believe I'm done. My application is happily reading/writing to influx using both raw flux and linq queries. The failing test |
I don’t think so. It looks like that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your PR 👍. We are almost done.
Can you please update a README.md for LINQ driver with information how to use filtering by measurement?
https://github.com/influxdata/influxdb-client-csharp/blob/master/Client.Linq/README.md
…ement names in POCO classes (influxdata#240)
…ement names in POCO classes (influxdata#240)
@bednar I've gone ahead and updated the README documents, please let me know if you need anything else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Proposed Changes
Added IsMeasurement option to Column attribute, allowing for dynamic measurement names in POCO classes
Checklist
dotnet test
completes successfully