Issue: The API call keeps getting timed out

Issue you'd like to raise.
I keep getting this error for the past couple of days for gpt-3.5-turbo-16k:
Timeout: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=120.0)
The OpenAI API seems to be working fine by itself. Can someone please tell me if they are facing the same issue? Or any suggestions on how to resolve this?
Suggestion:
No response

This has to be raised as an issue against OpenAI and not against langhain

This has to be raised as an issue against OpenAI and not against langhain

I tried using the OpenAI API in parallel to LangChain. OpenAI seemed to be doing fine.

This has to be raised as an issue against OpenAI and not against langhain

I tried using the OpenAI API in parallel to LangChain. OpenAI seemed to be doing fine.

@taimoorrf Sure , could you provide your implementation. Do be mindful not to share any keys.

Any updates? Same issue here: LangChain keeps timing out, while OpenAI API works fine.

@mattdl-radix @rjarun8 I seem to hit aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed in addition to this. Could the be on openAI's side? Related maybe?

@mattdl-radix @rjarun8 I seem to hit aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed in addition to this. Could the be on openAI's side? Related maybe?

Few reasins why

The server prematurely closed the connection.

Network issues between the client and the server.

Timeout` issues while waiting for data.

Inconsistent or malformed data being received

As such langchain does not host or run a server.
This is a network call related which could be due to inconsistencies of the openAI API.
Could you please share your implementation.
We can atleast consistently reproduce  and make the errors more interpretable to start with

Hey, @rjarun8 appreciate you looking into this. Firstly, apologies, it looks like this may not be quite the same as what @taimoorrf is experiencing in OP, but it is quite possibly related.
Unfortunately, I cannot share the prompt (customer data and chains are intermingled with our systems), and it would not be of much use as we see this occasionally in our production workloads (across several thousand calls), but can't reproduce without the specific chain/ customer prompts. The prompts are long and heavy, and generate lots of tokens typically (gpt-3.5-turbo-16k used).
This particular error shows up when running the mapreduce (load_summarize_chain()) chain, and doesn't get caught by langchain's retry mechanism. Furthermore, as stated here, it is likely an openai server side issue. We are not using streaming. Now, the problem is, even on retry we will be charged for the tokens, and a retry is likely to result in the same error. IMO, this makes it a high priority issue, god help someone who runs into this, often, on  long running gpt-4 chains. If the chain is not super-deterministic, restarting the whole chain can solve the issue, but for us this would be too expensive - these are long running chains.  There are some suggestions in the related issue that may help reproduce.
For what it's worth I am running chains on modal.com compute and it looks like environment isn't the issue here (multiple successful long running chains).
Here's the trace that should help:
body="<StreamReader e=ClientPayloadError('Response payload is not completed')>" message='Response payload is not completed'
body="<StreamReader e=ClientPayloadError('Response payload is not completed')>" message='Response payload is not completed'
Traceback (most recent call last):
  File "/pkg/modal/_container_entrypoint.py", line 330, in handle_input_exception
    yield
  File "/pkg/modal/_container_entrypoint.py", line 465, in call_function_async
    value = await res
  File "/root/reports.py", line 171, in analyze_document_summarize_llm_chain
    res = await chain.acall(inputs={'input_documents': texts}, return_only_outputs=True)
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/base.py", line 239, in acall
    raise e
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/base.py", line 233, in acall
    await self._acall(inputs, run_manager=run_manager)
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/combine_documents/base.py", line 122, in _acall
    output, extra_return_dict = await self.acombine_docs(
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/combine_documents/map_reduce.py", line 241, in acombine_docs
    map_results = await self.llm_chain.aapply(
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/llm.py", line 206, in aapply
    raise e
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/llm.py", line 203, in aapply
    response = await self.agenerate(input_list, run_manager=run_manager)
  File "/usr/local/lib/python3.9/site-packages/langchain/chains/llm.py", line 116, in agenerate
    return await self.llm.agenerate_prompt(
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/base.py", line 239, in agenerate_prompt
    return await self.agenerate(
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/base.py", line 199, in agenerate
    raise exceptions[0]
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/base.py", line 300, in _agenerate_with_cache
    return await self._agenerate(
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/openai.py", line 431, in _agenerate
    response = await acompletion_with_retry(
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/openai.py", line 95, in acompletion_with_retry
    return await _completion_with_retry(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
  File "/usr/local/lib/python3.9/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.9/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/langchain/chat_models/openai.py", line 93, in _completion_with_retry
    return await llm.client.acreate(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/openai/api_resources/chat_completion.py", line 45, in acreate
    return await super().acreate(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 217, in acreate
    response, _, api_key = await requestor.arequest(
  File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 382, in arequest
    resp, got_stream = await self._interpret_async_response(result, stream)
  File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 727, in _interpret_async_response
    (await result.read()).decode("utf-8"),
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1037, in read
    self._body = await self.content.read()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 349, in read
    raise self._exception
  File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 722, in _interpret_async_response
    await result.read()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1037, in read
    self._body = await self.content.read()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 375, in read
    block = await self.readany()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 397, in readany
    await self._wait("readany")
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 304, in _wait
    await waiter
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed

Good morning.
Thanks for the details.
Some things which can be tried

Verify if you are hitting any OpenAI API rate limits or token limits

please try with sync / async calls

If the issue is token-related, consider breaking down the text into smaller chunks and process them sequentially or in parallel as needed.

If the issue confirms to be 100% server side, guess it will be good to raise a bug against openai.

@rjarun8 Yes, I have confirmed those - there are no rate limit errors, langchain would log and retry on those. These are async calls. And on rerunning the chain (mapreduce), it passes. It looks to be a server side issue. The chunking etc, is all in place. We have been running this on production workloads.

any update on this issue? or is there an openai related issue link?

i'm facing exactly the same problem when call 'acall' on a custom implemented MapReduceDocumentsChain


Update CI to test against kube v1.15.0

What this PR does / why we need it:
kind v0.4.0 now supports kube v1.15.0 so this updates the CI script to deploy and test against kube v1.15.0.
Which issue(s) this PR fixes:
Fixes #1079
Special notes for your reviewer:
Release note:

CI failure of CRD test looks legit - I'm guessing CRD support has changed between 1.14 and 1.15?

The CI failure was due to a couple of race conditions in the FTC controller e2e test after the v2 CRD update is performed:

Querying for all APIs and seeing types.kubefed.io/v1 available, then a subsequent attempt to retrieve resources for this GroupVersion fails because the v1 API eventually goes away after the CRD is updated to v2.
If the case 1 above was not hit, then the attempt to retrieve the CRD resources under the types.kubefed.io/v2 (after the CRD version is updated) would fail with no resources found.

This fix waits until the v2 target CRD is available within the types.kubefed.io/v2 API (similar to the waiting for v1) before proceeding.
The only other failures I have seen were due to either #1084 or #1085, both of which existed before this k8s v1.15.0 PR. #1084 seems to be happening more often now.

LGTM
Thanks for detailed explanation.

👍

/lgtm


[Accessibility] No visible focus for links within adaptive card

Steps to reproduce
Email link within the 'View Email addresses' dialog do not have visible focus, when accessed.
enclosed a complete adaptive card json file in comments "viewEmailAddress.json".
also provided a video file to describe the issue.
Expected behavior
Each and every UI element should have clear visible focus covering the UI, when accessed.
Here links should have visible focus, when accessed.
Actual behavior
Email link within the 'View Email addresses' dialog do not have visible focus, when accessed.
Error details
No response

https://github.com/MicrosoftDocs/msteams-docs/assets/2841857/b852c1f8-9766-4684-9b72-69e646bbeefc
viewEmailAddress.json

Hello @Terry-Shi
Thanks for raising your query we will repro it and get back to you

Hello @Terry-Shi
Could you Please share manifest to test it from our end?

viewEmailAddress.json

Hello @Terry-Shi
We are also able to repro this issue, we will check internally and get back to you.
Update : We raised a bug for this issue, we will keep you posted on the updates. Thank you


Is that possible to test DI without running TestClient requests?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from fastapi import FastAPI

app = FastAPI()

class A:
    def __init__():
        print("Initialized")

my_dep = app.dependency(A)

# Expecting to see "Initialized" in console

Description
Is that possible to test FastAPI DI without running TestClient? For example, test UseCase (clean architecture) without manually instantiating its dependencies.
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.68.0
Python Version
3.9.5
Additional Context
No response

In my understanding, the dependency resolution mechanism only takes place in the request/response cycle.


Window key Error: vtki PyQt Interface

Example PyQt5 vtki QtInteractor has an error.
When I push "window key", contents in the window disappear like below.

The windows key right?

Does this happen with the vtki.BackgroundPlotter too? Here's a snippet to run one:
import vtki
from vtki import examples

dataset = examples.load_uniform()

tool = vtki.OrthogonalSlicer(dataset)

@banesullivan
I'm sorry but above code is not proper to check I guess.
It freezes after showing model and does not respond.

If you are not in an IPython environment, you'll need some sort of way to pause the thread. Two options:

Add a line to prompt the user: input('foo:') to pause the main thread.
Use an IPython interpreter. For example, from command line:

$ python
>>> import vtki
>>> from vtki import examples
>>> dataset = examples.load_uniform()
>>> p = vtki.BackgroundPlotter()
>>> p.add_mesh(dataset)

fixed in 3a2d08ecc0c28d74e48395e03913e7cfa29b4f8e.  It will be included in the next release.


Create online documentation

Include:

How to use package
How to contribute new datasets to package
Table of available data including PDs where no data was found. Include how to contribute to this table as well (i.e. suggested datasets or PDs without data)

What is the best host for the documentation?

This seems like the easiest path: https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html

Tutorials
Sphinx: https://www.sphinx-doc.org/en/master/tutorial/index.html
readthedocs: https://docs.readthedocs.io/en/stable/tutorial/index.html


Contributing information

What this PR does / why we need it:
Change CONTRIBUTING.md to match the actual information on the repository on the lables used for issues and pull request.
Special notes for your reviewer:
I'm not sure that the merging conditions of the tags size/L , size/XL and size/XXL are correct because did not found any documentation about it.
This PR closes #5795
If applicable:

[x] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

@bacongobbler The commits should be squashed? or can i leave it like that in order to have the complete history?
Thanks!

Generally speaking it's better to keep them squashed. Thanks!

Done, commits squased! 👍


[Release Notes] Tip: Point to the Wiki for Flash instructions

In release note you wite :
o To flash run esptool.py write_flash 0x0 espri.bin
Suggest to add there :
o Read the Online Manual (Wiki) for instructions here

Done


UpdateDocumentById endpoint throws exception

{
    "statusCode": 500,
    "exception": "java.lang.reflect.UndeclaredThrowableException",
    "message": "Cannot deserialize value of type `com.fasterxml.jackson.databind.node.ObjectNode` from String value (token `JsonToken.VALUE_STRING`)\n at [Source: UNKNOWN; byte offset: #UNKNOWN]",
    "path": "PUT /api/studies/340ca3e0-07de-40b1-af2d-f49ae57a015a/documents/151"
}

How to reproduce

Go to dev.carp.dk
Click on any study that is live
Go to resources page
Upload any resource (other, with a .json extension)
Edit the resource
Hit Update -> There will be a snackbar that says what the issue is.

The request sent here is a string, it should be a proper JSON object instead.

Example below:

Should be:

Tried it out, looks like it is working


Is there any clear and Proper Guide to integrate Indy on Native iOS ?

It is super excited to use Hyperledger Indy on iOS. But when it comes to the matter of Integration, it gets lot of confusion. I am working on Integrating Indy on iOS, and started through installing pods on Xcode Project. I have two pods named
pod 'libindy' pod 'libindy-objc', '~> 1.8.2' There seems to be no problem in adding these two pods into the app. The real problem starts when running the app to check if its working or not, it breaks with the error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /Users/pavankumarnaik/Library/Developer/CoreSimulator/Devices/0B216E4E-5073-4201-9F5F-15453276F2BE/data/Containers/Bundle/Application/91EECD31-2B1C-47C5-95C6-B013F91BF129/IndySdk.app/Frameworks/Indy.framework/Indy
Reason: image not found
I am struck at this point and I hope I would get some help to resume my work by solving the above mentioned issue. And I would request repo maintainers to provide Proper and Clear Readme/Guidelines so that it will be easy to integrate on requisite platforms.

Tagging @khagesh , @jovfer , and @smccown ; they may have useful guidance to offer.

@pavanMude I think the actual error is related to this file @rpath/libswiftCore.dylib not getting found. This might be due to some issues on Xcode 11 and above.
Try manually adding @rpath/libswiftCore.dylib and it should work.

@khagesh I guess it has solved the problem however another problem raised here :0: error: module compiled with Swift 4.2.1 cannot be imported by the Swift 5.3 compiler /Users/IndySdk/ios/Pods/libindy-objc/libindy-objc/Indy.framework/Modules/Indy.swiftmodule/arm64.swiftmodule. Libindy-objc is not maintained frequently it seems. What can be done here, Can we expect a new release to avoid swift compiler error !?

@khagesh @dhh1128 @jovfer instead of all this confused steps and wrapper setups, Why don't we have a working demo app to make integration clear !?

Solved this issue, Closing.


Fix a bug introduced in #82, versions fLink no longer always go to latest fiddle…

Sorry for introducing the bugs earlier @ochrons

Ping @ochrons maybe you'll have time someday to review this, it's getting harder to search through my piling fiddles without this feature :)


fix: Prevent focus to change on clicking row kebab options

Signed-off-by: suyash-naithani<EMAIL_ADDRESS>What this PR does / why we need it:

This PR prevents the onClick handler to be called when clicking on a row kebab option, thus making sure the focus on a row does not change

Which issue(s) this PR fixes

Fixes #168

:tada: This PR is included in version 2.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Removing old topics, renaming new topics

'Removal' of old topics, and localized topics, with renaming the new_topics to topics
Moved es_v8_migration folder to old, as we have made this migration, though the scripts might be worth keeping for a while longer.
Updated the Report to not include old vs new topics
Remove the check for version of ES7 vs ES8
Updated tests to reflect the new topic inference

I am creating this as a draft as we need to discuss how to deploy it. The frontend also needs changes that are implemented in: https://github.com/zeeguu/web/tree/remove-old-new-topics-distinction, otherwise the frontend won't render the articles.

ehi @tfnribeiro - this is massive work!
minor: there seems to be a conflict in generate_report?
regarding deployment... we're small enough that we can afford having the app down for a few minutes?
if you look at hourly utilization in the FMD dashboard you'll see that we can likely do a 7am migration and not many people would be affected.

otherwise we'd have to add transient code in the frontend that works with both the old and the new api, migrate the api, then remove the transient code. i think it's too much and not needed at the moment. what do you think? see you tomorrow at 7 online? :)

I will fix the conflict, I guess it has to do with one of the PRs we just merged. I can log in tomorrow at 7AM and we can do it then.


Manual keymaps sometimes being ignored in preference of package defaults

I'm an vim-mode user and my keyboard layout is ABNT-2. This means that, when using Atom, I need to remap the "?" keymap to ex-mode command, otherwise my keymaps are wrong.
Sometimes, specialy when I upgrade vim-mode package, their keymaps are overriding mine. Here's a screenshot:

As you can see, vim-mode is capturing my keymap, and the manual keymaps defined in Atom are being ignored. This is a recurring issue - most of the time, I don't know if my keymaps are being overriden or not.

@mauricioszabo Could this problem be related to vim-mode renaming command-mode to normal-mode in the selectors? You might need to change your selector.

Yeah, they're ordered by specificity, similar to CSS. When there is a tie though, I believe your custom key-maps should take precedence. For now, you could workaround this by making your selector at least as specific as vim-mode's (atom-text-editor.vim-mode.normal-mode).

@tmunro, this corrected the issue, thanks.
@maxbrunsfeld, don't custom keymaps should always take precedence over the others, even if it is less specific? I don't know how to test this, but it is kinda hard to overwrite keymaps if we need to keep track if that keymap is being used by some package or some atom internals, and if the selector that matches that keymap is specific or generic, and then trying to map to, at least, the same level os specificity... it's a lot of steps to just add a shortcut to a command...

don't custom keymaps should always take precedence over the others, even if it is less specific?

@mauricioszabo No, that's not the case at the moment. Thanks for the feedback on this -- would you mind adding this to an existing issue (which is a bit more general), so that we have everything in one place? https://github.com/atom/atom/issues/6718


Create data dictionary for eCR data store fields

Fields originally in scope for this ticket have been completed. There are some additional fields that will be covered in a separate ticket.


Dealing with batching

In many situations, especially database calls, it is common for the server to support some sort of batching mechanism. For example, one JDBC statement can actually hold a batch of SQL statements, all of completely unique syntax. Similarly, multiple redis commands can be sent in a single request. As there is only a single request, I think we can only create a single CLIENT span for these cases. But it makes it unclear how to fill attributes such as the span name, db.*, etc.
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md#call-level-attributes

Seems like a duplicate of #712

Given this is old and no activity, I will close it in favor of #712, as more discussion is happening there. @anuraaga feel free to object if you think this does not make sense. Thanks!


2D Plane Stress Example needs slight update

Description of the modifications
The 2D Plane Stress Concentration Example will not return the correct stress concentration plot.  The MAPDL/PyMAPDL and PyMAPDL Reader can post process both the single/combined result file along with the individual result files (one for each DMP core used).  The second time through the loop both the combined and individual files exist so the prior analysis is being post processed.  The simple correct is to add a "finish" [ mapdl.finish() ] following the PyMAPDL solve command.  This will force MAPDL to combine the core result files into one result file.
Mike
Useful links and references
No response

Other solution is to run in SMP mode through mapdl = launch_mapdl(additional_switches='-smp')

@mikerife I'm adding mapdl.finish() after both mapdl.solve() commands. See this PR.
Also, how the h*** did you find out that error?
@pmaroneh I think your suggestion is very useful, so the users are more aware of differences between SMP and DMP. But because how the documentation runs on GitHub, doing that change won't have any effect. Basically because the examples do not start MAPDL instances, they just connect to an existing one.

The way I had found out is that the plot comparing the computed results with the analytical results don't match if you use DMP.

@mikerife I'm adding mapdl.finish() after both mapdl.solve() commands. See this PR #2558 . Also, how the h*** did you find out that error?

@germa89 It started by noticing that there was a set of core rst files and a combined rst file the second time through the loop, then asking myself "WTF" since it should be one or the other.


TTS to Android Companion App

Not sure if this is an issue or just a my issue.
I am trying to be able to use your card to send a TTS message to my Android Cell.
If I use the service option tab in Home Assistant, the following works perfect
service: notify.mobile_app_sm_g975u1
data:
message: TTS
data:
tts_text: hello
I have tried plenty option with your notify card but have had no luck.
Is it possible, and if so any help would be great.
I am trying to have a card on my dashboard that I can just type different messages and have them read out load on my phone,
like the above option works. Thanks

I've updated the card to be able to work with any action/service and any data now.
Please update the card and try the following config:
action: notify.mobile_app_sm_g975u1
data:
  message: TTS
  data:
    tts_text: $MSG


Complains about a valid SSH config property

Hi, first of all, thank you for the tool, looks very good
One issue I have is that it's complaining about the PubkeyAcceptedKeyTypes property I've set for a server in my SSH config file. This is a valid property in SSH config, so I think even if the tool doesn't use that property, it's good to not error out
Thank you

Thanks you very much !
I was not aware of this property, it was not even in the man page of ssh_config! I'll fix it asap, thanks for reporting the error

Oh wow, interesting that it's not there. TBH, I didn't know about the property either, but recently, when trying to connect to CircleCI, it was failing, so I had to tell the connection to use a less-secure algorithm :open_mouth: and that's how I have it in my config :slightly_smiling_face:

I just upgraded dependecy to ssh_cfg that handles now all sshd options including PubkeyAcceptedKeyTypes ( https://github.com/azriel91/ssh_cfg/pull/2 ) in release v0.3.1 👍

Hey @Julien-R44 , great to hear, however, I think I'm still getting the error, and from what I see, I am using 0.3.1 :thinking:

Are you sure you are using version 0.3.1?
I added this to my SSH configuration and it works fine:


Add higher-order advections schemes, e.g. WENO-5

WENO-5 is implemented in Oceananigans.jl v0.38.0 and seems to work well so we should see if we can get JULES.jl to use the higher-order advection schemes from Oceananigans.jl

Done and seems to be working in PR #85


What's the module "upt" in inference.py?

I try to run the inference.py to to test the model and get error ModuleNotFoundError: No module named 'upt'. After running pip install upt and executing the inference.py again, the program prints error: ImportError: cannot import name 'build_detector' from 'upt' (/opt/conda/envs/pvic/lib/python3.8/site-packages/upt/__init__.py).
I think I misunderstand the source of upt. And I find a UPT model from UPT: Unary–Pairwise Transformers. Is this source right? If so, how to combine it with your project?

Your guess is correct. You need to read the readme in the UPT carefully.

Hi @musicBoxes,
I have been a bit busy lately, and have not cleaned up the code for this work. I will most likely wrap it up by the end of the month. In the meantime, I think you could just change the name of the module to pvic and it should work.
Fred.

Hi @musicBoxes,
The codebase for inference and visualisation has now been updated.
Cheers,
Fred.


Removed request dependency, code clean-up & alias support

I merged this without fully checking the functionality. Using the example from the README.md file, it is returning [Error: Not A Redirection] I see in your code this is from a 300 response. What's happening here?

@piranna Care to update this PR? I like the idea, but it didn't run properly.


Missing CompositionalMetric class in the init.py file

🐛 Bug
The CompositionalMetric class in metric.py can't be imported or used directly because it's not included in the init.py file.
To Reproduce
from torchmetrics import CompositionalMetric

Error message:
ImportError: cannot import name 'CompositionalMetric' from 'torchmetrics' ([...]/lib64/python3.9/site-packages/torchmetrics/__init__.py)

Expected behavior
CompositionalMetric should be importable without any issues.
Environment
torchmetrics==1.2.1

@MarylineChen that is a good observation; mind sharing why would you need or expect to find it in TM root?

My use case is pretty simple. I'm implementing some metrics using TM where I have three classes: class A(Metric), class B(Metric) and class C(?) which is an operation over class A and B, and it seems CompositionMetric is the good class to inherit, so I would like to do class C(CompositionMetric).

so I would like to do class C(CompositionMetric)

sire so you can simply do from torchmetrics.metric import CompositionMetric

True, that could be enough :)

Yeah, CompositionalMetric is not really meant to be used directly by users like inherit from it.
Instead it will always be the result when composing two other metrics:
A = MetricClassA()
B = MetricClassB()
C = A + B
print(isinstance(C, CompositionalMetric))  # True

it is more an internal class. For this reason, I do not think we should expose it in the root __init__.py and users that really want to use it can just import as
from torchmetrics.metric import CompositionMetric

Closing issue.


Fix flaky-test: KafkaNonPartitionedTopicTest.testNonPartitionedTopic

Fix: #1852
Motivation
When the topic has an active producer or consumer, then we are not able to delete the topic by using admin.topics().delete(topic), we should force delete it.
Modifications
Use the force option to delete the topic in the test.
Documentation
Check the box below.
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

@BewareMyPower
I checked https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L1311, but currently, I do not find the reasons why there is active producer/consumer, maybe we can check later for this issue.


Horizontal scroll (MX master 3)

OS
macOS Versión 13.2.1 (Compilación 22D68)
LinearMouse
v0.7.7
Describe the bug
The horizontal scroll wheel in photoshop using the MX Master 3 (that acts a s a zoom in) when using llinear mouse gets recognized as vertical. So the changes you make to the vertical behaviour of the vertical mouse wheel get also applied to the horizontal one.
To reproduce

You need an MX Master 3 mouse (at least that's the one that I'm using, not sure if it happens on all other MX devices as well)
Have the Photoshop customized buttons on photoshop enabled in the Logi options + app (or just select that the horizontal scroll wheel behaves as photoshop zoom in on the Logi options + app)
Make a new file in photoshop and use the wheel to zoom in/out.
Change the vertical scroll wheel behaviour on the linear mouse app options and see it affect the horizontal zoom in photoshop.

Expected behavior
These changes to the horizontal wheel should only happen when, in Linear Mouse, you change the setting of the horizontal scroll behaviour, not the vertical.
Anything else?
No response

Thanks for your feedback!
I don't have an MX Master 3, however, from your description I'm guessing that Logi Options+ converts horizontal scrolling to option+vertical scrolling, which is the gesture for zooming in/out in Photoshop.
One solution is not to modify the events sent by Options+, but this would also bypass the normal vertical scrolling events sent by Options+. LinearMouse cannot distinguish between them.
The other solution is to implement this feature in LinearMouse, but this takes time.
I think we can try the first approach for now, by adding a switch to stop modifying events sent by other processes, and see if it works properly.

Could you try this build (built from #376)? Please make sure to check "Bypass events from other applications" in General settings.


interface: add APIs for eviction/disruption budget

Description of your changes
This PR adds the APIs for supporting eviction and disruption budget.
I have:

[x] Run make reviewable to ensure this PR is ready for review.

How has this code been tested
N/A
Special notes for your reviewer
N/A

Internal only: please also see the mini UX doc for further details about this API (ping me if a link hasn't been sent).

One concern: for CRPPDB spec validation I'm planning,
On adding a validating webhook configuration if user specified minAvailable and maxUnavailable
Unexpected error in the eviction controller (just in case user deletes the validating webhook configuration)
Should we also add a condition for CRPPDB to mention whether it's valid or invalid?

Upgrading kindest node image to use 1.30 throws this error when I tried to apply the new CRD,
Error from server (Forbidden): error when creating "./config/crd/bases/placement.kubernetes-fleet.io_clusterresourceplacementdisruptionbudgets.yaml": admission webhook "fleet.customresourcedefinition.guardrail.validating" denied the request: user: 'kubernetes-admin' in 'groups: [kubeadm:cluster-admins system:authenticated]' is not allowed to CREATE resource apiextensions.k8s.io/v1, Kind=CustomResourceDefinition/: /clusterresourceplacementdisruptionbudgets.placement.kubernetes-fleet.io
Will handle this update in a separate PR


ng build --prod is not creating unique hashes

Versions
`Angular CLI: 6.0.0
Node: 8.10.0
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package                           Version
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0`
Repro steps

Create a site with ng new
Add a lazy path with loadChildren
ng build --prod

Observed behavior
Every time production build happens the hashes in the chunks do not change.
Desired behavior
Every single --prod build should result in unique hashes for cache busting.
Mention any other details that might be useful (optional)
Not sure if this is an issue with Angular cli or with webpack but it's definitely effecting Angular. I believe it's also in 5.2.10.
Not sure if this is windows only, but it happens locally on Windows and in VSTS hosted build.

I think you're having some weird errors and can't debug it, and so, understandably, you're frustrated. But this is a tracker for bugs and feature requests. If we can we also try to help with support requests. We're very lucky to have awesome community members that also spend time trying to help people here in the issue tracker.
But we can't really help much at all if you don't fill in the issue template. I read your issue and have no idea what's going wrong and how to help you. And when other users search the issue tracker and see your issue, it also doesn't help them.
So I think the best thing to do is to close this issue, and ask you to open a new one. In that new one please fill in the issue template and give us an idea of what's happening and how to reproduce it. That way we'll have a chance to help you.

Using what is now the default for all angular:
ng new
Add ngx-quill to the project
Add the module to the app.module.ts
Volia, blows up.

What part of the issue template isn't filled in?
The repro steps?
ng new project name
Add a lazy loaded route
ng build --prod
wait for it to finish
ng build --prod
wait for it to finish.
Observe that the hashes are IDENTICAL.  They shouldn't be. Every time prod code is built every chunk should have unique hashes in the file name for cache busting per the documentation.
Didn't think I need to state the obvious with an issue of angular-cli or webpack not creating new hashes on production build, it's self-explanatory.

And for the record I did fill in the entire template, but the output of ng --version that it instructs to copy and paste borks GitHub markdown. I've cleaned it up.

Thank you for cleaning up the output and clarifying the information.
We change the hashes per bundle content, not per build. So between two builds, if the content of the bundle did not change, the hash will not change.

Ok, well it definitely isn't working right because I can make changes and it still isn't updating the hashes. We're getting constant complaints from people about bugs we've already fixed and telling them to clear their cache is fixing it.  I have yet to see even one file change it's hash build to build event with changes.

Ok that is odd, we test for that in https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_angular/test/browser/output-hashing_spec_large.ts.
I did a simple test right now by adding console.log('hello') to main.ts and I do see the hash changing:
kamik@RED-X1C6 MINGW64 /d/sandbox/latest-project (master)
$ ng build --prod

Date: 2018-05-04T19:37:41.519Z
Hash: f25fd6788a4969c52b70
Time: 13076ms
chunk {0} runtime.6afe30102d8fe7337431.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.34c57ab7888ec1573f9c.css (styles) 0 bytes [initial] [rendered]
chunk {2} polyfills.6c08419970f9e4781b69.js (polyfills) 59.4 kB [initial] [rendered]
chunk {3} main.5c2aab6a636f72a9a865.js (main) 153 kB [initial] [rendered]

kamik@RED-X1C6 MINGW64 /d/sandbox/latest-project (master)
$ ng build --prod

Date: 2018-05-04T19:38:07.685Z
Hash: 41d53ef1d6943f2cd0e2
Time: 9482ms
chunk {0} runtime.6afe30102d8fe7337431.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.34c57ab7888ec1573f9c.css (styles) 0 bytes [initial] [rendered]
chunk {2} polyfills.6c08419970f9e4781b69.js (polyfills) 59.4 kB [initial] [rendered]
chunk {3} main.2f847dc2015268319a27.js (main) 153 kB [initial] [rendered]

You example mentions adding a lazy route though. Can you be more specific? I don't know how you're adding it, and small differences in how you do it can have different behaviours.
Can you make a simple repro where you see this happening and upload it to github? Ideally I would be able to clone it, checkout a commit, ng build --prod, then checkout the another commit with changes, ng build --prod and see no hash change.

These generate chunks. No matter what chunk you change I get the same hash.
While I have seen it sometimes on my local computer, build to build change this way, on VSTS hosted build servers which blow away everything you just did every session and thus don't have cache, I get exactly the same chunks always (15 builds today, no difference to 31 chunks even though 6 chunks have changed from check-ins today)

VSTS clears EVERYTHING between every build because the build server is a shared resource.
So you should be able to test this by simply whipping everything including all caches for angular/webpack every single time you do a build. It appears that it restarts whatever randomizer is being used and it starts at the first number again resulting in identical hashes.

I am using Angular 5.2 with angular/cli 1.7.4 and also facing the same issue, for example I have lazy loaded module where I am providing service and using some value from service in html, even after I am updating that services ts file prod build does not change the chunks hash, and as a result we are having caching issues

I have facing the same issue since the hash do not change the browser does not load the changes in the page as it continues using cached version.
Angular CLI: 1.7.4
Node: 8.11.3
Angular: 5.2.7

I am facing the same issue. I was using Angular 5.2 and everythin was working fine. I decided to migrate to Angular 6, and since then, there is no more hashing.
λ ng build --prod

Date: 2018-07-02T08:24:52.920Z
Hash: a40248a7d88c0fe78c84
Time: 25715ms
chunk {app-components-administration-administration-module} app-components-administration-administration-module.js, app-components-administration-administration-module.js.map (app-components-administration-administration-module) 212 kB  [rendered]
chunk {app-components-exploitation-controle-commande-controle-commande-module} app-components-exploitation-controle-commande-controle-commande-module.js, app-components-exploitation-controle-commande-controle-commande-module.js.map (app-components-exploitation-controle-commande-controle-commande-module) 475 kB  [rendered]
chunk {app-components-exploitation-exploitation-module} app-components-exploitation-exploitation-module.js, app-components-exploitation-exploitation-module.js.map (app-components-exploitation-exploitation-module) 466 kB  [rendered]
chunk {app-components-exploitation-source-post-source-post-module} app-components-exploitation-source-post-source-post-module.js, app-components-exploitation-source-post-source-post-module.js.map (app-components-exploitation-source-post-source-post-module) 637 kB  [rendered]
chunk {main} main.js, main.js.map (main) 532 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 261 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 8.44 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 577 kB  [rendered]
chunk {styles} styles.js, styles.js.map (styles) 288 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 7.19 MB [initial] [rendered]

Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular: 6.0.6

I don't know if this is about lazy loading, but I have it too.

@trichetriche Please ensure that the project's production configuration is configured appropriately.  A new project will contain the following:
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true
            }
          }

What a dumbf... I am, thank you for that information @clydin !
(I'll keep my comment up there, I probably won't be the only one looking for that)

I am running into this same issue I have the following in my angular.json
"configurations": {
            "production": {
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ]
            },

I run ng build --configuration=production
This produces the same chunks everytime:

Anyone have an update on this or how to fix it been open awhile...

I've also experienced in with latest version. We have to hard refresh or clear cache first every build.

yep
ng build --prod --aot --configuration=dev
gives me main.js, vendor.js etc without hashes
angular/cli 6.0.8

@intergleam In CLI 6+ the --prod flag is an alias for --configuration=production.  Since the command line above also has --configuration=dev after it, the dev configuration takes priority and nullifies the --prod flag.

Closing as it looks like the issue has been solved with the answers above.

@alan-agius4 it was not solved. I am having the same issue with Angular CLI: 6.1.3

@alan-agius4 it was not solved. I am having the same issue with Angular CLI: 6.1.3

Same issue for me.
Here my specs

Angular CLI: 6.2.3
Node: 8.11.3
OS: win32 x64
Angular: 6.1.8
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package                           Version
@angular-devkit/architect         0.8.3
@angular-devkit/build-angular     0.8.3
@angular-devkit/build-optimizer   0.8.3
@angular-devkit/build-webpack     0.8.3
@angular-devkit/core              0.8.3
@angular-devkit/schematics        0.8.3
@angular/cdk                      6.4.7
@angular/cli                      6.2.3
@angular/flex-layout              6.0.0-beta.18
@angular/material                 6.4.7
@ngtools/webpack                  6.2.3
@schematics/angular               0.8.3
@schematics/update                0.8.3
rxjs                              6.3.2
typescript                        2.9.2
webpack                           4.19.1

I'm also seeing the same issue - the hashes are there but the same every time.

The hashes should only change if you made changes to the code that resulted in the output differing.  (e.g., adding several extra spaces to the end of a source file should not change the output).

Hashed don't change in my project either even after doing major modifications in the codebase. I have to Ctrl+F5 every time I make changes to reload them.

@clydin which makes sense as to why it always works in CI but it's not working locally. Is there a way to force it?

I was stuck in the same boat as a few others.  Build config looked good with regards to output hashing, but major changes to the codebase still wouldn't change the hashes that were generated.  I upgraded typescript from 2.7.2 to 2.9.2 for an unrelated issue, and this started working?!?  Wanted to share the experience and see if it helps others.

I have a similar issue. My configuration:
      "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "serviceWorker": true
            },

I am using Angular's ServiceWokerModule and I am triggering an update check every 20secs or so. And it works when I make a simple change I haven't done before. So if I add a console.log() i get a new hash, but if I remove it and rebuild I get the same hash as when I first ran ng build --prod, shouldn't these be unique with every build?

@javierforero I had a similar issue, i changed an URL from 'myserviceurl' to 'MyServiceUrl' and the publish was using the same hash, i had to refactor some code to get a new hash. My guess is that the 'ng build' command doesn't recognize case changes. I'm using Angular 6.1.0.

I got the same issue, ng build --prod generates the same hashed file names even if the code it differently.
In the log, I see the hash is different but the name of the files is the same.
Maybe something wrong with webpack.

@angular/cli: "7.0.6"
@angular/core: "7.0.4"
typescript: "3.1.6"

ng build --prod generates files without hashes AND with sourcemaps
and I have this in angular.json:
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "projects/my-app/src/environments/environment.ts",
                  "with": "projects/my-app/src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                }
              ]
            }
          }

in package-lock.json I see that webpack version is 4.19.1 (not sure if it matters)

We are  using ng build --prod
Same configuration.
"production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                }
              ]
            }

And our users still have to hit ctrl + f5 to get even major changes.

@alan-agius4 @filipesilva, this issue is not fixed as I and others are seeing similar issues with browser caching.  It seemingly has to do with files that are lazy-loaded routes. Can you reopen?
Here's a console log from a few days ago, where I encountered the same issue.

From above, chunk 4.ebf18d34's file was cached by the user's browser because the file name was no different than before.  The newly created runtime.91a9e189b file is also referencing the same file name and but was expecting different code to be returned by that file when loaded.

I can reopen, but I will reiterate: if we don't have a reproduction that we can follow, we cannot investigate the issue. I haven't yet seen a report that provides anything that I can follow and get the same result as described in this issue.
So please, if you would like this to get fixed, and see it happening on your specific environment, help us by providing exact steps that we can follow on our machines to see the problem. If it happens on your CI but not on your local machine, you might have to figure out what's different between the two.

Just reporting back.  I haven't been able to recreate this locally, but it's happened a few times in the past.  I created a project and test script to rerun builds.
The test script waits for the user to make a code change, then given the go-ahead, recompiles with AOT and diffs all the JS/CSS files with the previous run.  If the file name is somehow the same, but the contents are different, it blows up.
I haven't been able to recreate locally with various trials, such as 2 lazy loaded modules depending on a 3rd local dependency, changing only styles, changing only html, etc.
So, instead for our CI build, I wrote a different script that does a similar test.  It retrieves the last stable version of the build and does the filename match diff check.  If the filenames are the same, but the contents are different, it will blow up.  This should at least give me insight into when this occurs or what kind of commit causes it.
If anyone wants a template for that script, it looks like this:
mkdir -p .tmp/last-stable-build
tar -xf .tmp/last-stable-build.tar.gz --directory .tmp/last-stable-build
# Default hashes are 20 character hex
# https://webpack.js.org/configuration/output/#outputhashdigest
# https://webpack.js.org/configuration/output/#outputhashdigestlength
files=$(cd .tmp/last-stable-build && find . -regextype posix-extended -regex ".*[a-f0-9]{20}\.(js|css)")
for i in $files; do
    if [ -f "dist/build/$i" ]; then
        # diff returns a non-standard 0 code when differences are found
        # anything other than 0 will cause our build to fail
        diff -q .tmp/last-stable-build/$i dist/build/$i
    fi
done

@mtraynham thank you for taking the time to trace this and help debug it. I understand it's not easy, and the setup you're using must have taken a fair bit of time to put together, but I really appreciate it because at the moment it's the best chance we have at getting to the bottom of it.

@filipesilva Any updates on this?

@filipesilva is there a way to force a new hash for every single file even if it hasn't been changed? I know for some people they wouldn't want this, but it actually would help us out on our new releases.

@filipesilva Any updates? Having a ton of issues with this. I would be okay with a force of changing hash on all files too.

@joe704la like I said before, I cannot reproduce it and without a reproduction I cannot fix it. I'm waiting for @mtraynham's results. Maybe you can try and reproduce it in a similar way?

@filipesilva do you have an answer to the other question about forcing a unique hash for all files after each build and not just changed files?

That's not how these hashes work really. We use Webpacks file hashing functionality, and it determines the hash from the file content. If the file content is the same, Webpack makes the same hash. So it's not that we determine what files changed and give them a new hash, but rather that the file content is different and thus gets a new hash.

@filipesilva okay, that makes sense. Thank you

I just want to chime in real quick.  I remembered from a while ago, when I was using straight Webpack without Angular CLI, I ran into this particular bug.  It suggests hashes are based off the original source and not necessarily the generated output, link.
Based on that bug's documentation, the chunkhash might not change if:

You make a change to the webpack config (e.g. adding/removing/changing a plugin/loader).
You upgrade a loader/plugin version.

I didn't have this as a test case when doing local testing for this particular bug (the AngularCLI one).
There may be a case where a user upgrades Angular CLI (and likely Angular), it generates different output from before, but leaves the file hashes the same.  I imagine if you had no package-lock file and a very relaxed version of AngularCLI, you may easily encounter that without noticing.  Or simply updating your dependencies to latest might cause it.

@mtraynham I am not aware of the build process being non-deterministic for the same set of sources + build dependencies.
The only thing that comes to mind is optimizations and tree-shaking... where the end result of a given chunk differs from the sources.
But the indirection with the webpack module loader used in chunks make cross-chunk optimizations almost impossible for third party tools like Uglify/Terser. So I can't see how changes in one source file could affect another through the action of Uglify/Terser.
Webpack itself also does https://github.com/webpack/webpack/tree/master/examples/side-effects though. But wholly removes files, and can't partially change content.

I'm seeing the issue also with Typescript 2.9.2
      "configurations": {
        "production": {
          "optimization": true,
          "outputHashing": "all",
          "sourceMap": false,
          "extractCss": true,
          "namedChunks": false,
          "aot": true,
          "extractLicenses": true,
          "vendorChunk": false,
          "buildOptimizer": true,
          "fileReplacements": [
            {
              "replace": "src/environments/environment.ts",
              "with": "src/environments/environment.prod.ts"
            }
          ]
        }
      }

@paulsperanza do you have a reproduction we can follow? If you do, can you please document it here and verify the same happens on your local machine? This is a problem for which we haven't yet seen a reliable reproduction.

I not quite sure. but i saw some comment can solve by ctrl + f5, in that case i think it not angular relate, but it a web server relate.
some web server (or maybe browser) add a cache headers to text/html and some static file by default. so when user request same url, browser will use cache version of html that reference old files. and i think js/css that html reference may be in cached too. but when user try to load a module that not exists in cache it try to load from server and failed. some thing like

user open your home page ( url = '/') browser cache runtime.js that contain all chunk info and other js
user go to register module. (url = '/register') browser cache register chunk
user go to other link (may be verify email)
you deploy new version and change everything
user open your home page ( url = '/') browser load html from cache. but that html reference old runtime.js file. and runtime.js and other main file may be use from cache as well. so it reference old hash versions
user go to login module. (url = '/login') but browser use old runtime.js so it not load new version and try to load old login chunk.
and from above if user open browser and goto '/login' directly (not come from '/') it will receive new html version because it not cache '/login' page it cache only first page that user open. so it will not cause any problem.

in this case i think you may add Cache-Control headers to force browser re-validate everytime that user request.
if you use nginx this is my sample config. i cache every static files. but if file not exists i force browser to not cache and re-validate everytime.
https://gist.github.com/mix5003/134b041fc4761af1ab348d944e4f810f

Just faced this behaviour on a SPA, hosted on an Azure Blob storage with Azure Front Door (with dynamic caching activated).
Everytime I released a new version of the app, users had to force-reload the page to get the new version. Because the links to the new assets (like main.XXX.js, ...) are located in the index.html, which has been cached and therefore the old (cached) asset versions getting loaded.
I was able to solve it (within my CD pipeline on Azure DevOps):

Let the Azure CLI set the Cache-Control header to "no-cache" on the index.html after pushing it to the blob storage

az storage blob update --account-name $(storageAccount) --container $web --name index.html --content-cache-control no-cache

Purge the Front Door cache

az extension add --name front-door
az network front-door purge-endpoint --resource-group $(ressource) --name $(frontdoor) --content-paths "/"

@filipesilva any updates or idea on this issue, this still exists with angular 7x

@aburht I'm still waiting for a reproduction. No one has been able to provide me with a reproduction so far.

@filipesilva  did some ground work on this, and I assume this is due to index.html getting cached and where in index.html's script tag is referring to old build's chunks, as we know output hashing doesn't provide hashing for index.html, Any thoughts that you could think of it?

@aburht what you describe sounds a lot like what @mix5003 and @ddhille describe. And I think it makes sense. But that's not something that should be addressed on Angular CLI, but rather on your hosting caching strategy.
We probably should add something to https://angular.io/guide/deployment about caching for index.html and other resources.
At the end of the day whenever caching is used, you have to decide when to invalidate the cache. That's the hard part of caching really.
And there are several types of cache at play. Your server, reverse-proxy, browser, service-worker. All of these can have caches. So your deployment strategy needs to consider what caches you have up.

@filipesilva exactly I agree, I resolved this issue setting meta tag no cache revalidate, which resolved my issue. Like you said it's a great idea to document it deployment guide, since we now
know this is not an cli issue, we should be good to close this issue/thread

Any updates  on this issue,  Still exists with angular 7.x!.

@rajaramtt the most recent updates are in the comments directly above yours.

@rajaramtt try setting meta  tags to your HTML, set Max age to 0, no cache.
Say if the above approach didn't work,
Try setting the cache control headers to 'no cache' headers in your Apache or IIS server
2. If you are using https configured url, it sets max-age to 0 by default

i think in some scenario header no cache may not help.
something like

user open module1
you edit module2 and deploy (may be a hotfix)
user go to module2
in this case angular will try to load module2 from old hash too.
for me this happen because user open browser and do something then sleep notebook without close browser. and use it again in tomorrow, sometime user use versions that release 7 days ago.

in this case you may set your web server to redirect not found js to some js like reload.js that force page when it reference file that not exists anymore.
like: https://gist.github.com/mix5003/0aff8719804494530790276406499e8c
(this un-tested config. use on your own risk)
but i still don't know if user open module1 and i want to push hotfix to module1, how to do it.
for now i put build date to environments.ts and force angular send it every request and check it at server side to tell client to force reload in serious case. is this way ok? or someone has a better way?

Greeting, I face the same issue. I need to re-product the project to see the changes in cloud. Does anyone solve this issue?

Still exists, Please provide an alternative solution.

We've been plagued by a very-hard-to-debug issue for quite a few weeks now that we have since resolved, but I feel it is very closely related to this issue.
We have roughly 90 bundles optimized for different use cases throughout our application, we release every few days as new features clear for production. We upload every bundle that gets created to the same bucket (which means old files would be overwritten if they have the same file name), and we have a cache policy that always requires index.html to be loaded from the CDN, while the bundles have a cacheing policy to let them live forever. So when index.html reloads, it will load any new bundle that has changed as part of the build, this is done through the content hash that is added to the filename.
Since it is a content hash added to the filename in the default angular-cli config and we have so many bundles, we noticed that the names of some bundles wouldn't change. We then noticed that these unchanged bundles (aka their hash/contents didn't change) would fail the browser integrity check on Google Chrome (only Chrome, not IE 11 or Firefox).
I still do not have a good understanding as to why this was the case, because cURLing the files and manually generating the integrity hashes matched what was contained in the index.html and runtime js files that were generated by angular-cli. This lead me to believe it wasn't the hashing that was causing integrity hashes to fail.
It became our assumption that some mechanism was failing the integrity check based on files changing (aka timestamps/metadata) without the filenames changing/being reloaded from cache. This is where I wish I had a better understanding of the root cause, but it seemed fishy that it was only the bundles that didn't change filename hashes between deployments that were causing the issue.
In order to work around this I added a build phase after angular-cli generates the files in dist/ that add a nonce (just the ms since epoch) to every file name, updates the internals of index.html and runtime.x.js and regenerates the integrity hashes (and sticks them where they need to go).  Since adding this "cache buster" timestamp we haven't encountered the same cache integrity checking issue, and every bundle gets uploaded/tagged uniquely per deployment now.
I do think this is a Chrome issue and not an angular-cli issue, but I do think that if the hash added to file names was the build hash instead of the content hash it would resolve this issue (for us at least).

In the 6 months since I reopened this issue there still doesn't seem to be a reproduction that shows there's a problem with how Angular CLI produces unique hashes for bundles.
There's been a some very informative comments on this issue that point towards how servers and browsers interpret cache requests, like https://github.com/angular/angular-cli/issues/10641#issuecomment-491588141, https://github.com/angular/angular-cli/issues/10641#issuecomment-492714699, and https://github.com/angular/angular-cli/issues/10641#issuecomment-517290830. If you're still seeing cache related problems, I suggest you read through these comments to see if your setup is similar.
I will again close this issue as it's not actionable on Angular CLI. If you see it happening on your specific environment, help us by providing exact steps that we can follow on our machines to see the problem. If it happens on your CI but not on your local machine, you might have to figure out what's different between the two.


faster / more robust implementation

Been using this lib for awhile, no problems so far, but do you see anything wrong with the following implementation?

    isGeneratorFn: function(fn){
        const str = String(fn);
        const indexOfFirstParen = str.indexOf('(');
        const indexOfFirstStar = str.indexOf('*');
        return indexOfFirstStar < indexOfFirstParen;
    },

not sure if it's faster, but probably less convoluted logic and possibly won't break if underlying stuff changes. You are calling toString on fn in your logic, just like I do, which seems like the most expensive thing in both our implementations. but I believe the above implementation is both simpler and more robust.

String(fn) can be overridden with .toString, so you'd need to cache Function.prototype.toString and .call it on the function - but that's not a big deal to fix (same with caching String.prototype.indexOf)
You'd also still first need https://github.com/ljharb/is-generator-function/blob/master/index.js#L8 to filter out non-functions.
It's a fair point though that the (fnStr === '[object Function]' || fnStr === '[object GeneratorFunction]') test isn't providing much value, because Symbol.toStringTag could be overriding it.
I'll think about modifying the implementation a bit based on your suggestions.

Yeah my code was just a thought, mine is not super well tested. Not sure if I am following how String() or indexOf() would get manipulated..and also just because they are cached at top of file doesnt mean they couldn't get overridden before this file was loaded, by user code?

You're correct - in JS, you can only protect yourself against code that runs after you - like delete String.prototype.indexOf, for example.

It turns out that in some versions of Safari, (function* foo() {}).toString() outputs function foo() {}, so while using the toString value is a good signal for true, it's not sufficient to test for false.
I'll close this now, but I'll definitely need to update the implementation so it can pass in engines like Safari.

oh weird, so the * character gets removed, but it's still a generator function? bizarro

what if you call String(function* foo() {}) in safari? Shouldn't make a difference, just curious.

You get the star removed.

See v1.0.6 for the updated implementation.


Connect to a simple Heroku Pipeline

App is now available on Heroku at https://spring-boot-vuejs.herokuapp.com/

As https://devcenter.heroku.com/articles/github-integration#automatic-deploys states, we don´t need the Heroku deploy section inside the .travis.yml! But all checks will run first, before Heroku deployes your app - just like a real CI pipeline :)


Add TLS options for Agent, can pull from KERIpy Agent

In order to support TLS termination at the witness we need to expose the following options on the keria start command:

--keypath
--certpath
--cafilepath

As these options are already exposed on the KERIpy kli agent start command it is hopefully straightforward to expose these options for kli witness start since both use the HIO library underneath.
Example code for CLI command:

kli agent start code
keri.app.booting.py example of using an hio.core.tcp.ServerTls instance.servant = hio.core.tcp.ServerTls(certify=False,
                                                  keypath=self.keypath,
                                                  certpath=self.certpath,
                                                  cafilepath=self.cafilepath,
                                                  port=self.port)

PR #102 addresses this need.


refactor: add declaration variants to Statement

An alternative solution to #2685.
Declaration variants are added to Statement, but the Declaration type is not removed, so can still be used independently.
The discriminants for the 2 enums are aligned, so Statement and Declaration have identical memory representations, and one can be transmuted to the other at zero cost. Type sizes remain the same, and no effect on performance.
Obviously it'd be preferable to avoid this entirely, but I'm having a great deal of trouble handling the nested enums on #2457, and this would really help.
Not making this PR with intent of it being merged as is, but just as a demonstration of what I'm exploring. @Boshen would you consider something like this?
NB: This could be simplified, removing the unsafe code, if Visit::visit_declaration doesn't need to be its own function and could be broken up into Visit::visit_var_declaration, Visit::visit_function_declaration etc. That would also remove a branch and probably speed up the visitor a little.

#2847  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

Oh this is clever for an intermediate step. Last time I tried but gave up because there were too many code changes.
Let me make a release before merging this. And then we'll continue the refactor.

Thanks for coming back @Boshen.
Before we go ahead with this, can I just check you're really OK with it? The same nested enums problem also exists with other AST types, so this would be just the first of a series of PRs to do the same thing to each of them. Probably we shouldn't start down this path if you think it's going to get too much by the end.
I've started with the big one - Statement. All the other affected types are more rarely used, so changes will be lower impact (e.g. ExportDefaultDeclarationKind, AssignmentTargetMaybeDefault). But still, there'll be a good number of them - maybe 10 in total.
On the positive side, in a few cases we'll be able to reduce the size of the types by squashing 2 discriminants into 1.
2nd question: Does Visit::visit_declaration need to exist?
If we can get rid of it, we can make the changes in this PR much simpler, and remove the unsafe + transmuting.
Removing it wouldn't cause any problems within Oxc itself, but question is do external consumers need visit_declaration to exist in order to be able to override it in their own Visit impl? (they could still get whatever they need to do done by instead implementing visit_var_declaration, visit_function_declaration etc instead, but I don't know how Visit is used "in the wild", so I don't know if that'd be very unergonomic for users)

Before we go ahead with this, can I just check you're really OK with it?

It's ok.

But still, there'll be a good number of them - maybe 10 in total.

I think it's a case by case analysis.

Does Visit::visit_declaration need to exist?

Let's do the removal in another PR. Most of the usages are in the transformer, but we plan to nuke the current transformer, so we'll have less code to change.

I think it's a case by case analysis.

It will only solve my problem on #2457 if we change them all, and make it a rule for AST types that there can be no nested enums. If we're not going to do them all, there isn't much point in doing any of them (at least for my purposes in #2457).

The complete list of nested enums at present:
Statement -> Declaration
ArrayExpressionElement -> Expression
PropertyKey -> Expression
Argument -> Expression
JSXExpression -> Expression
ForStatementInit -> Expression
ExportDefaultDeclarationKind -> Expression
TSEnumMemberName -> Expression
ForStatementLeft -> AssignmentTarget
AssignmentTargetMaybeDefault -> AssignmentTarget
AssignmentTarget -> SimpleAssignmentTarget
AssignmentTarget -> AssignmentTargetPattern
TSTupleElement -> TSType
TSTypeQueryExprName -> TSTypeName
TSModuleReference -> TSTypeName
It's worse than I thought. Inlining all Expressions variants into ArrayExpressionElement and 6 other types seems impractical - at least without using a macro, and I know how you feel about that!
Let me think about it a bit more...

Going in the opposite direction, these enum variants could be unboxed to reduce indirection:
Statement::ModuleDeclaration: Box<ModuleDeclaration>
Expression::MemberExpression: Box<MemberExpression>
SimpleAssignmentTarget::MemberAssignmentTarget: Box<MemberExpression>
ChainElement::MemberExpression: Box<MemberExpression>
(side note: one nice thing about the types schema which #2457 produces is that it's really easy to run these kind of queries on the type definitions)

This is going to be impractical if we are going to bend the AST just for the sake of AST transfer 😢

Well I had thought it's worth bending it to a degree, as in my view AST transfer is a pretty worthwhile feature (and as I said at the start, there would likely be some trade-offs involved to make it work). But, yes, probably this is too much.
Let me try again and see if I can find another solution to the problem of calculating niches for nested enums. Can we leave this PR open for now until I reach a conclusion?
It's annoying that Rust doesn't offer type introspection itself. It was going to but that effort fell apart due to a personal feud with/within the Rust Project.

Can we leave this PR open for now until I reach a conclusion?

Sure

It's annoying that Rust doesn't offer type introspection itself. It was going to but that effort fell apart due to a personal feud with/within the Rust Project.

I remember the drama ...

Superceded by #3115.


Warn about about allocation on assignment when reallocation may occur

Allocation on assignment of an allocatable array is part of the language, but sometimes people do it inadvertently (I have), so an optional warning could be useful. Ideally the warning would not occur when the allocatable array is set to an array of the same size or to a scalar. For example,
integer, allocatable :: v(:), w(:)
v = [3, 5] ! warn
w = [2, 4, 6] ! warn
v = 0 ! don't warn
v = v + 10 ! don't warn
v = w ! warn

@certik has a relevant post https://fortran-lang.discourse.group/t/allocatable-vs-adjustable/8957/59

This probably requires some heavier static analysis than what we can currently do -- actually, in general, this might only be possible at runtime.

I think @Beliavsky's idea is to only warn if the compiler / static analyzer can't figure out and guarantee at compile time that no reallocation will happen. This can't be done in general, so there will be some warnings, and a user can silence them by converting to v(:) = [3, 5].
I think that would be useful. The way LFortran does it is that we currently don't allow LHS reallocation by default (you have to enable it with a compiler option). So it forces you to write your code in such a way that the LHS always has the correct pre-allocated size. Then if you compile with LHS reallocation (in any compiler), you know it will not reallocate silently, you will only incur the (hopefully small) runtime check.


[Feature Request] Fabirc Server Support

Essentially as the title says, support for fabric server and fabric loader!

This is actually needed since the bots fail to join servers with serverside mods and specific patches to make the vanilla client seamless like PolyMc.
I want to test my server against a bot wave but the bots fail to join, I tried everything (proxy, viaver...) but I can't get it to work.

Hello, sadly the issue is the same as with Forge.
https://github.com/crpmax/mc-bots/issues/67#issuecomment-1571819129

The weird part is that in my configuration Fabric packets are blocked, and vanilla clients are working fine.
A workaround for a setup like mine should be feasable.

I am sorry, but support for Fabric is currently not in my hands right now.
I plan to rewrite version 2 with different MC protocol library, that should support it.

Please support fabric!


Difference between non existing field and null. Problems with key fields in GraphQL Mutation Query

Note: If your question is regarding the AWS Amplify Console service, please log it in the
AWS Amplify Console repository

Which Category is your question related to?
GraphQL
Amplify CLI Version
6.3
What AWS Services are you utilizing?
AppSync
DynamoDB
Provide additional details e.g. code snippets
Hi,
for a connection, I have a key field in my graphql schema:

type Lead @model @auth(rules: [
  {allow: groups, groupsField: "partnerId"}
  {allow: groups, groups: ["admin","leadservice"] }])
  @key(name: "byRequest", fields: ["requestId"])
  @key(name: "byPartner", fields: ["partnerId"])
 {
  id: ID!
  status: LeadStatus!
  notes: String
  requestId: ID
  request: Request @connection(fields:["requestId"])
  partnerId: ID
  partner: Partner @connection(fields:["partnerId"])
  locationFuzzy: Location ## ungenaue Position
}

type Partner @model @auth(rules: [
  {allow: groups, groupsField: "id"},#, groupClaim: "custom:company"},
  {allow: groups, groups: ["admin"] }])
  {
  id: ID!
  companyName: String
  address: Address
  leads: [Lead] @connection(keyName: "byPartner" fields:["id"])

}

When creating a Lead but I do not want to specify a Partner, that works good in Postman. But for example when using the Amplify Admin UI or the predefined mutations, it always sais:
´ "One or more parameter values were invalid: Type mismatch for Index Key partnerId Expected: S Actual: NULL IndexName: byPartner(Service: DynamoDb, Status Code: 400, Request ID: xyxyxyxyx, Extended Request ID: null)"
`
That makes sense that a key field can not be null but unfortunately I can not use the mutations that were created in mutations.js file and I can not use the Content tab on Admin UI. They always set partnerId to null when not used.
Does anyone knows a solution for this? The resolver should delete the key value pair from the request when null for example.
BR and thanks in advance

Replicated the schema in AppSync transformer v2 and observed the mutations did not throw the error:
"One or more parameter values were invalid: Type mismatch for Index Key partnerId Expected: S Actual: NULL IndexName: byPartner(Service: DynamoDb, Status Code: 400, Request ID: xyxyxyxyx, Extended Request ID: null).

once the issue has been mitigated, I would suggest migrating the schema from v1 to v2 as AppSync V2 provided improved functionality, features and updates.


[5.5][Serialization] Add whether allowing errors to the pretty stack output

Cherry-picks https://github.com/apple/swift/pull/37472

It's currently not obvious in crash reports whether compiling with
errors is enabled or not. Since this option can make previously
"impossible" paths now possible, add a message to both the pretty stack
output and fatal deserialization diagnostics to point out that it is
enabled.
Also add some helper methods to check whether the option is enabled or
not - there were getting to be quite a few.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 9dc6e04694724a63e820900daf0e8a80ee67d7bd

@swift-ci please test macOS platform

Build failed
Swift Test OS X Platform
Git Sha - 9dc6e04694724a63e820900daf0e8a80ee67d7bd

Unrelated SwiftPM tests?
@swift-ci please test macOS platform


ValueError: Column 'due_date2': Enter a valid date.

I cant upload my csv file coz datefield is invalid? ive already tried changing my cells to date format but still not working how do i do this?

I was getting an error but changed the model field to DateTimeField instead of DateField and it passed the validation.


R119 eps

INDArray.equalsWithEps() being implemented now

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/206/


Tag images

At the moment I build a optional part to add/manage tags to images. The next week I got some time to finish this issue and fix the next open issue.

Has this ever been added to the module? I couldn't find a way to activate it.

Unfortunately I'm too busy and I still not work on it yet. Also I don't know when I can start with it.

Ok, no problem :)
There is a fork that implements something like that, so maybe that's worth a deeper look.

@bvanleeuwen1995 Do you have any plans on a working version of the imageTags-branch?


Output all possible Texts of synz

Hello it's me again :)
I have a question regarding the synz and syn structure in rosaenlg.
I'd like to run some kind of debug-mode, to output all possible texts, that could be generated.
When using the synz with multiple syn texts, it always picks one of them, like mentioned in the reference documentation.
Is it possible, to output all the possible texts inside a synz with only one execution of the pug file?
Example:
synz
 syn
  | the iphone is really a fantastic phone.
 syn
  | i really love the new iphone.
 syn
  | iphone  : a great phone!

With that code, I would like to output something like: "the iphone is really a fantastic phone./i really love the new iphone./iphone  : a great phone!" with just one execution.
If that is not possible, I could execute the pug file multiple times, until all different texts are used.
But I think it would be a nice feature to get all the possible texts in one render call, especially while debugging the program.
Best regards
Timon

Hello Timon,
Just saw the ticket.
Nice idea, I'll think about it.

When the synonymic alternatives are just text, it would be fairly easy to list them all using a separator like you proposed.
There is a (big) issue when alternatives contain code, or other synonyms: it seems impossible to use that approach.
The options I see:
1/ Generate a tree of all texts
As, eventually, it is a tree.
Drawbacks:

the tree can be huge
would it be readable?
not mundane to implement

2/ Generate all the texts
A batch that would generate all the possible texts.
The output would be readable: each output is a possible text.
Drawbacks:

there could be millions of texts; what's the goal of having them all?
also not mundane to implement

My general advice, if synonyms along testability is an issue:

avoid using synonyms, or use them less: this is often the case for financial applications when output must be completely predictable
use regression testing and test some of the outputs:

some with a fixed random seed: must be an exact match
some with random seed, but checking for invariants in the text (typically numbers)

@TimonFelske any thoughts? What are the practical issues you are facing?

I used the option I wrote, which is similar to your second option.
I used a loop to call the renderFile method multiple times.
There are only a few synonyms in my texts, so 30 iterations generated all possible texts, in my case.
I stored all the texts in a list and printed it after the 30 iterations.
My issue was, that I would like to check, if the texts that will be generated are all correct.
The texts will be used in a rehabilitation therapy with real patients. Furthermore the texts contain patient-related information.
Because of that, all the texts have to be checked, if they are correct and doesn't contain false information.
So it's just a feature to debug the texts.

I will try something on option 2 - a batch that would generate all the possible texts.
Probably in December.

I have tried to make something clever but did not succeed :( - overly complex, and the approach does not work.
I think your approach is, as of today, the best one.
I added some documentation to suggest a workaround, which is the same as what you did (execute the pug file multiple times), but with one improvement: changing forceRandomSeed parameter each time (put 1 then 2 then 3 etc.) which should be more repeatable than pure random.
https://github.com/RosaeNLG/rosaenlg/pull/10/files


NextjsSite: Pages that begin with "api" seem to be excluded from the default-lambda server bundle

If a page name begins with the string "api" and relies on server rendering, it seems to be excluded from the default/main lambda function that gets deployed, which results in a 404 error when trying to navigate to that path.
Reproduction steps:

Create a page named for example src/pages/apidocs.tsx
Run sst build
Navigate to .build/{site-bundle}/default-lambda/pages
See that apidocs.js does not exist in the directory
Rename page to src/pages/pidocs.tsx
Rerun build
pidocs.js does exist in the default-lambda/pages directory

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


"Defining @{name} attribute for a field in a composite type is not allowed." error: there is no argument named name  src\parser\parse_composite_type.rs:78:49

Compiling serde v1.0.136
Compiling mysql_common v0.28.2
Compiling futures-executor v0.3.21
Compiling tokio-util v0.6.9
Compiling tokio-util v0.7.1
Compiling tokio-native-tls v0.3.0 (https://github.com/pimeys/tls?branch=vendored-openssl#6d0e6fc7)
Compiling asynchronous-codec v0.5.0
Compiling async-native-tls v0.4.0
Compiling mobc v0.7.3 (https://github.com/prisma/mobc?tag=1.0.0#75c68f10)
Compiling trust-dns-proto v0.20.4
Compiling tokio-rustls v0.22.0
Compiling schema-ast v0.1.0 (https://github.com/Brendonovich/prisma-engines?rev=8c1da2fdc058b7af8905a61491856cade06f952f#8c1da2fd)
error: there is no argument named name
--> C:\Users\xxx.cargo\git\checkouts\prisma-engines-8e1416dd0e571d11\8c1da2f\libs\datamodel\schema-ast\src\parser\parse_composite_type.rs:78:49
|
78 | ...                   "Defining @{name} attribute for a field in a composite type is not allowed."
|                                   ^^^^^^
Compiling futures v0.3.21
Compiling opentelemetry v0.16.0
error: could not compile schema-ast due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Huh, this is really strange. Can you please provide the rust version and operating system you are using? I've been able to compile the schema-ast crate just fine.

Huh, this is really strange. Can you please provide the rust version and operating system you are using? I've been able to compile the schema-ast crate just fine. Update: Looks like that line is using the Rust 1.58.0+ ability to capture variables in format strings from the enclosing scope: https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html. I'm guessing you're using an older version of Rust that doesn't have this feature yet.

Oh yeah my bad sorry,  I thought I was on a pretty recent version of rust. I think I confused my pc's version with the version on my laptop...
Btw, where am I supposed to run prisma-client-rust generate on Windows10?

Huh, that's strange. Copied that schema into the example folder and ran it with CLI v0.3.1 and it generated just fine. Maybe it's a Windows thing since this has only been tested on Mac and Linux?

Huh, that's strange. Copied that schema into the example folder and ran it with CLI v0.3.1 and it generated just fine. Maybe it's a Windows thing since this has only been tested on Mac and Linux?

Ahh its sad to hear its only for Linux and Mac, any way to still get it working?
I tried WSL but it didn't work :(

I'll try get it tested on windows and let you know. In the meantime, I'll close this issue since the problem was resolved.


mid v1.4

beta implementation of LinkedIn panel for tutorial deadline. Changes still to be made to this.
Updated sort tests (remove some case sensitivity).
Updated personbuilder to allow for testing with skills, endorsements and positions.
Corrections to some pre existing tests.

@barisbatuhan - there are likely further necessary changes to your filter tests
@abwilli - I made a small change to your JsonAdaptedPerson to remove duplicate adding of tag type (it used to print e:e:[Endorsement])


add build script for convenience

added a shell script to build, source env and run roslaunch all in one command. To use this, just run
./build.sh
@pkorivi i think you can add command line flags support and pass it to the line where we call roslaunch in order to control env (simulator or carla) and models choice

@thejerrytan, are you planning to merge this PR? If yes, please, address the comments. If not, please, close it.


Execute Airflow Providers RC tests with a GCP cluster deployment

As per the current process of providers' release testing, our workflow only updates the AWS deployment with RC providers versions for testing. However, we want this update to be executed across all cloud providers. Currently, we are using a hosted organization, and Azure is not supported. We plan to enable this feature for Azure when it becomes available.

Another thought I had is we currently test this RCs only on CeleryExecutor deployments. Do you think we need to also test these on KubernetesExecutor deployments?

IMO makes sense for Airflow rc but not sure about providers

Another thought I had is we currently test this RCs only on CeleryExecutor deployments. Do you think we need to also test these on KubernetesExecutor deployments?

Correct Pankaj, we can do that, should I add that to this PR only?

Another thought I had is we currently test this RCs only on CeleryExecutor deployments. Do you think we need to also test these on KubernetesExecutor deployments?

Correct Pankaj, we can do that, should I add that to this PR only?

maybe we can create another PR later since we have mixed opinions.

Do we have the secrets set up ready? Could we test it before merging it? Thanks!

Do we have the secrets set up ready? Could we test it before merging it? Thanks!

@Lee-W I have asked @phanikumv to add secrets, sure will test post that

Do we have the secrets set up ready? Could we test it before merging it? Thanks!

@Lee-W I have asked @phanikumv to add secrets, sure will test post that

secrets have been added


explicitly set spec.version in the CR

part of: https://github.com/kiali/kiali/issues/7741

this goes with https://github.com/kiali/kiali-operator/pull/818


WSA only installs on Admin account

Despite running the script in a non-admin account, WSA does not appear on the initial account. When logging into my admin account, I can access and use WSA, however I cannot access or run WSA or play apps on the original account.

What I did was I made my main account admin temporarily and ran the script as admin. When it went to UAC for admin I picked my user in more choices. Afterwards, once everything was working, I demoted back to a normal user and it still works.


[Preview2-Validation] Pages under Account/Manage loose the 'Title' information from ViewData

For example, when we go to Manage page, we should see the title of the html page to be like Profile - <application-name> but we only get  - <application-name>.
@pranavkm and I debugged through this and think that the cause of this issue could be with how Identity UI uses a model type(abstract) on the view versus the actual type(implementation). Following line of code is a suspect:
https://github.com/aspnet/Mvc/commit/7127bb5dbbb07eb325a2852ac9a91be0cf443205#diff-0901f55a5e636aeef89b9663dafcb625R171

cc @javiercn

Can you guys provide more data on what's going on?

Sounds like the HTML <title> tag is missing some data because it's not in ViewData maybe?

This is likely an MVC bug. Looking into it


Makes it easier to contribute to the repository and adds a gif for the ban command

Creates a gif for the ban command, one-click setup for Repl.it, a Docker image so users can run the bot in a secure, industry-compatible container, and a one-click setup for Gitpod.

Can you provide in more detail what benefits this change brings?

Can you provide in more detail what benefits this change brings?

This pull request allows a user to start contributing to the repository with just a click of a mouse. It's that easy! This also creates an industry-standard, modern and secure container by using Docker. Many people who self-host software and many corporations prefer Docker containers. This also adds a funny gif for the ban command.

This pull request allows a user to start contributing to the repository with just a click of a mouse. It's that easy! This also creates an industry-standard, modern and secure container by using Docker. Many people who self-host software and many corporations prefer Docker containers. This also adds a funny gif for the ban command.


Viridithas 15.0 does not work

Hi,
I have a problem, in fritz gui, I can't install Viridithas 15.0, I get the following error message: engine could not load.
I tried to consult various forums online, but I didn't find anything that referred to my problem. Up to version 12, I had no problems. I only know that the program is written in rust. I use Windows 7. Can anyone help me? Thanks in advance.

Happy to help - is there any more information you can provide? It would be particularly useful if the GUI has any debug info you can give me.

Unfortunately, the type of error is not specified.

Unfortunately, the type of error is not specified.


SETS ,UNORDERED SETS AND MULTISETS IN C++ STL

Description 📜
The things explained in the documentation are:

Sets

Explaination
Different inbuilt functions along with code and output
Time complexities of different inbuilt functions

Unordered_set

Explaination
Different inbuilt functions along with code and output
Time complexities of different inbuilt functions

Multisets

Explaination
Different inbuilt functions along with code and output
Time complexities of different inbuilt functions

Fixes # <1050>

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] C/CPP

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@Saviour1001 Please review this

@Saviour1001  please review this

@Suvraneel  please review this


libRCTAlipay.a binary build failed, need update

undef: _OBJC_CLASS_$_UTDevice
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_UTDevice", referenced from:
      objc-class-ref in libRCTAlipay.a(libAlipaySDK.a)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Fixed according to these steps: https://my.oschina.net/u/1583729/blog/790413
Newer binary MD5:
openssl md5 /Users/_/Downloads/WS_APP_PAY_SDK_BASE_2.0/Demo/iOSDemo_2.0\(SDK_15.5.3\)/AlipaySDK.framework/AlipaySDK
MD5(/Users/_/Downloads/WS_APP_PAY_SDK_BASE_2.0/Demo/iOSDemo_2.0(SDK_15.5.3)/AlipaySDK.framework/AlipaySDK)= c49fc1c0db8945f084506af5902abc7a

FYI: develop branch

Merged #10


Postgres JSONB support on zend/Db

Hi, how can i work with JSONB (postgresql) in zend framework 3?.
for example i want make query's like this
SELECT id, data->'title' AS title, data->'description' as description FROM tablename
SELECT   jsonb_array_elements_text(data->'tags') as tag FROM tablename WHERE id = 1;
Or EXECUTE a function like a
SELECT myFunction()
jsonb_each(jsonb)
INSERT INTO tablename VALUES (1,'{"title": "title 1","category":"category 2"}')
UPDATE tablename SET data = jsonb_set(data,'{"image","quality"}','{"   copyright":"company X","registered":true}') where id=2;
ETC.
How can i implement this ideas, i follow the tutotial from ZF3 and i don't know how implement, maybe here is not the place for this question, but i appreciate if you give me a feedback, i don´t want to use ORM for this project. Thanks

This is the model file we can make a query with this methods
class EntityTable
{
    protected $tableGateway;
    protected $dbAdapter;
    public function __construct(TableGatewayInterface $tableGateway)
    {
        $this->tableGateway = $tableGateway;
        $this->dbAdapter = $tableGateway->adapter;
    }

public function getAllFromQuery()
{
     $query = $this->dbAdapter->query("SELECT count(*) FROM tablename WHERE data ? 'isVisible';", Adapter::QUERY_MODE_EXECUTE);
	    $data = $query->toArray();

        return $data;
    }

it´s important than you have declare in your db adapter
'db' => [
        'driver' => 'Pgsql',  // pdo not support all the pg_ functions
        'database' => 'database',
        'username' => 'user',
        'password' => 'pass'
    ]

**In a Action call **
public function indexAction()
    {

        return new ViewModel([
            'data' =>$this->table->getAllFromQuery()
        ]);
    }

and the view
<?= var_dump($this->data) ?>

AND THE RESULT IS THAT
array(1) { [0]=> array(1) { ["count"]=> string(1) "6" } }

Well this is a want to take from the data base but, how can i pass the data array into a entity exchangeArray method??

Its not elegant but works!!
public function getAllFromQuery()
    {
        $query = $this->dbAdapter->createStatement("SELECT id,
                                                data->>'title' as title,
                                                data->>'acess' as access,
                                                data->>'category' as category
                                                FROM tablename");
        $data= $query->execute();
        /* OR if you want execute a function from postgres */

        //$query = $this->dbAdapter->query("SELECT totalregistrosdinamico('tablename')", Adapter::QUERY_MODE_EXECUTE);

        $resultSetPrototype = new ResultSet();
        $resultSetPrototype->initialize($data);
        $resultSetPrototype->setArrayObjectPrototype(new Model\EntityName());
        return $resultSetPrototype;

    }

there is Zend\Db\Sql\Predicate\Expression for that, I blogged about it https://samsonasik.wordpress.com/2017/03/13/querying-postgresqls-jsonb-with-zenddb/


chore: jsonfmt azsadmin

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Can one of the admins verify this patch?

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go


Query on awesome-newman-html-template

hi Marcos,
Your Postman Report is very good. If you want we can work together and build a great report that can be used   larger community. If you want i can write few more features for you.
Please let me know if you want it and we can go from their.
Thanks
Bhanu

Hi @BhanuDash007, thanks, it's wonderful to hear this and I'm grateful that you enjoyed it.
Yeah, it would great work with you and add more features just only send as pull request and we go analyze together.
Best regards