Skip to content

Commit

Permalink
This is a combination of 2 commits.
Browse files Browse the repository at this point in the history
lint

update licenses
  • Loading branch information
Geoffroy Couprie committed Dec 12, 2022
1 parent dce1978 commit 60a3b2e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apollo-router/src/query_planner/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl PlanNode {
let mut futures = Vec::new();

let (primary_sender, _) =
tokio::sync::broadcast::channel::<(Value, Vec<Error>)>(1);
tokio::sync::broadcast::channel::<(Value, Vec<Error>)>(1);

for deferred_node in deferred {
let fut = deferred_node
Expand Down Expand Up @@ -272,7 +272,6 @@ impl PlanNode {
subselection = primary_subselection.clone();
let _ = primary_sender.send((value.clone(), errors.clone()));
}

}
.instrument(tracing::info_span!(
DEFER_SPAN_NAME,
Expand Down
4 changes: 2 additions & 2 deletions apollo-router/src/services/execution_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ where
response.has_next = Some(has_next);
}

response.errors = response.errors.into_iter().filter(|error| match &error.path {
response.errors.retain(|error| match &error.path {
None => true,
Some(error_path) => query.contains_error_path(operation_name.as_deref(), response.subselection.as_deref(), response.path.as_ref(), error_path),
}).collect();
});
ready(Some(response))
}
// if the deferred response specified a path, we must extract the
Expand Down
64 changes: 61 additions & 3 deletions licenses.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Third Party Licenses</h1>

<h2>Overview of licenses:</h2>
<ul class="licenses-overview">
<li><a href="#MIT">MIT License</a> (75)</li>
<li><a href="#MIT">MIT License</a> (77)</li>
<li><a href="#Apache-2.0">Apache License 2.0</a> (53)</li>
<li><a href="#ISC">ISC License</a> (12)</li>
<li><a href="#BSD-3-Clause">BSD 3-Clause &quot;New&quot; or &quot;Revised&quot; License</a> (6)</li>
Expand Down Expand Up @@ -10011,7 +10011,7 @@ <h4>Used by:</h4>
<ul class="license-used-by">
<li><a href=" https://github.com/abumni/inflector ">str_inflector</a></li>
</ul>
<pre class="license-text">Copyright (c) &lt;year&gt; &lt;owner&gt;
<pre class="license-text">Copyright (c) &lt;year&gt; &lt;owner&gt; All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down Expand Up @@ -10160,7 +10160,7 @@ <h4>Used by:</h4>
<ul class="license-used-by">
<li><a href=" https://github.com/dropbox/rust-alloc-no-stdlib ">alloc-stdlib</a></li>
</ul>
<pre class="license-text">Copyright (c) &lt;year&gt; &lt;owner&gt;.
<pre class="license-text">Copyright (c) &lt;year&gt; &lt;owner&gt;. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down Expand Up @@ -12119,6 +12119,34 @@ <h4>Used by:</h4>
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.</pre>
</li>
<li class="license">
<h3 id="MIT">MIT License</h3>
<h4>Used by:</h4>
<ul class="license-used-by">
<li><a href=" https://github.com/danaugrs/overload ">overload</a></li>
</ul>
<pre class="license-text">MIT License

Copyright (c) 2019 Daniel Augusto Rizzi Salvadori

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.</pre>
</li>
<li class="license">
Expand Down Expand Up @@ -12216,6 +12244,36 @@ <h4>Used by:</h4>
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
</pre>
</li>
<li class="license">
<h3 id="MIT">MIT License</h3>
<h4>Used by:</h4>
<ul class="license-used-by">
<li><a href=" https://github.com/nushell/nu-ansi-term ">nu-ansi-term</a></li>
</ul>
<pre class="license-text">The MIT License (MIT)

Copyright (c) 2014 Benjamin Sago
Copyright (c) 2021-2022 The Nushell Project Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down

0 comments on commit 60a3b2e

Please sign in to comment.