<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:07 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[GODRIVER-1305] Allow inline fields to be pointers of struct</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1305</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Instant of Stock cannot be written because a pointer of Quantity struct is used inside it.&lt;br/&gt;
 &lt;font color=&quot;#569cd6&quot;&gt;type&lt;/font&gt; &lt;font color=&quot;#4ec9b0&quot;&gt;Quantity&lt;/font&gt; &lt;font color=&quot;#569cd6&quot;&gt;struct&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; {&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;InCarton &lt;/font&gt;&lt;font color=&quot;#4ec9b0&quot;&gt;float64&lt;/font&gt; &lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;InCarton&quot; bson:&quot;InCarton&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;InPallet &lt;/font&gt;&lt;font color=&quot;#4ec9b0&quot;&gt;float64&lt;/font&gt; &lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;InPallet&quot; bson:&quot;InPallet&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;InKg &lt;/font&gt;&lt;font color=&quot;#4ec9b0&quot;&gt;float64&lt;/font&gt; &lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;InKg&quot; bson:&quot;InKg&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;InCBM &lt;/font&gt;&lt;font color=&quot;#4ec9b0&quot;&gt;float64&lt;/font&gt; &lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;InCBM&quot; bson:&quot;InCBM&quot;`&lt;/font&gt;&lt;/p&gt;

&lt;p&gt; type &lt;font color=&quot;#4ec9b0&quot;&gt;Stock&lt;/font&gt; &lt;font color=&quot;#569cd6&quot;&gt;struct&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt; {&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;Batch &lt;/font&gt;&lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;,inline&quot; bson:&quot;,inline&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;Quantity &lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;*&lt;/font&gt;&lt;font color=&quot;#d4d4d4&quot;&gt;Quantity &lt;/font&gt;&lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;,inline&quot; bson:&quot;,inline&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;MovementHistory Movements &lt;/font&gt;&lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;MovementHistory&quot; bson:&quot;MovementHistory&quot;`&lt;/font&gt;&lt;br/&gt;
 &lt;font color=&quot;#d4d4d4&quot;&gt;&#160;&#160;&#160;&#160;CostPerKg &lt;/font&gt;&lt;font color=&quot;#ce9178&quot;&gt;`json:&quot;&lt;del&gt;&quot; bson:&quot;&lt;/del&gt;&quot;`&lt;/font&gt;&lt;/p&gt;

&lt;p&gt; Error message is described as below:&lt;/p&gt;

&lt;p&gt;panic: cannot transform type *simcel.TransportOrderLine to a BSON Document: (struct simcel.Stock) inline fields must be either a struct or a map&lt;/p&gt;</description>
                <environment></environment>
        <key id="918261">GODRIVER-1305</key>
            <summary>Allow inline fields to be pointers of struct</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="isabella.siu@mongodb.com">Isabella Siu</assignee>
                                    <reporter username="phuong.nguyen@cel-consulting.com">Nguyen Phuong</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Sep 2019 09:07:04 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:33 +0000</updated>
                            <resolved>Mon, 11 Nov 2019 21:54:57 +0000</resolved>
                                    <version>1.1.1</version>
                                    <fixVersion>1.2.0</fixVersion>
                                    <component>BSON</component>
                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2691238" author="phuong.nguyen@cel-consulting.com" created="Mon, 30 Dec 2019 10:10:16 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=divjot.arora&quot; class=&quot;user-hover&quot; rel=&quot;divjot.arora&quot;&gt;divjot.arora&lt;/a&gt;: I fetch the correct version and revision of mongo-driver. It is working well now. Thanks so much. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="2663111" author="divjot.arora" created="Wed, 25 Dec 2019 04:33:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=phuong.nguyen%40cel-consulting.com&quot; class=&quot;user-hover&quot; rel=&quot;phuong.nguyen@cel-consulting.com&quot;&gt;phuong.nguyen@cel-consulting.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Per output from the &lt;tt&gt;git show&lt;/tt&gt; command, c50d02 is the commit corresponding to the v1.1.1 release.&#160;b414b89, which your dep output shows for the &lt;tt&gt;LATEST&lt;/tt&gt; column, is the commit corresponding to the v1.1.0 release.&#160;&lt;a href=&quot;https://golang.github.io/dep/docs/daily-dep.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://golang.github.io/dep/docs/daily-dep.html&lt;/a&gt;&#160;should have any information you need to correctly update the package. I don&apos;t remember off hand, but something like &lt;tt&gt;dep ensure -update go.mongodb.org/mongo-driver&lt;/tt&gt; might work.&lt;/p&gt;</comment>
                            <comment id="2660964" author="phuong.nguyen@cel-consulting.com" created="Mon, 23 Dec 2019 09:57:12 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=divjot.arora&quot; class=&quot;user-hover&quot; rel=&quot;divjot.arora&quot;&gt;divjot.arora&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I am using dep to manage dependencies. And here is the dep status of mongo-go driver:&lt;/p&gt;

&lt;p&gt;PROJECT&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; CONSTRAINT&#160;&#160;&#160;&#160;&#160; VERSION&#160;&#160; REVISION &#160;&#160;&#160; LATEST&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; PKGS&#160;&#160;&#160;&#160;&#160;&#160;&#160; USED&lt;/p&gt;

&lt;p&gt;go.mongodb.org/mongo-driver&#160;&#160;&#160; ^1.2.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; v1.2.0&#160;&#160;&#160;&#160;&#160;&#160;&#160; c520d02&#160;&#160;&#160;&#160;&#160;&#160; b414b89&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 28&lt;/p&gt;

&lt;p&gt;Is the fix not included in revision &lt;b&gt;c520d02&lt;/b&gt; ?&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;

&lt;p&gt;Nguyen Hoai Phuong&lt;/p&gt;</comment>
                            <comment id="2657364" author="divjot.arora" created="Fri, 20 Dec 2019 14:58:40 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=phuong.nguyen%40cel-consulting.com&quot; class=&quot;user-hover&quot; rel=&quot;phuong.nguyen@cel-consulting.com&quot;&gt;phuong.nguyen@cel-consulting.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I checked out the v1.2.0 tag and looked for that error, but it no longer exists. The error is now &quot;inline fields must be a struct, a struct pointer, or a map&quot;. Also, I tried running &lt;tt&gt;bson.Marshal&lt;/tt&gt; against a &lt;tt&gt;Parent&lt;/tt&gt; instance per your type definitions and got a document {ParentID: 1, ChildID: 2}, which I believe is the expected result.&lt;/p&gt;

&lt;p&gt;Can you provide the git commit hash of the driver that you&apos;re building against? That will help us determine what&apos;s going wrong.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                            <comment id="2655514" author="phuong.nguyen@cel-consulting.com" created="Fri, 20 Dec 2019 08:30:41 +0000"  >&lt;p&gt;@Jeffrey Yemin: I tested this release version 1.2.0 and I found the issue still there while reading data from mongodb:&lt;/p&gt;

&lt;p&gt;panic: (struct simcel.Parent) inline fields must be either a struct or a map &lt;span class=&quot;error&quot;&gt;&amp;#91;recovered&amp;#93;&lt;/span&gt;&lt;br/&gt;
 panic: (struct simcel.Parent) inline fields must be either a struct or a map&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;type Child struct {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  ChildID &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; `json:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;ChildID&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; bson:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;ChildID&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;`    &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;type Parent struct {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  ParentID &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; `json:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;ParentID&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; bson:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;ParentID&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;`&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  *Child   `json:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;,inline&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; bson:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;,inline&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;`&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;ParentID&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;ChildID&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;1&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;1&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;1&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&#160;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2529904" author="xgen-internal-githook" created="Mon, 11 Nov 2019 21:54:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;iwysiu&apos;, &apos;email&apos;: &apos;isabella.siu@10gen.com&apos;, &apos;name&apos;: &apos;iwysiu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1305&quot; title=&quot;Allow inline fields to be pointers of struct&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1305&quot;&gt;&lt;del&gt;GODRIVER-1305&lt;/del&gt;&lt;/a&gt; allow inline fields to be pointers to structs (#211)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/894900dd22227cf593b204c577c6c7164b373e0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/894900dd22227cf593b204c577c6c7164b373e0e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2508271" author="divjot.arora" created="Wed, 30 Oct 2019 14:07:26 +0000"  >&lt;p&gt;I did some investigation into the globalsign/mgo behavior. Some key points that we should emulate (or document if we deviate):&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Inline is only allowed for pointers to structs, not maps.&lt;/li&gt;
	&lt;li&gt;Setting an inline struct pointer to nil results in it being skipped while marshalling.&lt;/li&gt;
	&lt;li&gt;Setting an inline pointer to the empty struct results in each struct field being marshalled as its 0 value.&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="2479420" author="phuong.nguyen@cel-consulting.com" created="Mon, 14 Oct 2019 03:16:58 +0000"  >&lt;p&gt;@Jeffrey Yemin: Thanks. It is really useful information.&lt;/p&gt;</comment>
                            <comment id="2478571" author="jeff.yemin" created="Fri, 11 Oct 2019 19:46:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=aaron%40aaha.co&quot; class=&quot;user-hover&quot; rel=&quot;aaron@aaha.co&quot;&gt;aaron@aaha.co&lt;/a&gt; that&apos;s really useful information.  Thanks for sharing it.  As you can see, we have re-opened this ticket so we do plan to do it, though we don&apos;t yet have a scheduled fix version for it.&lt;/p&gt;</comment>
                            <comment id="2478566" author="aaron@aaha.co" created="Fri, 11 Oct 2019 19:44:07 +0000"  >&lt;p&gt;Last year, mgo accepted a merge request allowing this.&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/globalsign/mgo/pull/217&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/globalsign/mgo/pull/217&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our company implemented this MR for mgo, and one of the blockers to moving to mongo-go is that it is not supported.&lt;/p&gt;</comment>
                            <comment id="2418346" author="kris.brandow" created="Thu, 12 Sep 2019 17:39:00 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lou.adrien%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;lou.adrien@gmail.com&quot;&gt;lou.adrien@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We are following the same conventions as &lt;tt&gt;mgo&lt;/tt&gt; in this case. The &lt;tt&gt;mgo/bson&lt;/tt&gt; package does not allow pointers to structs to be marked inline. As I said above, it is possible to copy and modify the struct codec to implement your own version of it that allows inlining of pointers to structs.&lt;/p&gt;

&lt;p&gt;--Kris&lt;/p&gt;</comment>
                            <comment id="2414665" author="lou.adrien@gmail.com" created="Tue, 10 Sep 2019 15:31:56 +0000"  >&lt;p&gt;@Kristofer I am not sure to understand why this should not be part of the core driver. Yes it raises a few question about edges cases values for these types, but this could be documented clearly, if you want avoid confusion, you could take the same convention as MGO.&lt;/p&gt;

&lt;p&gt;Embedded pointer is an extremely common practice in go, for many reasons, not supporting it would mean that a huge part of the codebase structures of most project would not be usable with the driver out of the box. Would this not be enough to consider implementing it?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;</comment>
                            <comment id="2413481" author="kris.brandow" created="Mon, 9 Sep 2019 20:17:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=phuong.nguyen%40cel-consulting.com&quot; class=&quot;user-hover&quot; rel=&quot;phuong.nguyen@cel-consulting.com&quot;&gt;phuong.nguyen@cel-consulting.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;While we see the value in adding the ability to inline a pointer, the introduction of this behavior raised several questions. For example, what happens when the pointer is nil? Do we encode each of the values or do we encode nil? How does it interact with omitempty? Even if we defined these, we don&apos;t feel that it would be straight forward for most users and would likely cause confusion for users. For that reason, we&apos;ve decided not to do this.&lt;/p&gt;

&lt;p&gt;If you do need this functionality, please send a message to the mailing list where someone can help you implement a custom codec or the &lt;tt&gt;bson.Marshaler&lt;/tt&gt; and &lt;tt&gt;bson.Unmarshaler&lt;/tt&gt; interfaces for your types.&lt;/p&gt;

&lt;p&gt;--Kris&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvaolb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>