Skip to content

Commit e56e2dc

Browse files
authored
Merge branch 'v3.0' into docsp-43125-remove-logging
2 parents b8e1279 + 6622421 commit e56e2dc

File tree

7 files changed

+73
-12
lines changed

7 files changed

+73
-12
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Add Netlify Links To Changed Pages
2+
on:
3+
workflow_call:
4+
pull_request_target:
5+
jobs:
6+
get-pr-changes:
7+
name: Get Changed Files & Update PR Description
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
contents: write
12+
pull-requests: write
13+
repository-projects: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Get Changed Files
17+
id: changed-files
18+
uses: tj-actions/changed-files@v44
19+
with:
20+
separator: ","
21+
files: source/**
22+
- name: Build Netlify Links for Changed Pages
23+
id: build_page_links
24+
run: |
25+
new_links=""
26+
base_link='https://deploy-preview-${{ github.event.number }}--mongodb-docs-csharp.netlify.app'
27+
changed_files=${{ steps.changed-files.outputs.all_changed_files }}
28+
files=$(echo $changed_files | tr "," "\n")
29+
for file in $files; do
30+
echo "processing ${file}"
31+
if (! grep -s "includes/" <<< $file) &&
32+
(! grep -s "images/" <<< $file) &&
33+
(! grep -s "examples/" <<< $file); then
34+
file="${file#source}"
35+
file="${file%.txt}"
36+
filenoslash="${file:1}"
37+
echo "${base_link}${file}"
38+
new_links+="<li><a href=${base_link}${file}>${filenoslash}</a></li>"
39+
else
40+
echo "(file skipped)"
41+
fi
42+
done
43+
if [ "$new_links" == "" ]; then
44+
new_links="No pages to preview"
45+
fi
46+
echo "Final new_links string: "
47+
echo "${new_links}"
48+
echo "staging_links=${new_links}" >> "$GITHUB_OUTPUT"
49+
- name: Update the PR Description
50+
uses: MongoCaleb/pr-description-action@master
51+
with:
52+
regex: "<!-- start insert-links -->.*<!-- end insert-links -->"
53+
appendContentOnMatchOnly: true
54+
regexFlags: is
55+
content: "<!-- start insert-links -->\n${{ steps.build_page_links.outputs.staging_links }}\n<!-- end insert-links -->"
56+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/copy-compat-to-docs-shared.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- "source/includes/mongodb-compatibility-table-csharp.rst"
99
- "source/includes/language-compatibility-table-csharp.rst"
10+
workflow_dispatch:
1011

1112
jobs:
1213
copy-file:

source/faq.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,7 @@ If you receive an ``Unsupported filter ...`` or ``Expression not
215215
supported ...`` exception message, try the following
216216
steps:
217217

218-
1. Try configuring the new `LINQ3
219-
<https://mongodb.github.io/mongo-csharp-driver/2.17/reference/driver/crud/linq3/>`__
220-
provider. The LINQ3 provider contains many fixes and new features
221-
over the LINQ2 provider.
222-
#. Use the `{+analyzer+}
218+
1. Use the `{+analyzer+}
223219
<https://www.mongodb.com/docs/mongodb-analyzer/current/>`__ to analyze your
224220
expressions.
225221
#. Try to simplify your query where possible.

source/fundamentals/connection/connection-options.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ relevant options.
198198
| **Default**: ``false``
199199
| **Connection URI Example**: {+not-available+}
200200

201-
* - **LinqProvider**
202-
- | The LINQ provider to use.
203-
|
204-
| **Data Type**: `LinqProvider <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Linq.LinqProvider.html>`__
205-
| **Default**: ``LinqProvider.V3``
206-
| **Connection URI Example**: {+not-available+}
207-
208201
* - **LoadBalanced**
209202
- | Specifies whether the driver is connecting to a load balancer. You can set this
210203
| property to ``true`` only if:

source/fundamentals/linq.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ strongly typed collections of objects by using language keywords and operators.
2828
The {+driver-short+} automatically translates LINQ queries into
2929
:manual:`aggregation operations </aggregation>`.
3030

31+
.. important::
32+
33+
LINQ3 is the only LINQ provider available in the {+driver-long+}. If you have
34+
manually configured your project to use LINQ2, it will not compile.
35+
3136
The examples in this guide use the ``restaurants`` collection
3237
in the ``sample_restaurants`` database provided in the :atlas:`Atlas sample datasets </sample-data>`.
3338
To learn how to create a free MongoDB Atlas cluster and load the sample datasets,

source/upgrade.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Version 3.0 Potential Breaking Change
6969
- This version removes the ``ClusterBuilder.ConfigureSdamLogging()`` method.
7070
To configure logging in your application, see the :ref:`csharp-logging` guide.
7171

72+
- The LINQ2 provider has been removed from this version of the driver.
73+
You must use LINQ3 for all LINQ queries.
74+
7275
.. _csharp-breaking-changes-2.28.0:
7376

7477
Version 2.28.0 Potential Breaking Change

source/whats-new.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ What's New in 3.0
4343
The v3.0 driver contains breaking changes. See :ref:`<csharp-breaking-changes-3.0>`
4444
for more information.
4545

46+
The 3.0 driver release includes the following new features:
47+
48+
- Removes the
49+
`mongocsharpdriver <https://www.nuget.org/packages/mongocsharpdriver/#readme-body-tab>`__ NuGet package,
50+
which implements the v1.x driver API in driver versions 2.x. This package will no
51+
longer receive updates.
52+
4653
.. _csharp-version-2.28:
4754

4855
What's New in 2.28

0 commit comments

Comments
 (0)