<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="28438" data-post-id="28438">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="pra" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  pra
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>How do we associate different contexts like say user has a account( Account  context) and has many orders( Order context).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="28438" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/94">Post #93</a>
	                </div>
	            </div>
              <div id="likers-container-28438" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="28438"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #93"></div>
  </section>
</div>
    <div class="postbit" id="29877" data-post-id="29877">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sabondano" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sabondano/120/3132_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sabondano
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/wojtekmach" rel="nofollow">@wojtekmach</a> I was wondering what your thoughts are regarding “not respecting” the context boundary as explained on some of the replies above? For example, I see that in hexpm (<a href="https://github.com/hexpm/hexpm49" rel="noopener nofollow ugc">https://github.com/hexpm/hexpm49</a>) you don’t have an accounts.ex file and the controllers reach directly into modules within the context boundary (e.g. UserController reaches into Hexpm.Accounts.User which crosses the “Accounts” context boundary). It seems to me that the phoenix core team is trying to encourage the community to “respect the context boundaries” but looking at hexpm I’m wondering if I’m missing something. Any thoughts you can share with me on this topic would be very appreciated. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="29877" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/96">Post #95</a>
	                </div>
	            </div>
              <div id="likers-container-29877" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="29877"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #95"></div>
  </section>
</div>
    <div class="postbit" id="30311" data-post-id="30311">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wojtekmach" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wojtekmach/120/999_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wojtekmach
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Hex Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/sabondano" rel="nofollow">@sabondano</a> I’m very much in favor of creating and keeping boundaries in my code. To respond to your particular example, I believe you’re referring to line: <code>public_email = User.email(user, :public)</code> in the controller [1]. If so, to be honest, I’m not too concerned about it because if you look into implementation of <code>User.email/2</code> [2] you’d see it operates on <code>user.emails</code> field on the struct. I don’t want to draw the line what’s right and what’s wrong and it’s something I’m still developing an intuition on. However, what I’m sure is I’d be much more concerned if the controller would directly operate on Repo or Queries regarding the User schema.</p>
<p>To give more context (or to make excuses :)) we’ve introduced context modules several months before we’ve made the switch to Phoenix v1.3 structure and it’s still definitely rough around the edges. I think there’s still room for improvement and it’s something I want to pursue.</p>
<p>[1] <a href="https://github.com/hexpm/hexpm/blob/0ce8169739d9baf061d6be5ba9e4940a7d0515b6/lib/hexpm/web/controllers/user_controller.ex#L11" class="inline-onebox" rel="noopener nofollow ugc">hexpm/lib/hexpm/web/controllers/user_controller.ex at 0ce8169739d9baf061d6be5ba9e4940a7d0515b6 · hexpm/hexpm · GitHub</a><br>
[2] <a href="https://github.com/hexpm/hexpm/blob/0ce8169739d9baf061d6be5ba9e4940a7d0515b6/lib/hexpm/accounts/user.ex#L103" class="inline-onebox" rel="noopener nofollow ugc">hexpm/lib/hexpm/accounts/user.ex at 0ce8169739d9baf061d6be5ba9e4940a7d0515b6 · hexpm/hexpm · GitHub</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="30311" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/97">Post #96</a>
	                </div>
	            </div>
              <div id="likers-container-30311" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="30311"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #96"></div>
  </section>
</div>
    <div class="postbit" id="36967" data-post-id="36967">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="MiLk" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/MiLk/120/5592_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  MiLk
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>With the new configuration system:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">on_init: {MyApp.Web.Endpoint, :load_from_system_env, []},
</code></pre>
<p>It seems we are forced to use IPv6 (<a href="https://github.com/phoenixframework/phoenix/blob/438b74255e7a4d68b4eaf1a295d0fcd201c71421/installer/templates/phx_web/endpoint.ex#L52" class="inline-onebox" rel="noopener nofollow ugc">phoenix/installer/templates/phx_web/endpoint.ex at 438b74255e7a4d68b4eaf1a295d0fcd201c71421 · phoenixframework/phoenix · GitHub</a>).</p>
<p>If the old way to do config is deprecated (<a href="https://github.com/phoenixframework/phoenix/blob/da9f7653b9daf29a4c415be52a19ee6f4473e083/lib/phoenix/endpoint/handler.ex#L54" class="inline-onebox" rel="noopener nofollow ugc">phoenix/lib/phoenix/endpoint/handler.ex at da9f7653b9daf29a4c415be52a19ee6f4473e083 · phoenixframework/phoenix · GitHub</a>), how should I configure the port to work if I don’t have IPv6?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="36967" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/98">Post #97</a>
	                </div>
	            </div>
              <div id="likers-container-36967" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="36967"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #97"></div>
  </section>
</div>
    <div class="postbit" id="36974" data-post-id="36974">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Gazler" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Gazler/120/1168_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Gazler
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Phoenix Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>You can remove <code>:inet6</code> from the config. Change this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">{:ok, Keyword.put(config, :http, [:inet6, port: port])}
</code></pre>
<p>to this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">{:ok, Keyword.put(config, :http, [port: port])}
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="36974" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/99">Post #98</a>
	                </div>
	            </div>
              <div id="likers-container-36974" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="36974"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #98"></div>
  </section>
</div>
    <div class="postbit" id="36976" data-post-id="36976">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="MiLk" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/MiLk/120/5592_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  MiLk
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Oh, I didn’t pay attention. I didn’t see it was actually a template used to generate a file in my project.</p>
<p>Thank you!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="36976" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-v1-3-0-rc-0-released/3947/100">Post #99</a>
	                </div>
	            </div>
              <div id="likers-container-36976" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="36976"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>