Change Thread Name

I try to change thread Name on the chat UI but know how to
The thread name is default to take the first User message as the thread name. I want to customize thread name after the first assistant response (like chatGPT)

I'd also love to know if there is an actual way to do this properly.
I was able to find a way to manually do this, however it doesn't update the UI until the user refreshes the page. Regardless, it may still be useful to you or the maintainers:
Make a Function to Create Chat Title
async def generate_conv_summary(conv_messages):

    client = AsyncOpenAI()
    conv = ""
    for message in conv_messages:
        if message["role"] == "user":
            conv += f"User: {message['content']}\n"
        elif message["role"] == "assistant":
            conv += f"Assistant: {message['content']}\n"

    messages = [
        {"role": "system",
         "content": "Act as a conversation summarization engine designed to create a short title for a conversation between a user and an AI assistant. Given a conversation, you will generate a title for that conversation in 3 (three) words or less. The title should be a concise summary of the conversation, capturing the main topic or theme of the conversation."},
        {"role": "system", "content": conv}
    ]

    stream = await client.chat.completions.create(
            messages=messages, stream=True, model="gpt-4o"
    )

    return stream

Add Functionality to Main Function
# import chainlit.data as cl_data
@cl.on_message
async def main(message: cl.Message):

    message_history = cl.user_session.get("message_history")
    # Custom code to identify if this is the first message in a thread
    first_msg = False
    if len([msg for msg in message_history if msg.get('role') == 'user']) == 1:
        first_msg = True

    # Generate and give msg to user as usual
    # ...
    # message_history.append({"role": "assistant", "content": generated_msg.content})
    ###

    # Once assistant message is generated, generate chat title and update the thread name
    if first_msg:
        chat_title = ""
        conv_summary_streamer = await generate_conv_summary(message_history)
        async for part in conv_summary_streamer:
            if token := part.choices[0].delta.content or "":
                chat_title += token

        chat_title = chat_title.title().replace(".", "")
        await cl_data._data_layer.update_thread(message.thread_id, name=chat_title)

Hopefully this helps, I would love to know of a way to update the thread name and instantly have it render onto the UI.

I'd also love to know if there is an actual way to do this properly.
I was able to find a way to manually do this, however it doesn't update the UI until the user refreshes the page. Regardless, it may still be useful to you or the maintainers:
Make a Function to Create Chat Title
async def generate_conv_summary(conv_messages):

    client = AsyncOpenAI()
    conv = ""
    for message in conv_messages:
        if message["role"] == "user":
            conv += f"User: {message['content']}\n"
        elif message["role"] == "assistant":
            conv += f"Assistant: {message['content']}\n"

    messages = [
        {"role": "system",
         "content": "Act as a conversation summarization engine designed to create a short title for a conversation between a user and an AI assistant. Given a conversation, you will generate a title for that conversation in 3 (three) words or less. The title should be a concise summary of the conversation, capturing the main topic or theme of the conversation."},
        {"role": "system", "content": conv}
    ]

    stream = await client.chat.completions.create(
            messages=messages, stream=True, model="gpt-4o"
    )

    return stream

Add Functionality to Main Function
# import chainlit.data as cl_data
@cl.on_message
async def main(message: cl.Message):

    message_history = cl.user_session.get("message_history")
    # Custom code to identify if this is the first message in a thread
    first_msg = False
    if len([msg for msg in message_history if msg.get('role') == 'user']) == 1:
        first_msg = True

    # Generate and give msg to user as usual
    # ...
    # message_history.append({"role": "assistant", "content": generated_msg.content})
    ###

    # Once assistant message is generated, generate chat title and update the thread name
    if first_msg:
        chat_title = ""
        conv_summary_streamer = await generate_conv_summary(message_history)
        async for part in conv_summary_streamer:
            if token := part.choices[0].delta.content or "":
                chat_title += token

        chat_title = chat_title.title().replace(".", "")
        await cl_data._data_layer.update_thread(message.thread_id, name=chat_title)

Hopefully this helps, I would love to know of a way to update the thread name and instantly have it render onto the UI.

love the way how you done it, I read the documents said that chainlit is auto refresh on first message (for the change of the URL has to include the thread id) so I figured it out
This code work for me to update after the first reponse  :
from literalai import LiteralClient
@cl.on_message
async def main(message: cl.Message):
     #response and do something ...
      client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY"))
      client.api.update_thread(id = thread_id, participant_id= participantId, name = topic)

This is how I do it with OpenAI Assistant API
@cl.on_message
async def message(message_from_ui: cl.Message):
    assistant: Assistant = cl.user_session.get("assistant")
    thread: Thread = cl.user_session.get("thread")
    # Only run on first interaction...
    messages = await assistant.llm.beta.threads.messages.list(thread_id=thread.id)
    if len(messages.data) == 0:
        new_title = await llm.chat.completions.create(
            model='gpt-4o',
            messages=[{"role": "user", "content": f"Summarize this user prompt in no more than 20 characters:\n\n{message_from_ui.content}"}],
            max_tokens=10,
        )
        print(f"New Title: {new_title.choices[0].message.content}")
        await db.update_thread(thread_id=message_from_ui.thread_id, name=new_title.choices[0].message.content)

This is how I do it with OpenAI Assistant API
@cl.on_message
async def message(message_from_ui: cl.Message):
    assistant: Assistant = cl.user_session.get("assistant")
    thread: Thread = cl.user_session.get("thread")
    # Only run on first interaction...
    messages = await assistant.llm.beta.threads.messages.list(thread_id=thread.id)
    if len(messages.data) == 0:
        new_title = await llm.chat.completions.create(
            model='gpt-4o',
            messages=[{"role": "user", "content": f"Summarize this user prompt in no more than 20 characters:\n\n{message_from_ui.content}"}],
            max_tokens=10,
        )
        print(f"New Title: {new_title.choices[0].message.content}")
        await db.update_thread(thread_id=message_from_ui.thread_id, name=new_title.choices[0].message.content)

@hayescode what is db?

DB is just what I rename the SQLAlchemyDataLayer instance for brevity.

DB is just what I rename the SQLAlchemyDataLayer instance for brevity.

oh got it. So you are using SQLAlchemy as a persistent store. I am using LiteralAI and i made it working like this
from literalai import LiteralClient

literalAI = LiteralClient()

thread_id = cl.context.session.thread_id
thread = literalAI.api.get_thread(id=thread_id)

if thread:
    literalAI.api.update_thread(id=thread_id, name='New Thread Name')

The only thing left is, it needs a page reload to see updated thread name in left side bar


The0xGingi-BrowserAuthors.0xGingi-BrowserInstaller version 114.0.5735.110

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/109530&drop=dogfoodAlpha

Manifest: The manifest file path must match PackageIdentifier and PackageVersion properties from manifest. actual
'manifests\t\The0xGingi-BrowserAuthors\0xGingi-BrowserInstaller\114.0.5735.110', expected
'manifests\0\0xGingi\Browser\114.0.5735.110'


error Unrecognized command "run-android". info Run "react-native --help" to see a list of all available commands.

i have facing the issue while running the React-Native project in my Android physical Device... why this occurred can anyone please tell tell me with solution

Are you in the root of your project (not the android folder)?

yes... all works perfectly fine but since last week.. i am getting an error
that " react-native run-android" unrecognized ..what should i do please
help me
On Fri, 21 Feb 2020 at 22:13, marcosrodriguezseminole <
<EMAIL_ADDRESS>wrote:

Are you in the root of your project (not the android folder)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/28116?email_source=notifications&email_token=AKM4IGT6TUQ2JFID5QASLL3REAADRA5CNFSM4KXTH6SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMTKHSA#issuecomment-589734856,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKM4IGXQFNNI6PFJM5GEF3LREAADRANCNFSM4KXTH6SA
.


Fix clean, prune, and validation commands

Reworked CLI a bit, so validation, pruning and cleaning work again.

This is a rather large restructure of the CLI. I didn't move over to using click (i.e. #17 ), because I don't think I can assign an argument to multiple subparsers as I'm doing right now with argparse.

Sure, we need to focus on the MVP, but currently there is a lot of code that isn't used and doesn't work anymore. So we should remove it or fix it, I feel. So I also fixed the commands to use them. As a middle way we could wait before adding CLI commands for them for now?
The clean command checks for dangling dirs that do not have a valid metadata file
prune allows the removal of an entry (a single one, currently, it is easy to add a -a flag but that felt dangerous)
validate checks the files of a dataset agains the checksums in the metadata file. It has options to check all entries, and to remove failing entries

I created a new PR that doesn't rework the CLI. The clean, validate, and prune-invalid options are still available. But the prune-entry option was removed because it doesn't support the new Dataset class. We can close this PR if we prefer that.

So I also fixed the commands to use them. As a middle way we could wait before adding CLI commands for them for now?

💯 agreed on this — making it work + not exposing it (yet) is a good middle way to not lose the code (though we've got it in git too...)

In the meantime, I'm keeping this open, because I still need to address some of the review comments

All comments should be addressed in #100 so I'm closing this.


get username and etc...

how to get a username from InstagramOfficalLoginActivity.java
I feel that this code does not work
 if (url.equalsIgnoreCase(mURL)) {
                    view.addJavascriptInterface(new MyBridge(InstagramOfficalLoginActivity.this), "bridge");
                    String javascript = "javascript: document.getElementsByClassName(\"_0mzm- sqdOP  L3NKy       \")[0].onclick = function() {\n" +
                            "        var username = document.getElementsByName(\"username\").value;\n" +
                            "        var password = document.getElementsByName(\"password\").value;\n" +
                            "        bridge.saveData(username, password);\n" +
                            "    };";
                    view.loadUrl(javascript);
                }

Do you have a better solution for getting a username?

Hi @Amirhf1 , First of all, sorry for this late response, and yeah actually I'm saving user profile model in preference while handling cookies in the same activity

Thank you for your answer.
Instagram has changed its relevant elements

Yes, I think so, Will update it soon and I request you too If you've sm time plz fix this and create PL will merge that in master


Monitor can't connect to screenly API when screenli OSE is set to use SSL / 301 Redirect

Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior

It's possible to set screenly ose to use SSL. When the player is set to SSL its not possible to connect the player with the monitor.
Current Behavior

The monitor runs in a HTTP 301 redirect and throws an error.
Possible Solution

I'm not sure if this is a good fix but it works.
https://github.com/didiatworkz/screenly-ose-monitor/blob/e157f34aa61223a7b0a5da77996f1f5d63111685/assets/php/player.php#L123
to
if(($httpcode>=200 && $httpcode<300) || $httpcode==401 || $httpcode==301) return true;
And
https://github.com/didiatworkz/screenly-ose-monitor/blob/e157f34aa61223a7b0a5da77996f1f5d63111685/assets/php/image.php#L30
to
if(($httpcode>=200 && $httpcode<300) || $httpcode==401 || $httpcode==301) return true;
Steps to Reproduce (for bugs)

Set Player to use SSL. (Run /screenly/bin/enable_ssl.sh)
Add the Player
Error Occurs and Image is Offline

Context

HTTPS did not work.
Your Environment

Screenly OSE Monitoring Version: v3.3
Screenly OSE Version: production@d12df55
Raspbian Version: Buster
Browser Name and version: Chrome 86.0.4240.75
Operating System and version (desktop or mobile): Desktop

Hello @LeSnowTiger
First: Great that you took the time to analyze the problem and suggest a solution!
I just set up a test system and was able to reproduce your problem.
I will implement your solution within the next days. Maybe I have some time to fix some other problems. - I put the whole thing on my to-do list.
Thank you 😄

I'm glad I could help :)


Ignore

Just seeing if we can get to the bottom of the flakiest test

Closing - hopefully https://github.com/BrightspaceUI/core/pull/1357 does the trick.


feat/slider

This PR introduces the Slider component with the following features:

Supports clicking on the track to move closest thumb
Supports multiple thumbs
Keyboard interaction with Page Up, Page Down, Home, End, and arrow keys
Value label for formatting values to human readable format

Since it's an old PR, can you pull the latest changes from main ?
Some API like Polymorphic has changed.

Thanks for the PR, I will work on the following when have time:

HTML form support (+ labelling, description and error message, like others form elements in the library)
tests
doc


Does not work for object keys which contain dashes.

Thank you for making this library!
I create a GRPC-like JSON-RPC library based on WebSockets and it becomes super useful when we want to check the type of incoming messages.
We often have the case that incoming messages (especially http request headers) include dashes, and noticed this:
Expected behavior
A snippet like:

type Test = {"test-dash":number};

const check = (test: Test) => isA<Test>(test);

should not throw - i.o.w compile to:

var __typeCheckerMap__ = {
    __0: function (value) { return typeof value === "object" && value !== null && __typeCheckerMap__.__1(value.['test-dash']); },
    __1: function (value) { return typeof value === "number"; }
};
const check = (test) => __typeCheckerMap__.__0(test);

Current behavior
It throws an exception because it compiles to (because of the dash):

var __typeCheckerMap__ = {
    __0: function (value) { return typeof value === "object" && value !== null && __typeCheckerMap__.__1(value.test-dash); },
    __1: function (value) { return typeof value === "number"; }
};
const check = (test) => __typeCheckerMap__.__0(test);

Possible solution
Maybe change createElementAccess to use ts.createPropertyAccess ? Not super sure because it was hard to find any docs on that.

@janjakubnanista Created a PR https://github.com/janjakubnanista/ts-type-checked/pull/47.


Fix broken unit test

TestPhaseCalculaton() (also this is misspelled)
TestModulusCalculation()

Fixed this in #29.


Could -i accept multiple files?

Would be nice in a CI also, like:
padpo -i *.po

Not yet. Though, you can pass a directory instead of a file. Only .po files inside the directory are checked.
@JulienPalard : is it sufficient?

BTW, I've implemented locally a prototype in ten lines of code, so if it's necessary, I can commit it. @JulienPalard @Seluj78 what do you think?

Sure why not ?
Does your folder search searches recursively ?

Not yet. Though, you can pass a directory instead of a file. Only .po files inside the directory are checked.
@JulienPalard : is it sufficient?

No, for python-docs-fr I'd like to tell explicitly what file to check what file to skip. Something like this https://github.com/JulienPalard/python-docs-fr/commit/be51effc8d307f674c92ac1733bdd5bbd9f3b7f5

Does your folder search searches recursively ?

Yes, here: https://github.com/vpoulailleau/padpo/blob/9ba93c8d6518d0a86b997c023c3e1927a16f999f/padpo/padpo.py#L32

No, for python-docs-fr I'd like to tell explicitly what file to check what file to skip. Something like this JulienPalard/python-docs-fr@be51eff

OK, I'll push the prototype.

Thanks!!! Trying it right now, like padpo *.po */*.po in my clone of python-docs-fr :]

Thanks!!! Trying it right now, like padpo *.po */*.po in my clone of python-docs-fr :]

This is an optional named argument, you have to name it.
padpo -i *.po */*.po or padpo --input-path *.po */*.po

Oh that's what I meant and what I typed on my shell :] thanks for noticing though.


Rework Menus

Quick Wins

[ ] Remove click-outside, work with onClickClose (clickOutside should be implemented when needed by the parent components)
[ ] Do not render menu tree when not open
[ ] Clean up event handling, set it on the parent

Long Term

[ ] Clean up Menu structure
[ ] Added slds-dropdown—fluid to adjust the width of a dropdown so it can be fluid to its container
[ ] Picklist: Uses new combobox HTML
[ ] Whenever slds-dropdown is used, it is required to be contained inside an element that has the classname slds-dropdown-trigger
[ ] Sub-headings inside of dropdown menus should now be truncated
[ ] Implement robust dropdown positioning to fix display issues inside scrollable containers (e.g. make use of https://github.com/FezVrasta/popper.js/)

@brunottonurb please talk to @peter or me before starting to work on this. We need to make sure we get this right

🆗


Question: Can we use this library with Content Provider and Loaders?

[x] I have verified there are no duplicate active or recent bugs, questions, or requests
[x] I have verified that I am using the latest version of this library.
[x] I have given my issue a non-generic title.

I know this library can used, but as internally it uses SQLite itself.
Can we have support for Content Provider and Loaders? That means when data is modified the list will be automatically updated.

Content providers: yes, checkout the readme

@afollestad I checked the readme. It mentioned about existing Content Providers. What about for Custom Content Providers?

Oh that requires your own classes and manifest registrations, so that's out
of the scope of this library
On Thu, Mar 2, 2017, 8:43 AM Akshay Chordiya<EMAIL_ADDRESS>wrote:

@afollestad https://github.com/afollestad I checked the readme. It
mentioned about existing Content Providers. What about for Custom Content
Providers?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/afollestad/inquiry/issues/28#issuecomment-283671632,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvGBRWp7MFa6T8DC1SRJ4bPWjaClYaPks5rhtWUgaJpZM4MRCea
.

--
Regards,
Aidan Follestad
http://aidanfollestad.com
651-528-1662


Some Maize node are not animated

Very small maize is animated, and the biggest one too. But not some intermediaries.
Very important. Or not. But it should be investigated once.

That's related to shaders. Maybe the group the waving_plants shaders apply to is not set to those maize plants.

In fact it it a field in node definitions that wapling_plants use.
https://github.com/MinetestForFun/minetest-minetestforfun-server/commit/96c5216e26193b1b45df3c6bf245a799ba58ba55
Now all waving = 1 are unified. First and second plants won't wave, but third and higher will (only for plants that would wave in real life though).


refactor: adding language example

:tada: This PR is included in version 1.0.8 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ManagedConcourseServerTest should use latest code

In the starting method of the TestWatcher, change the impl to this
server = ManagedConcourseServer.manageNewServer(new File(ConcourseCodebase.cloneFromGithub().buildInstaller()));

NOTE: I tried this already but it seems like there are some issues with the server stopping. Need to investigate.

Hi,
I am new to concourse and I would like to start contributing to concourse.
I have tried the above code change and I did not get any exceptions. Can you please provide little more details on this so that I can start working on this.
Also I am beginner in open source contributions so any specific guidance will be very helpful.


Angie example variables

Example that shows how to set configuration values that become environment variables

Hey Angie,
The code looks good. Let's get together tomorrow and talk about the writeup, what we should cover.
Mike W.

Mike,
Please take a look at it and let me know if you want me to change anything.
Angie


recognize_google_cloud or recognize_google?

Sorry, it's maybe just me but even after reading couple of issues and the docs, I am not sure what the difference and pros and cons of these different recognize methods? Is e.g. recognize_google_cloud better / faster / more accurate than the "legacy" recognize_google? Which one should I use? Thanks! :)

google_cloud needs the json file that works directly with your cloud project, so they can charge you. I would say its more accurate and speed depends on your own connection.


chore: added video link

This PR removes the docs link and replaces it with the I/O video

@jpvajda at the moment i'm unable to view the video do we want this live like this? or should we wait until the video is truly available?

This is ready to merge


Update Polish localization strings

Synchronize with English version.
Fixes https://github.com/kubernetes/website/issues/36761.

(nit)
/retitle Update Polish localization strings

/approve
/lgtm


[BUG] undoable mutation is called many times

Describe the bug
When updating multiple records at the same time whose mutationMode is undoable, the doMutation() method is called multiple times leading to duplicate API calls for the dataProvider.
To Reproduce
Steps to reproduce the behavior:

Go to a list page where multiple records are shown.  useUpdate or useUpdateMany works best for this.  Ensure the mutation function for the records defines mutationMode: "undoable"
Edit one of the records.
While the toast message from step 2 is still shown, update different record.
While the toast message from step 2 is still shown, update the same record from step 2 again

Expected behavior
Viewing the network calls made from the browser, you will see that many more API calls to the dataProvider endpoint were executed.  You would expect that with 3 updates made, only 3 API calls would have been performed.
Screenshots
I've modified the refine-advanced-table-example with the following changes in order to better represent this issue:

The "Delete selected items" button is not disabled while waiting for the success of the undoable mutation.
The useDeleteMany mutation has been changed to useUpdateMany so that records are not removed and can be modified multiple times.

I believe these changes provide a more simplistic use case which serves to demonstrate the issue.  Disabling the "Delete selected items" button is definitely a work around for this issue, but a requirement to disable the user from disabling any edit functionality is not clearly mentioned in documentation.
https://user-images.githubusercontent.com/8311573/191482087-ef33607f-4ea5-4d25-83c6-4bbdec76c850.mov
Desktop (please complete the following information):

OS: MacOS
Browser chrome
Version  105.0.5195.125
Used dataProvider [e.g. custom, Strapi, Airtable]

Additional information
A possible fix for this is shown here: https://github.com/pankod/refine/compare/next...collinpreston:refine:remove-notificationItem-at-time-zero

Hey @collinpreston ,
Thank you for contacting us! We had the idea to refactor the undoable queue. with this issue, we can make it happen! 🚀

Hey @collinpreston,
We've created #2559 . We will probably release it tomorrow 💥 Thank you for understanding and patience

Hey @collinpreston ,
We've released<EMAIL_ADDRESS>Could you approve this fix?


Bluetooth: GATT: Fix assuming CCC position

Accourding to the spec the CCC descriptor may occur in any position
within the characteristic definition after the Characteristic Value.
Fixes #28324

@Vudentz, thanks for jumping on this so quickly! Very much appreciated.

I can confirm that this PR fixes the GATT notify issue with the peripheral_esp bluetooth sample as well as my project that uses a custom characteristic.

@joerchan could you please review?

@carlescufi @jhedberg Need another approval for this fix.


Update and Tests Markov Perf

Request for PyPlot to Plots

@Nosferican made some fixes (LQ => QuantEcon.LQ, 1e-8 tolerance => 1e-7, broadcasting). We can talk about where this is when you get back.


Add support to generate android fonts xml files

https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml

Awesome, thanks for adding this!

Released as 2.2.2


我的书单 - 王志彪的博客

https://flyingwzb.github.io/2019/07/21/我的书单/
Every failure is leading towards success.

测试

delete


bigquery: support SQL parameters

Go language binding of BigQuery has this feature in 2016 Q4 milestone in GoogleCloudPlatform/google-cloud-go#390
I hope this feature can be in node as well
See parameterMode and queryParameters in the query job reference.

I believe this is supported currently, but the user needs to construct their own parameterMode and queryParameters configuration. So what we really want is to make that configuration unnecessary, and convert a user's SQL string input into the verbose parameterMode and queryParameters configuration, right? Or did you see us supporting this another way?

right; I have spent a lot of time from the bq tool's apilog to see how queryParameters is constructed,
in https://github.com/GoogleCloudPlatform/google-cloud-go/issues/390#issuecomment-260262753; because even the bigquery rest api reference isn't very detailed, not having a working example how should queryParameters be constructed: same kind of struggling in the python api GoogleCloudPlatform/google-cloud-python#2551
so far I have figured out in this way of passing parameter it indeed works
bigquery.query({
    query: 'SELECT 3 IN UNNEST(@arr)',
   "useLegacySql": false,
   "queryParameters": [
    {
     "name": "arr",
     "parameterType": {
      "type": "ARRAY",
      "arrayType": {
       "type": "INT64"
      }
     },
     "parameterValue": {
      "arrayValues": [
       {
        "value": "2"
       },
       {
        "value": "3"
       },
       {
        "value": "4"
       }
      ]
    }
})
.then( ... )        // promise

but why not give another option in the query for users' life be easier?
https://googlecloudplatform.github.io/google-cloud-node/#/docs/bigquery/0.4.0/bigquery?method=query
like:
bigquery.query({
    query: 'SELECT 3 IN UNNEST(@arr)',
    useLegacySql: false,
    queryParameters: {
      "arr": {
        type: "ARRAY<INTEGER>",
        value: [ 2, 3, 4 ]
      },
    }
})

or further:
bigquery.query({
    query: 'SELECT @name, 3 IN UNNEST(@arr) AS b, @obj.a AS obj_a',
    useLegacySql: false,
    queryParameters: {
      "name": "Mr Smith"
      "arr": [ 2, 3, 4 ],
      "obj": { a: 4 },
    }
})

then this library can infer the parameter types and do the necessary construction, provide the most flexibility to users of this library
   "queryParameters": [
    {
     "name": "name",
     "parameterType": {
      "type": "STRING"
     },
     "parameterValue": {
      "value": "Mr Smith"
     }
    },
    {
     "name": "arr",
     "parameterType": {
      "type": "ARRAY",
      "arrayType": {
       "type": "INT64"
      }
     },
     "parameterValue": {
      "arrayValues": [
       {
        "value": "2"
       },
       {
        "value": "3"
       },
       {
        "value": "4"
       }
      ]
     }
    },
    {
     "name": "obj",
     "parameterType": {
      "type": "STRUCT",
      "structTypes": [
       {
        "name": "a",
        "type": {
         "type": "INT64"
        }
       }
      ]
     },
     "parameterValue": {
      "structValues": {
       "a": {
        "value": "3"
       }
      }
     }
    }
   ]

the bq tool's parameter construction ability should be in this library
$ ./opt/google-cloud-sdk/platform/bq/bq.py --apilog - query --use_legacy_sql=false \
  --parameter name::'Mr Smith' \
  --parameter arr:'ARRAY<INTEGER>':'[2,3,4]' \
  --parameter obj:'STRUCT<a INTEGER>':'{"a": 3}' \
  'SELECT @name, 3 IN UNNEST(@arr) AS b, @obj.a AS obj_a'
+----------+------+-------+
|   f0_    |  b   | obj_a |
+----------+------+-------+
| Mr Smith | true |     3 |
+----------+------+-------+

I think that sounds great, we should definitely make this as easy as possible.
@bjwatson do you know anyone from the BQ API team that can share some code, insight, or "gotchas" to be aware of if we were to try to implement this ourselves?

@stephenplusplus I think that @tswast, @elibixby, or @chadjennings could point you in the right direction.

Hi @stephenplusplus, are you actively working this?  Or do you still need input from BQ team?  If the latter please let me know ASAP.  If not, do you have an estimate to completion?  Thanks!

No work is ongoing at the moment. Is my understanding correct that we want to design an API around SQL parameters, and that is a feature that is blocking beta? If that's the case, input and prior art (have other languages implemented this yet?) would be very helpful. Is there a spec or any documentation on the full syntax of a parameterized query?

@stephenplusplus
Yes.  This is blocking beta.  We need to support SQL parameters.
BQ reference docs here: https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query
Refer python implementation here: https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2776
Ruby here: https://github.com/GoogleCloudPlatform/google-cloud-ruby/pull/1094
Do you have bandwidth today to review and estimate effort?

Thanks for the links. I'll take a dive into those implementations and begin a translation into our repo.

@danoscarmike digging into it now and putting some code together. I'll let you know an estimate before the end of the day, once I'm a little more familiar.

@danoscarmike PR sent: #1854. Functionality is complete and the tests will be done today. Can someone from the BigQuery team take a look? We also need help coming up with a query that uses structs with SQL parameters.

please drop<EMAIL_ADDRESS>from this thread.  This is my personal
email address and shouldn't get this thread.  feel free to add
<EMAIL_ADDRESS>cj
On Fri, Dec 2, 2016 at 10:36 AM, Stephen Sawchuk<EMAIL_ADDRESS>wrote:

@danoscarmike https://github.com/danoscarmike PR sent: #1854
https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1854.
Functionality is complete and the tests will be done today. Can someone
from the BigQuery team take a look? We also need help coming up with a
query that uses structs with SQL parameters.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1787#issuecomment-264528155,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEcxAvIIwbNEgUu1gLGF3HRDcmC1UStoks5rEGU4gaJpZM4KxA6d
.

--
Chad W. Jennings
650 430 0458

@stephenplusplus I couldn't think of an example query for structs either. This is what we ended up using for the docs:
bq query --use_legacy_sql=False \
    --parameter='struct_value:STRUCT<x INT64, y STRING>:{"x": 1, "y": "foo"}' \
    'SELECT @struct_value AS s;'

For integration tests, it would be good to have one that has a struct-valued field and an array-valued field in addition to some scalar values.
Sounds like you got one for arrays, but in case you are still looking for an example, this is the query I used for the docs:
bq query --use_legacy_sql=False \
    --parameter='gender::M' \
    --parameter='states:ARRAY<STRING>:["WA", "WI", "WV", "WY"]' \
    'SELECT name, sum(number) as count
    FROM `bigquery-public-data.usa_names.usa_1910_2013`
    WHERE gender = @gender
    AND state IN UNNEST(@states)
    GROUP BY name
    ORDER BY count DESC
    LIMIT 10;'


Fix CCE when casting an invocation to a BLangValueExpression

Purpose
$title.
Fixes #30573
Approach
n/a
Samples
n/a
Remarks

https://github.com/ballerina-platform/ballerina-lang/pull/30355

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Is it possible to add a test case. Not sure why we didn't catch this in taint tests

Is it possible to add a test case. Not sure why we didn't catch this in taint tests

I'll add tests separately since this is a bit urgent. (tracked via: https://github.com/ballerina-platform/ballerina-lang/issues/30581)


Cannot extract meter value - Kamstrup Multical 401

I hope you vcan help me. I have a Kamstrup Multical 401 and trying to use your script. I have tried to place de IR head at every possible way at the meter but the following warning keeps appearing. In MQTT i see the topic but no values.
[2022-10-05 21:27:18 daemon.py init:  41 - INFO - initializing daemon]
[2022-10-05 21:27:18 mqtt_handler.py connect:  43 - INFO - Connected to MQTT at: <IP_ADDRESS>:1883]
[2022-10-05 21:27:18 mqtt_handler.py connect:  45 - INFO - with username pi, QoS level = 1 and retain = False]
[2022-10-05 21:27:18 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:18 kamstrup_meter.py open: 118 - DEBUG - Opened serial port]
[2022-10-05 21:27:20 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:20 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:22 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:22 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:24 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:24 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:26 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:26 mqtt_handler.py publish:  55 - INFO - Publishing 'kamstrup/values'	'{}'	to <IP_ADDRESS>:1883]
[2022-10-05 21:27:26 daemon.py run:  84 - INFO - Waiting 1 minute(s) for the next meter readout]
This is my configuration file:
mqtt:
host: <IP_ADDRESS>
port: 1883
client: kamstrup402
topic: kamstrup
qos: 1
retain: False
authentication: True
username: pi
password: [password]
serial_device:
com_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
kamstrup:
parameters:
- energy
- volume
- temp1
- temp2
poll_interval: 1
i hope anyone has an idea what i am doing wrong. Thanks in advance.

Hi,
Are you sure that your meter is "awake"? You can do so by pressing the button. It will remain active for 30 minutes and remains active if a valid IR signal is received.

From: madradrakie @.>
Sent: Wednesday, October 5, 2022 9:36:54 PM
To: matthijsvisser/kamstrup-402-mqtt @.>
Cc: Subscribed @.***>
Subject: [matthijsvisser/kamstrup-402-mqtt] Cannot extract meter value - Kamstrup Multical 401 (Issue #7)
I hope you vcan help me. I have a Kamstrup Multical 401 and trying to use your script. I have tried to place de IR head at every possible way at the meter but the following warning keeps appearing. In MQTT i see the topic but no values.
[2022-10-05 21:27:18 daemon.py init: 41 - INFO - initializing daemon]
[2022-10-05 21:27:18 mqtt_handler.py connect: 43 - INFO - Connected to MQTT at: <IP_ADDRESS>:1883]
[2022-10-05 21:27:18 mqtt_handler.py connect: 45 - INFO - with username pi, QoS level = 1 and retain = False]
[2022-10-05 21:27:18 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:18 kamstrup_meter.py open: 118 - DEBUG - Opened serial port]
[2022-10-05 21:27:20 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:20 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:22 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:22 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:24 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:24 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:26 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:26 mqtt_handler.py publish: 55 - INFO - Publishing 'kamstrup/values' '{}' to <IP_ADDRESS>:1883]
[2022-10-05 21:27:26 daemon.py run: 84 - INFO - Waiting 1 minute(s) for the next meter readout]
This is my configuration file:
mqtt:
host: <IP_ADDRESS>
port: 1883
client: kamstrup402
topic: kamstrup
qos: 1
retain: False
authentication: True
username: pi
password: a1connect!
serial_device:
com_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
kamstrup:
parameters:

energy
volume
temp1
temp2
poll_interval: 1

i hope anyone has an idea what i am doing wrong. Thanks in advance.
—
Reply to this email directly, view it on GitHubhttps://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4J3SUCARZUZNJO7PEGTJLWBXKFNANCNFSM6AAAAAAQ53QGB4.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

hi matthijs. before i activate the script i press the button on the meter. i assume the 401 is working the same as the 402. i have tried for an hour to find the sweet spot but still no luck. it is also very hard to determine if the IR leds of the head are alligned perfectly

You can try the official software from kamstrup to verify if the meter will respond to those commands
See https://www.kamstrup.com/nl-nl/warmteoplossingen/slimme-warmtemeters/meter-software

You can try the official software from kamstrup to verify if the meter will
respons to those commands
See
https://www.kamstrup.com/nl-nl/warmteoplossingen/slimme-warmtemeters/meter-software
Op wo 5 okt. 2022 21:45 schreef madradrakie @.***>:

hi matthijs. before i activate the script i press the button on the meter.
i assume the 401 is working the same as the 402. i have tried for an hour
to find the sweet spot but still no luck. it is also very hard to determine
if the IR leds of the head are alligned perfectly
—
Reply to this email directly, view it on GitHub
https://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7#issuecomment-1268885487,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK4J3SV2ORAOBV5QSAMRRMTWBXLGLANCNFSM6AAAAAAQ53QGB4
.
You are receiving this because you commented.Message ID:
@.***>

i have tried the official software but my meter, the kamstrup 401 is not listed. It starts with the 402. I'am really curious if someone has managed to get it working because thereis a sensor eye present on the 401.

I did have the same problem, but after reading the manual I found out that the communication is different between a M402 and M401. At the moment I can read the values from the meter (m401), but I'm still looking into the possibility to send it via Mqtt (no great coder myself). Maybe you can adapt (USB port) and try this bit of code if your IR is placed correctly and is working?:
`
import serial
from time import sleep
mc401 = serial.Serial(port='/dev/ttyUSB1', bytesize=serial.SEVENBITS, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE, timeout=2)
mc401.baudrate = 300
mc401.write(bytes("/#1", 'UTF-8'))
mc401.flush()
sleep(1)
mc401.baudrate = 1200
mc401.flushInput()
data = mc401.read(87).split()
try:
print(data[0], data[1], data[3], data[4], data[5], data[6], data[7])
except IndexError:
pass
`
The main problem that I encountered is that you must send a signal at 300 baudrate, but you can only receive at 1200 baudrate. I have used the signal /#1 as this gives back energy, volume, temp1, temp2, tempdiff.

hello matthijs. Nico to read that you got it working. Can you tell me what you mean by adapt and at which place i should place the code? The IR reader is connected with a raspberry pi. I am still learning everyday :-)

I have same issue with MutliCAL 602. It should be using same protocol "KMP" but it is just echoing the same values I'm sending to it. Any idea?

Hi,
I don't have the 602, so unfortunately I cant help you with that. But here are my thoughts:
If you receive the exact same message as the code sends, than its possible that you having issues with reflections.  You can try to put some paper between the IR head and the meter to diffuse the light a little. Or try some more positions with the meter head. When I was testing the code, I experienced that the official tooling was able to handles more 'noise'  than my code.

Thanks for the info. I actually noticed that it is echoing the data even if it is not sitting on the kamstrup meter? Should the script wait little before reading the data or maybe flush before reading 🤔Laith…On 7 Dec 2022, at 21.46, Matthijs @.***> wrote:
Hi,
I don't have the 602, so unfortunately I cant help you with that. But here are my thoughts:
If you receive the exact same message as the code sends, than its possible that you having issues with reflections.  You can try to put some paper between the IR head and the meter to diffuse the light a little. Or try some more positions with the meter head. When I was testing the code, I experienced that the official tooling was able to handles more 'noise'  than my code.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I have a similar problem.
We have a Kamstrup MultiCAL 66C. According to the specifications, it works with:
300 baud req /300 baud reply, 1 start bit, 7 data bits, equal parity, 2 stop bits.
How can I change this because if I change this in kamstrup_meter.py to
baud rate = 300,
parity = serial.PARITY_EVEN,
bytesize = serial.SEVENBITS,
I get this error within 4 seconds :
Traceback (most recent call last):
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 89, in main
daemon.run()
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 81, in run
values = self.heat_meter.run()
File "/tmp/test/kamstrup-402-mqtt/kamstrup_meter.py", line 114, in run
value = self.readparameter(int(str(kamstrup_402_params[parameter]), 0))
File "/tmp/test/kamstrup-402-mqtt/kamstrup_meter.py", line 205, in read parameter
elif ((receivedMessage[0] != 0x3f) or
IndexError: byte array index out of range
What do I need to change to make the communication work properly?

It looks like you don't receive any data from the meter since the received Message array is empty.

Sorry verkeerde error. This is the correct error.
Traceback (most recent call last):
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 88, in main
daemon = KamstrupDaemon()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 69, in init
self.heat_meter = kamstrup(serial_cfg["com_port"], kamstrup_cfg["parameters"])
File "/opt/test/kamstrup-402-mqtt/kamstrup_meter.py", line 97, in init
bytesize = serial.SEVENTBITS,
AttributeError: module 'serial' has no attribute 'SEVENTBITS'

So if no data comes in, the application gives an error?

You are using an invalid parameter name. See
https://pyserial.readthedocs.io/en/latest/pyserial_api.html
It should be serial.sevenbits.

From: Obelix74Git @.>
Sent: Friday, December 16, 2022 10:13:47 PM
To: matthijsvisser/kamstrup-402-mqtt @.>
Cc: Matthijs @.>; Comment @.>
Subject: Re: [matthijsvisser/kamstrup-402-mqtt] Cannot extract meter value - Kamstrup Multical 401 (Issue #7)
Sorry verkeerde error. This is the correct error.
Traceback (most recent call last):
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 88, in main
daemon = KamstrupDaemon()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 69, in init
self.heat_meter = kamstrup(serial_cfg["com_port"], kamstrup_cfg["parameters"])
File "/opt/test/kamstrup-402-mqtt/kamstrup_meter.py", line 97, in init
bytesize = serial.SEVENTBITS,
AttributeError: module 'serial' has no attribute 'SEVENTBITS'
—
Reply to this email directly, view it on GitHubhttps://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7#issuecomment-1355617360, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4J3SUNSEYUU66QVUD3IFDWNTLQXANCNFSM6AAAAAAQ53QGB4.
 I have a 401, and put the meter over the reader at the bottom right. It seems to be seated properly, and tried all kinds of positions, but no reading. I also clicked the enter/play button on the reader.

Did you guys get this working? I have a 401, and put the meter over the reader at the bottom right. It seems to be seated properly, and tried all kinds of positions, but no reading. I also clicked the enter/play button on the reader.
For info I am using this reader, as it was suggested by someone. It should be working I think? https://www.aliexpress.com/item/1005003509520122.html

Hello Alekslyse. I got it working with for the 401 meter.   I used the following code:
https://github.com/matthijsberk/M401-irreader
See for more information:
https://github.com/matthijsberk/M401-irreader/issues/2


Get error markers working again

Error markers (squiggly lines) no longer appear with #234. The build errors will be shown in the error list, and clicking on them navigates to the error location, but the markers are missing. However, it's not clear to me whether adding the error markers from the MSBuild errors is a good idea, because they won't be updated when the file is changed (until you build again). Integrating with the Rust Language Server would be much better.

I don't know how it was before, but I'd like to ask, if the notes are shown (or will be shown) somewhere.
For example,
--> src\main.rs:24:21
|
24 |     match guess.cmp(&secret_number)
|                     ^^^^^^^^^^^^^^ expected struct std::string::String, found integral variable
|
= note: expected type &std::string::String
= note:    found type &{integer}
I understand that ^^^^^^^^ will be shown as error markers but where do notes and explanation go?

No, the notes are currently not shown. We take JSON formatted errors (cargo build --message-format=json) and extract the main message and span. The concept of multiline notes and explanations (and multiple spans) in error messages is somewhat incompatible to the whay VS usually presents errors. Do you have a good idea how to present them?

Well, I have an idea of how to present them: the same way as other "built-in" languages do - they show error description in a bubble that pops up when you hover the marker with a pointer. I've never created VS extensions so I'm not sure if it's hard to implement though.

At least it would be good to iterate over children in json and add them to the description section of an error. It doesn't looks perfectly but at least that way there is more information (like in good ol' c++ error messages).

You're welcome to improve that situation 👍  The build errors are created here: https://github.com/PistonDevelopers/VisualRust/blob/master/VisualRust.Build/Rustc.cs#L370 (LogRustcMessage)

@Boddlnagg hello again, I'm totally new to GitHub and can't check what I've done in full build (missing components to build solution and Java) but I've added a few lines to aggregate notes, hope they do their job. How can I make a pull request for review (request from GitHub Desktop fails)? Also are there any instructions on how to actually build the whole solution?

@quixoticaxis What mean build whole solution? Do you install all software components from https://github.com/PistonDevelopers/VisualRust#prerequisites

@quixoticaxis I don't know the GitHub Desktop Software ... but you can create a PR from the web interface from any branch in your fork. How to create a branch is explained in many tutorials in the web.
https://github.com/PistonDevelopers/VisualRust#contributing has all the information about how to get a full build working. It's especially important that you copy all the files from the VisualRust.Build debug output directory to %ProgramFiles(x86)%\MSBuild\VisualRust to make the MSBuild integration work.
Or, if you're hacking on VisualRust.Build and don't want to copy all the files after each change, you can create a "redirection" by creating C:\Program Files (x86)\MSBuild\VisualRust\VisualRust.Rust.targets with the following content (all the other files are referenced relatively) and setting the correct path to your Git clone in there:
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- Copy this file to C:\Program Files (x86)\MSBuild\VisualRust\ to load build rules directly from build output -->
  <Import Project="<your>\<path>\<to>\VisualRust\VisualRust.Build\bin\Debug\VisualRust.Rust.targets" />
</Project>

@Boddlnagg thank you, I'll create a PR a bit later then. Unfortunately I can't install Java where I am now.


Create owon pc 321 z.py

Proposed change

Additional information

Checklist

[ x] The changes are tested and work correctly
[ x] pre-commit checks pass / the code has been formatted using Black
[ x] Tests have been added to verify that the new code works

Use black playground for fixing the most formatting problems the test is complaining of https://black.vercel.app/

Use black playground for fixing the most formatting problems the test is complaining of https://black.vercel.app/

Thanks, I made it but I still have errors. I will check that this evening.

Most is fixed and the rest is isort and other.
First: description is not ended with """
-""" QUIRK FOR OWON PC321 Z                                                                    """
+"""QUIRK FOR OWON PC321 Z"""

Second is Isort:
 import logging
-import zigpy.types as t

-from typing import Dict, Final
 from zigpy.profiles import zha
 from zigpy.quirks import CustomCluster, CustomDevice
-
-from zigpy.zcl.clusters.general import (
-    Basic,
-    Identify,
-)
+import zigpy.types as t
+from zigpy.zcl.clusters.general import Basic, Identify
 from zigpy.zcl.clusters.smartenergy import Metering
+
 from zhaquirks.const import (
     DEVICE_TYPE,
     ENDPOINTS,

Delete the lines wit  - and adding them where its one + so its OK sorted.
Third:  is one extra line the test not liking
 )

-
 _LOGGER = logging.getLogger(__name__)

And its all and shall being easy fixed by "hand".

Now all is fixed you  can do then the Py 3.12 test is not OK and its waiting for the release of it.
Great work done !!!

That's great, thanks again !
Regarding py3.12, do I have to make some modifications?
When I watch errors, it shows a lot of errors in other quirks but not mine. So I don't understand...

Its nothing you can do the maintainer must getting the last working test suit and fixing all not OK things.
The last i was seen is this from yesterday https://github.com/zigpy/zigpy/issues/1253#issuecomment-1729733175

Its nothing you can do the maintainer must getting the last working test suit and fixing all not OK things.
The last i was seen is this from yesterday https://github.com/zigpy/zigpy/issues/1253#issuecomment-1729733175

Super, thanks again for your help

That's done.
Thanks !!!

Only 2 small formatting:
     )

-
 class Owon_PC321_Z(CustomDevice):
     """New Device Owon PC321 Z."""
+
     signature = {
         MODELS_INFO: [(Owon, "PC321")],
         ENDPOINTS: {
@@ -72,7 +73,7 @@ class Owon_PC321_Z(CustomDevice):
                 OUTPUT_CLUSTERS: [Identify.cluster_id],
             },
         },
-        #"manufacturer": "OWON Technology Inc.",
+        # "manufacturer": "OWON Technology Inc.",
     }
     replacement = {
         ENDPOINTS: {
Error: Process completed with exit code 1.

First need one blank line after the device class block and the signature.
Second need one space after the # and the beginning of the comment.

There are already attributes in the "ElectricalMeasurement" class for most of these measurements. Would it not be better to use those instead of extending the attributes of the Metering class? Like this redundant code will need to be added to the ZHA integration. (I like the naming L1, L2, L3 you used more than the naming of the attributes in the ElectricalMeasurement class a,b,c but that is probably just a difference because of geolocation)

Any update on this ?

HI, guys
glad to see this device been paired by quirks after I uploaded the Manufacturer's documents.
I don't know how to use these code, and my English is very poor, I still can't make this device run well, although you guys provide a solution, can someone helps me hand in hand how to use these . py files work? Big thanks!
here is my device info:
endpoints": {
"1": {
"profile_id": "0x0104",
"device_type": "0x000d",
"input_clusters": [
"0x0000",
"0x0003",
"0x0702"
],
"output_clusters": [
"0x0003"
]
}
},
"manufacturer": "OWON Technology Inc.",
"model": "PC321",
"class": "zigpy.device.Device"
}
PC321
制造商：OWON Technology Inc.
Zigbee info
IEEE: 3c:6a:2c:ff:fe:d0:db:75
Nwk: 0x7f58
Device Type: Router
LQI: 176
RSSI: -56
上次发现: 2023-12-23T04:13:26
供电方式: Mains

Hello
Any update on the owon pc321 support in zha ?
I would prefer not migrate to z2m because of this
Thx

Hey guys @exelsis423 @TheJulianJES
It is not clear for me what is blocking with these PR ?
I definitely need owon support with zha :)
How can I help to get this finally resolved ?
Thx

Hi there, same waiting for fix integration... Thank you!

Hi,
Sorry for a so long time without reply.
I had my HA totally crashed. So I couldn't work on it.
Now, I completely changed everything. I'm using proxmox, with HA core on a LXC. And for all other stuffs, I have for each one a dedicated LXC. And I installed z2mqtt.
So I don't have the possibility to check what I have done on this quirk anymore.
It was working fine, but if there is some improvement to do, somebody who have this equipment could have a look on it.

hello, any update ?
thanks

Hello,
I'm here because I don't have all the attributes with my pliers. Is it ready soon? because I see it's approved?

Bonjour, Désolé depuis si longtemps sans réponse. J'ai eu mon HA totalement écrasé. Je n'ai donc pas pu travailler dessus.
Maintenant, j'ai complètement tout changé. J'utilise proxmox, avec un noyau HA sur un LXC. Et pour tout le reste, j'ai pour chacun un LXC dédié. Et j'ai installé z2mqtt. Je n'ai donc plus la possibilité de vérifier ce que j'ai fait sur cette bizarrerie.
Cela fonctionnait bien, mais s'il ya des améliorations à apporter, quelqu'un qui possède cet équipement pourrait y jeter un coup d'œil.

Salut,
Vu que ça bloque au niveau de ZHA.
Tu saurais expliquer comment appliquer ton quirk pour utiliser pleinement cette pince.
Merci pour ton aide !


[BEAM-6579] Fix create disposition for the case of temporary tables

When WriteTables is used to create temporary tables different logic is required for altering the write and create dispositions.

Regression test?

(sorry for not mentioning that first time around)

Sadly, I don't see an easy way of unit testing this (though I've asked the user who is experiencing this bug to test this PR). Our BigQuery fakes today do not understand the write/create dispositions at all, and adding that to them is a much larger change. Let me know if you see another way of unit testing this.
I'll file a JIRA to add write/create disposition testing to our BigQueryIO tests.

I looked at adding this to the BigQueryIO integration tests, but it appears those only exist for reads. There's a large test gap for BigQueryIO I think.

I think only BQ write integration test we have is BQ tornadoes: https://builds.apache.org/view/A-D/view/Beam/view/PostCommit/job/beam_PostCommit_Java/lastCompletedBuild/testReport/org.apache.beam.examples.cookbook/BigQueryTornadoesIT/testE2EBigQueryTornadoes/
We have several other BQ read tests https://builds.apache.org/view/A-D/view/Beam/view/PostCommit/job/beam_PostCommit_Java/lastCompletedBuild/testReport/org.apache.beam.sdk.io.gcp.bigquery/
We have several other tests internally in Google I think.

Looking a bit deeper, and it appears I was wrong. Our unit test framework does validate dispositions (at least for batch loads).

@kennknowles I added a unit test that exercises the case of temp-table output combined with triggering, and I validated that the unit test fails without the current fix.

If I understand correctly, you want this cherrypicked, right?


feat(docs): navigate with left/right arrow keys

Enables docs navigation with left/right arrow keys. It can be useful for the ones who navigate with keyboard a lot.
More info : https://github.com/sphinx-doc/sphinx/pull/2064
You can try here : https://174236-90321822-gh.circle-artifacts.com/0/docs/index.html

deployed to https://pytorch.org/audio/master

Thanks!


leverage submodule

Coverage decreased (-1.7%) to 81.019% when pulling 7a55bc4bb618c6605a6ac8a3b5c11ec8735f40d2 on ben/upgrade into dd8992d65b65e39799b729d417f69c420d5ca7e6 on master.

Coverage decreased (-1.7%) to 81.019% when pulling 7a55bc4bb618c6605a6ac8a3b5c11ec8735f40d2 on ben/upgrade into dd8992d65b65e39799b729d417f69c420d5ca7e6 on master.


For Dockerfile based README, added a line to mention tag for base ima…

For Dockerfile based README, added a line to mention tag for base image.
For Base Image from ORC based README, removed instructions to pull Java image.

Please remember to -S or --signoff all your git commits.


Documentation doesn't match sample files

Documentation doesn't match sample files
Type of change

Bug fix

Description
The documentation does not match with the sample files. Which one is more accurate?
Usually the documentation lags behind...
Even thought, it seems that line 220 and 247 are probably more correct in the documentation, than in the issue.js file from the samples.
That's why I created a pull request on the samples repository as well.
https://github.com/hyperledger/fabric-samples/pull/153/commits/4b1e612e3d44a32349e6204a93c4c33fb5c6bad2

Thanks for this PR. The code in 2.0 has been updated since the doc was written.

@nikhil550 @TheBookThief  So which branches is the update required in?
Typically we make a fix to master branch first, and then backport to release branches if required.
Is there a reason this PR targets release-2.0 initially?

I'm really sorry if I made it wrong. I'm an absolute newbie...
I closed this pull request and try to make a new one for the master branch.


Nullable NSNumber should be explictly nonnull to be compatible with Android

Before submitting a new issue

[X] I tested using the latest release of the library, as maybe the bug has been already fixed.
[X] I checked for possible duplicate issues, with possible answers.

Bug summary
Since 0.2.0 we are forced to provide barTintColor & controlTintColor otherwise RN display an error :

Library version
0.2.0
Environment info
System:
  OS: macOS 14.4.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 138.52 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: /var/folders/xb/bns2zty1799942jnf2sx7tvr0000gn/T/yarn--1713431360981-0.3248882371003259/node
  Yarn:
    version: 1.22.19
    path: /var/folders/xb/bns2zty1799942jnf2sx7tvr0000gn/T/yarn--1713431360981-0.3248882371003259/yarn
  npm:
    version: 10.1.0
    path: ~/.nvm/versions/node/v20.9.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/hugo/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK:
    API Levels:
      - "23"
      - "26"
      - "28"
      - "31"
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 33.0.2
      - 34.0.0
    System Images:
      - android-23 | ARM 64 v8a
      - android-24 | ARM 64 v8a
      - android-27 | ARM 64 v8a
      - android-28 | Google APIs ARM 64 v8a
      - android-28 | Google ARM64-V8a Play ARM 64 v8a
      - android-28 | Google Play Intel x86 Atom
      - android-28 | Google Play Intel x86_64 Atom
      - android-31 | Google Play ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
      - android-33 | Google Play ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: 22.1.7171670
IDEs:
  Android Studio: 2023.2 AI-232.10227.8.2321.11479570
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 3.0.0
    path: /Users/hugo/.rvm/rubies/ruby-3.0.0/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.0-rc.8
    wanted: 0.74.0-rc.8
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to reproduce

openBrowser without barTintColor or controlTintColor

Reproducible sample code
openBrowser("https://swan.io", {
      onOpen: () => {},
      onClose: (url) => {},
    }).catch((error) => {
      console.error(error);
    });

Instead of relying on -1, I forwarded a whole object to the native side: https://github.com/swan-io/react-native-browser/pull/6. It's IMHO cleaner.
Tested on Android / iOS, new and old arch.


RowTag and feed specification

Is it possible to detect w3 feed specification via spark-xml or spark?
I want to use rowTag item when using RSS type and entry when using Atom.
https://validator.w3.org/feed/docs/

Is the feed XML? sure you can parse it then. You'd have to parse different XML files differently, so you may need to read the RSS and Atom feeds separately if they are different types of XML. After transforming them into a common representation, you can union the DataFrames. Is that all you're after?

Thank you for fast response. I'm working on a product application and I'd like to import products from an XML feed to a database. Merchants are using RSS or Atom specification. Perhaps I can create an document with XML first, check (somehow) root tag or xmlns attribute and then create the dataframe when I know which rowTag I should use.
So, I don't want to union the dataFrames, because those XML files are parsed separately.

OK, you wouldn't know ahead of time? then sure.
You can process them separately sure, if you like.


Rename NbtNull to NbtEnd

I've tried using it as a null value multiple times, but it will actually end the serialization in many cases. Renaming it will ensure that mods won't use it as a null value by mistake, like they could with JSON. See also AztechMC/Modern-Industrialization#161.

NbtEnd is misleading, see:
#2090
https://github.com/FabricMC/yarn/pull/2090#discussion_r588860544
If you're doing low-level programming it is common to use null as a character to end the treatment of data, but it's not only treated as an end.


Add Example button

For both search panels, add a button to fill the text box with example query.
(e.g. REV7 and RAD57 for simulation panel)

Example builder.

And this is for subsystem search.


Gym fails by Code Signing Error: No profile for team 'xxxx' matching

Issue Description
Code Signing Error: No profile for team 'xxxx' matching

Code Signing Error: No profile for team 'xxxx' matching

Hi @jp928, you should provide a bit more context. Does the profile actually exist? What is the Fastfile and lane that is throwing that error? Did you read what @fastlane-bot posted?

楼主解决了么?

Closing this since there hasn't been any response 😊


embedded, namespaced models not showing

Having a bit of trouble over here.
In the following example, Offer::PropertyInfo does not show up in the rails_admin dashboard:
class Offer
  include GlobalID::Identification
  include Mongoid::Document
  include Mongoid::Timestamps

  field :price, type: Integer
  field :funding_source, type: String
  field :name, type: String
  field :email, type: String
  field :phone, type: String
  field :phone_verified, type: Mongoid::Boolean, default: false

  embeds_one :property_info, class_name: "Offer::PropertyInfo"

  belongs_to :property
end

class Offer::PropertyInfo
  include Mongoid::Document

  field :street_name, type: String
  field :street_number, type: String
  field :unit_number, type: String
  field :city, type: String
  field :state, type: String
  field :zip, type: String

  embedded_in :offer
end

Any ideas why this isn't working? I tried putting Offer::PropertyInfo into models/offer/property_info.rb. I also tried adding it to config.included_models but no luck. Using mongoid 4.0.1.
Thanks!

That's an expected behavior.
Embedded models are only accessible through parent model, so showing them in Dashboard or Left Navigation never makes sense(See 163da3e9).

Thanks for the response.
What's the recommended way to inspect an embedded model's fields?

Use of accepts_nested_attributes_for will allow you to edit Offer::PropertyInfo within Offer edit form.
Working example is here:
https://github.com/sferik/rails_admin/blob/a24581d5386d9116745a5b584b25d4537487d5a6/spec/dummy_app/app/mongoid/nested_field_test.rb#L9-L12


imports to fix compilation issues and drop * from map

Docker-DCO-1.1-Signed-off-by: Mark Oates<EMAIL_ADDRESS>(github: fl0yd)

This probably isn't good enough, as a "docker checkpoint " results in:
Error response from daemon: 404 page not found
Error: failed to checkpoint one or more containers


Avoiding inline execution in scoped algorithms

We have currently defined the algorithms to call-through on completion. This means that a set_value call to then(f)'s receiver will call f inline and then call set_value on the next receiver in the chain. In simple cases like then this works fine, in structured cases there is danger here.
Given:
some_sender() | let_value([](){return some_complex_work_sender_that_does_Somethign_on_a_random_scheduler()}) | bulk(complex stuff)

some_sender will complete, say on context c1. However, let_value triggers async work. This may run on a thread pool that is completely unpredictable given the written code. When that async scheduler completes, it is that that bulk will now run on.
In principle that is fine - bulk should customise on it or fail to do so - but reading that code it is surprising. It is also a potential source of very serious bugs. The reason we put a lot of effort into SemiFuture at Facebook was to disallow attaching continuations to work without calling .via(executor) first, thereby enforcing a transition. Similarly folly::coro mandates that co_await transition back such that the seemingly equivalent coroutine code:
co_await some_sender();
co_await some_complex_work_sender_that_does_Somethign_on_a_random_scheduler();
co_await bulk(complex stuff);

Always explicitly resumes on the scheduler associated with the coroutine. This is an important safety feature to avoid the async work causing a lot of chained work to execute on that remote agent - an agent that is not visible to the author of the code, with unknown properties.
The simplest solution to this would be to enforce that structured constructs that transition context should resume on a known context:

let would resume on either the context it started on, ie the completion_scheduler of the caller, or, preferably, the scheduler provided by get_scheduler on the passed receiver.
on(s2, on(s, f)) would start() f on s but would transition back to s2 on return.

This would at least cover the default algorithms, making default uses safer. I believe it would also better match the reader's expectation of where code runs. Transitions are still explicit in the sense that if we add a scoped construct we enforce a transition.
In general though, I would like us to find a way to be much more concrete throughout the model about precisely where work is running and when.

This also makes the completion scheduler available for let_ without waiting for the callable to return a value to call get_completion_scheduler on.

Thinking about it, and following the folly model, a way to separate concerns would be to have a known wrapper type that is a semi-scheduler such that a just-like API might be typed as:
template<class T> auto just(T t) -> semi_sender<decltype(just(T))>;

where that wrapper type requires a scheduler-provider to be passed to it and that transitions to the provided scheduler on completion. That would be enforceable at code review time. I don't know if we could cleanly define a variant of let_ that returned a semi_sender in this way.

I am confused, My understanding was that we have execution::on for one direction and execution::transfer for the other direction.
Shouldnt that always be explicitly required

It can be explicitly required. Explicitly requiring it has proved to be a huge source of dangerous runtime deadlocks in practice, though. This is why our coroutine code is very careful to always resume on a known executor - leaf executors should never leak out to their callers. Always requiring insertion of via anywhere:
a) will allow those inner executors to leak out. It's extremely hard to validate the code against that happening.
b) will lead to problems like computationally intensive code running on a network thread, blocking all network traffic from being processed and potentially in extreme cases deadlocking the system.
c) even when applied well, leads to very invasive passing of executors. If a calls b calls c calls d which needs to add a call to a network library, a, b, c and d all need to be modified to add an executor parameter so that d can call via.
Now, we can work around this by enforcing really strict rules, but most likely to do that we'd have to strongly advise against using the standard algorithms and replace them with versions that more strictly scope execution contexts.
Remember, I'm working from the POV of helping thousands of developers build large network services, many of whom are not experts. Knowing to think hard about what context work is going to complete on is a hard message. What we see in practice in folly code where we had this behaviour, before we started to push people to SemiFuture and coroutines, that looks like:
foo().via(e).then(f).via(e).then(f2).via(e).then(f3).via(e).

People just don't know when they should call via so they fall back to doing it everywhere. In coroutine code we don't see that because we give people simple rules about scoping of execution contexts and enforce it in the co_await calls themselves.


Static build

Your software compiled without any flaws - perfect.
I've assumed from https://github.com/probonopd/Filer sources that it needed sqsh-tools. It likes the version, but asks for a static build / LIBSQSH_STATIC_PATH. I couldn't find a static build options in meson_options.txt however. Am I overlooking something?

You can enable static build with the -Ddefault_library=static option. See the docs: Core options

meson setup -Ddefault_library=static --prefix=/usr build
meson setup -Dsqsh-tools:default_library=static --prefix=/usr build ?
I've delete my src folder, recompiled but it's getting out exactly the same lib files (by filesize) and Filer still complains about LIBSQSH_STATIC_PATH. Where is my error?

The upper one should yield a static library under build/libsqsh/libsqsh.a

~/src/sqsh-tools (main ✗) meson setup -Ddefault_library=static --prefix=/usr build
The Meson build system
Version: 1.3.2
Source dir: /home/tox/src/sqsh-tools
Build dir: /home/tox/src/sqsh-tools/build
Build type: native build
Project name: sqsh-tools
Project version: 1.3.0
C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (GCC) 13.2.0")
C linker for the host machine: cc ld.bfd 2.41
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
Run-time dependency libcurl found: YES 8.6.0
Run-time dependency fuse3 found: YES 3.16.2
Dependency fuse skipped: feature fuse-old disabled
Run-time dependency liblz4 found: YES 1.9.4
Run-time dependency liblzma found: YES 5.6.0
Run-time dependency zlib found: YES 1.3.1
Run-time dependency libzstd found: YES 1.5.5

Executing subproject cextras

cextras| Project name: cextras
cextras| Project version: 0.1
cextras| C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (GCC) 13.2.0")
cextras| C linker for the host machine: cc ld.bfd 2.41
cextras| Dependency threads found: YES unknown (cached)
cextras| Build targets in project: 8
cextras| Subproject cextras finished.

Configuring sqsh-cat.1 using configuration
Configuring sqsh-ls.1 using configuration
Configuring sqsh-stat.1 using configuration
Configuring sqsh-unpack.1 using configuration
Configuring sqsh-xattr.1 using configuration
Configuring sqshfs.1 using configuration
Build targets in project: 19

sqsh-tools 1.3.0

  Subprojects
    cextras        : YES

  User defined options
    default_library: static
    prefix         : /usr

Found ninja-1.11.1 at /usr/bin/ninja
~/src/sqsh-tools (main ✗) ninja -C build
ninja: Entering directory `build'
[113/113] Linking target tools/sqshfs
~/src/sqsh-tools (main ✗) ls build/libsqsh/libsqsh.a
build/libsqsh/libsqsh.a
~/src/sqsh-tools (main ✗)


Feature request: dependency parsing

There a plug-in for that: retext-pos.

Sorry, I meant dependency parsing. I'll update the title.

You can use retext-pos for that. The dependency parsing should go in a new plug-in. I have no experience with that though, so I cannot be of much help.

OK, I could imagine it's similar to a regular expression/finite state machine around parts of speech of a sentence rather than characters of a string. I guess I will have to look elsewhere as I have no experience with dependency parsing either, just a basic understanding.


Monitor segfaults

Self explanatory...
ducky@tanager:~$ com.github.stsdc.monitor

 Monitor 0.16.0

Segmentation fault (core dumped)

This issue is also being tracked upstream at https://github.com/stsdc/monitor/issues/352.


Provide a JSON example for the Server Object in the specification

Currently the Server Object Example:
https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#server-object-example
only provides a YAML definition. For consistency purposes a JSON example should be provided as is done in the License Object example:
https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#license-object-example

@ckriley Thank you for the ticket. Would you mind submitting a PR to add those JSON examples?

will do @webron

PR merged, thanks!


fix(sub): Prevent unnecessary subscription update calls on condition changes

Description of the change:
Currently, all subscriptions will get updated during resolution to either add or remove ResolutionFailed condition. This is unnecessary given not all subscriptions have/not have these conditions. All impacted subscriptions should get updated.
Update subscription e2e suite to run individual test on separate namespace to avoid inter-test-case failure.
Motivation for the change:
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive

@dinhxuanvu It looks like this needs to be rebased when you get a chance now that the other testing changes have landed in master.


Tax units: Create tax units table

These should be basically available in the backend, on some of the /tax/ endpoints. Might need to update the backend to include a check user check (as opposed to just an admin check which I suspect is the case now). See similar usage of checkUser (or something like that) on other endpoints, such as /donors/:id/donations f.ex.

What happens when there are no tax units?
Missing tax deductions summation for given year (or all time?)

New text for when there is are no tax units:
"Vi har ikke registrert noen skatteenheter på deg. For å få skattefradrag på donasjoner må du registrere ditt personnummer, eller organisasjonsnummer hvis du donerer fra en skattepliktig bedrift. Du kan registrere flere skatteenheter på samme bruker."


Get back the option to delete your proposal

Context & versions
https://dev-sanchonet.govtool.byron.network/connected/proposal_pillar/proposal_discussion

Verified on Sancho, closing.


rake rswag:specs:swaggerize reports a failure, but I don't know how to debug it

Output from RAILS_ENV=test rake rswag:specs:swaggerize:
$ RAILS_ENV=test rake rswag:specs:swaggerize
/Users/me/.rvm/rubies/ruby-2.5.5/bin/ruby -I/Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-core-3.8.0/lib:/Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-support-3.8.0/lib /Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-core-3.8.0/exe/rspec --pattern spec/requests/\*\*/\*_spec.rb,\ spec/api/\*\*/\*_spec.rb,\ spec/integration/\*\*/\*_spec.rb --format Rswag::Specs::SwaggerFormatter --order defined
Generating Swagger docs ...
Run options: exclude {:type=>#<Proc:./spec/spec_helper.rb:42>}
Swagger doc generated at /Users/me/code/app/swagger/v1/swagger.json
Coverage report generated for RSpec to /Users/me/code/app/coverage. 2771 / 7593 LOC (36.49%) covered.
/Users/me/.rvm/rubies/ruby-2.5.5/bin/ruby -I/Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-core-3.8.0/lib:/Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-support-3.8.0/lib /Users/me/.rvm/gems/ruby-2.5.5/gems/rspec-core-3.8.0/exe/rspec --pattern spec/requests/\*\*/\*_spec.rb,\ spec/api/\*\*/\*_spec.rb,\ spec/integration/\*\*/\*_spec.rb --format Rswag::Specs::SwaggerFormatter --order defined failed

When I run the specs manually:
$ rspec spec/integration --order defined

Running via Spring preloader in process 6773
Run options: exclude {:type=>#<Proc:./spec/spec_helper.rb:42>}
...................................................................................................

Finished in 1 minute 14.73 seconds (files took 1.65 seconds to load)
99 examples, 0 failures

Also the swagger.json file is updated fine, so it doesn't look like anything is failing. I was just wondering why rswag reports the "failed" at the end. I can't see anything else in the console, and no output in log/test.log.
Thanks for your help!

Not sure what changed but I'm no longer getting a failure, so I will close this for now

@ndbroadbent It seems to have something to do with disabling the dry run, I'm having trouble debugging as well. The problem started when I added the config to application.rb
https://github.com/domaindrivendev/rswag#enable-generation-examples-from-responses


feat: validate image name

What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement
/kind feature
What is this pull request for? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #
This PR adds validation for images name to avoid issues like #1690.
Does this pull request has user-facing changes? (e.g. config changes, new/modified commands, new/modified flags)
No
Does this pull request add new dependencies?
No

@pratikjagrut thanks for the PR! LGTM


What's the timeline for the 1.4.1 release?

We're looking forward to those CVE mitigations.

I am visiting a customer this week, will go back next week.
We found a kernel compatibility issue, our RKE cannot work well with that kernel.
Once that issue can be solved, I will ship it ASAP.

Thanks for the feedback!


Bug: Fix testing error for sign up unit test

as a dev, I want to fix the testing console errors as experienced on the reference image for the sign-up page
reference image:

did some digging into where the error is originating from and it seems to be a dependency issue with next and next/image, fetch priority is not found in any of the files and the path listed in the error, I can't seem to find it (there is no /src/client under next in node modules). It's possible that there are unrecognized props being passed down but I'm not sure since it looks like the img components are being used correctly to my knowledge. Currently trying to suppress the error if possible but not sure if that is plausible to do. Any help is appreciated on this issue.

There is a dependency issue between Next.JS and React. After investigating, I found that this was a common issue, and there are mixed reports on whether Next.js 14.2.4 fixed the problem. I downgraded React locally to 18.2, and the error disappeared. Reading through the React release notes, it looks like versions after 18.2 were released to help identify errors or deprecated API's before upgrading to React 19. It is a way to make your code compliant for upgrading, even though that is never easy, as things are guaranteed to break. Since there is no immediate need to upgrade to React 19, we can downgrade to React 18.2 to fix this issue.


Add a Code Of Conduct file.

Add a Code Of Conduct file.

Add a Code Of Conduct file to the Meta/ directory.
Reference it in the root readme file.

See Git/code_of_conduct/

Done. See https://github.com/JamieBort/Learning-Directory/blob/master/Contributor_Covenant_Code_of_Conduct.md


storage: Add migration which adds entity/node real-world data

SUMMARY
Stuff like the name of the organization that runs the entity/node and also their social links and stuff.
ISSUE TYPE

Feature Idea

Closed via https://github.com/oasisprotocol/oasis-indexer/pull/67


if relayhost is defined, then use the satellite profile

Pull Request (PR) description
when relayhost is define in the init.pp, there is nothing call behind it. As it, if you use it like show in the documentation, it don't work.
After reading the code, it look like that the standard usage for relayhost is to use satellite profile that permit to configure postfix to send all email to $relayhost.
This Pull Request (PR) fixes the following issues
Fixes #295

It looks like that branch got somewhat messed-up for some times.  I will close this PR for now, but feel free to submit a cleaned-up version if you want your change to be upstreamed.


Camera comically zoomed out on all stages

Describe your problem here.
All stages are zoomed out for some reason, not sure what's causing it

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Forgot to say, I did edit the build with a mod pack but that was after I found the issue

Forgot to say, I did edit the build with a mod pack but that was after I found the issue

check any zoom codes if there's

I ended up just moving to Psych 7, the json's were normal and I couldn't figure anything out


Unable to determine how to utilize this software.

Hi, I want a jslinter package, I found this in a number of "top ten" sublime packages. I installed your software on sublime. But I can't figure out how to get it to work.
The docs are missing details for a beginner to access. i.e a basic gif or picture of how it works  ?? if using this had 10 steps, steps 2-10 are well documented, but not the first.

It should just work.  What have you tried?  What are you missing?  Have you npm install -g jshint?


Update README.md

By request, project days of the week are now spelled out multiple times for each zone.

@xaq tiny request, but rather than zone B: Weds-Thurs, would zone B: Weds/Thurs make more sense? Or: our pods have an AB or BC type (forget the right terminology), so maybe just use that?

Well, Weds/Thurs suggests to me EITHER Weds OR Thurs, whereas the hyphen correctly indicates that it's PARTLY Weds AND PARTLY Thurs.
Further thoughts?
-x

On Jul 13, 2020, at 8:52 PM, Michael Waskom<EMAIL_ADDRESS>wrote:
@Xaq https://github.com/Xaq tiny request, but rather than zone B: Weds-Thurs, would zone B: Weds/Thurs make more sense? Or: our pods have an AB or BC type (forget the right terminology), so maybe just use that?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/NeuromatchAcademy/course-content/pull/297#issuecomment-657903508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSALDXTID7SKH43D4ACJYTR3OT3XANCNFSM4OZAIWZA.

Well, Weds/Thurs suggests to me EITHER Weds OR Thurs, whereas the hyphen correctly indicates that it's PARTLY Weds AND PARTLY Thurs.

Ah! We agree on semantics, but I thought you meant to communicate either, not both. Ok, got it.


Make theme available as Hugo module

This PR adds a go.mod file to make this Theme available as a Hugo module. This change is fully backwards compatible - the theme can still be used without Hugo modules as before.

Why is the go.mod file in the theme folder needed?
I have read the Hugo Modules and Go Modules documentation, but i don't understand why it is needed here.
Hugo creates for the website (project) the go.mod file. These instructions worked for me without your go.mod file: Hugo Docs - Use a Module for a Theme.
I would be very happy if you explain this to me.

Why is the go.mod file in the theme folder needed?
I have read the Hugo Modules and Go Modules documentation, but i don't understand why it is needed here.
Hugo creates for the website (project) the go.mod file. These instructions worked for me without your go.mod file: Hugo Docs - Use a Module for a Theme.
I would be very happy if you explain this to me.

Ok, I misunderstood how exactly Hugo module imports work. To import a repository (e.g. this theme), it does not need to be a Hugo module. Therefore, this PR could be closed. I'm sorry if that caused extra work.
 This is usually necessary, when that module requires other modules as dependencies (e.g. a theme module could require a module containing a JavaScript framework or icons). If it contains all ressources like Sam, then it does't need to be a module.
There also seems to be a way to use go.mod files / Hugo modules to manage multiple idependent resources in a monorepo, but I didn't look further into that yet.

Ok, I misunderstood how exactly Hugo module imports work. To import a repository (e.g. this theme), it does not need to be a Hugo module. Therefore, this PR could be closed. I'm sorry if that caused extra work.
 This is usually necessary, when that module requires other modules as dependencies (e.g. a theme module could require a module containing a JavaScript framework or icons). If it contains all ressources like Sam, then it does't need to be a module.
There also seems to be a way to use go.mod files / Hugo modules to manage multiple idependent resources in a monorepo, but I didn't look further into that yet.

Exactly this confused me.
Hugo treats this repositorie and other things as a module despite they are not defined as a module by a go.mod file.
Thank you for your explaination.

Exactly this confused me.
Hugo treats this repositorie and other things as a module despite they are not defined as a module by a go.mod file.
Thank you for your explaination.


chore: add model prop to update form

Issue #, if available:
Description of changes:

adds optional currentModel prop to update Form component
makes id prop optional

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #601 (51e7527) into tagged-release/forms-and-views (abe3574) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                       Coverage Diff                       @@
##           tagged-release/forms-and-views     #601   +/-   ##
===============================================================
  Coverage                           89.97%   89.97%
===============================================================
  Files                                  89       89
  Lines                                3350     3352    +2
  Branches                              916      917    +1
===============================================================
+ Hits                                 3014     3016    +2
  Misses                                313      313
  Partials                               23       23

Impacted Files
Coverage Δ

...codegen-ui-react/lib/forms/form-renderer-helper.ts
91.76% <100.00%> (ø)

.../codegen-ui-react/lib/forms/react-form-renderer.ts
76.41% <100.00%> (+0.45%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abe3574...51e7527. Read the comment docs.

Fixed merge conflicts in last push


Adding some small tcell repos I threw together

These are just some tools I threw together for personal use which leverage tcell.  I thought you'd like to have them included, but they are very new so no worries if they are not mature enough to be included on this list.

These look nice, and while simple sometimes that's the best demo for someone looking for something to get started.


Master restore from mysql backup fails

Environmental Info:
K3s Version:
v1.20.0+k3s2 (2ea6b163)
Node(s) CPU architecture, OS, and Version:
Linux devops-test42.mycompany.de 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
1 master, 1 node, 1 mysql
Describe the bug:
reinstallation of the k3s master node with a mysql-etcd restored from backup fails.
Steps To Reproduce:

Use mysqldump to create a backup of your running cluster configuration.
Trash cluster
recreate mysql server and restore backup
reinstall k3s on master node, connecting to the mysql db

Expected behavior:
running k3s master (without nodes after the steps stated above) and restored state
Actual behavior:
k3s master process is running, but not useable (for instance, no flannel interface provided).
Additional context / logs:
A lot of strange stuff int the log, but this is repeating:
Jan 07 21:05:27 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:27.043384270+01:00" level=info msg="Waiting for control-plane node agent startup"
Jan 07 21:05:27 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:27.766522903+01:00" level=info msg="Cluster-Http-Server 2021/01/07 21:05:27 http: TLS handshake error from <IP_ADDRESS>:56726: remote error: tls: bad certificate"
Jan 07 21:05:28 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:28.044026285+01:00" level=info msg="Waiting for control-plane node agent startup"
Jan 07 21:05:28 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:28.116126525+01:00" level=error msg="unable to verify hash for node 'devops-test42.mycompany.de': hash does not match"
Jan 07 21:05:28 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:28.117458428+01:00" level=error msg="Failed to retrieve agent config: Node password rejected, duplicate hostname or contents of '/etc/rancher/node/password' may not
Jan 07 21:05:29 devops-test42.mycompany.de k3s[1731]: time="2021-01-07T21:05:29.044231225+01:00" level=info msg="Waiting for control-plane node agent startup"

Did you retain any of the files from the old cluster, or is this on a clean host as well?

Did you retain any of the files from the old cluster, or is this on a clean host as well?

The only artifact used from the old cluster is the mysqldump file. no other retained files.

The only artifact used from the old cluster is the mysqldump file. no other retained files.

Any idea of what's wrong here?
What kind of hash is of concern here?
Is the pasted part of the logfile relevant for my issue at all or should i have a look for different output?

Any idea of what's wrong here?
What kind of hash is of concern here?
Is the pasted part of the logfile relevant for my issue at all or should i have a look for different output?

@brandond any clue?

@brandond any clue?

Generally I would expect this to work. Can you provide complete logs from startup onwards, as well as any additional steps you performed? Are you using the exact same arguments to k3s server when starting it up on the new host?

Generally I would expect this to work. Can you provide complete logs from startup onwards, as well as any additional steps you performed? Are you using the exact same arguments to k3s server when starting it up on the new host?


Moved register logic into own class

It was a try to refactor some code and move the registry functionality into a class, which can be inherited by other classes, which should manage themselves.
Not sure how good this solution is, therefore I want to hear your opinion(s)!


Allows focusing tests with prefix

Fixes #699

All specs with prefix already delegate to createTestNAme as per https://github.com/Kotlintest/Kotlintest/commit/31d524513970947442385e849e8fca304dea1681
This brings focus into it.

Merge when you want.


Documentation about Kinect v2 internals?

Hey everyone,
first of all, thanks for your work! I'm one of the maintainers of the libfreenect2 open-source library for the Kinect v2, and I was wondering: since Microsoft policy seems to be shifting towards a more open stance, would it be possible to release protocol documentation etc. for the Kinect v2 at some point? Would help us a lot to clear up some leftover issues :-)
Best, Florian

Any comments?

Thank you for the request.  At this time, we do not have anything to share, but we may at some point in the future. :) Sorry to not be able to provide a more definitive answer at this time.

Thanks! A bit non-committal, but I'll keep hoping ;-)

Hope springs eternal. :)  If this changes, I'll be sure to let you know.


Feature/4254 code block output parser

Feature: #4254
Note: still need to write tests

Added tests and ready to merge

Hey @JacobFV ! This PR no longer lines up with the current directory structure of the library (would need to be in /libs/langchain/langchain instead of /langchain). Would you be interested in updating to the new format, or would it be better to close this and someone can work on a new PR off the current state of the library (using this as a reference implementation)?

Let's actually discuss all of these here just for efficiency ^ !


Laravel config caching issue with  \Stancl\Tenancy\Features\TenantConfig

Describe the bug
Apologies if this is a misunderstanding - it seems like artisan config:cache breaks the  \Stancl\Tenancy\Features\TenantConfig config mapping feature, because the cache doesn't actually set the static $storageToConfigMap array within TenantConfig.
Steps to reproduce
Config config mapping for tenants
Call artisan config:cache
Attempt to use mapped config values via config()
-> null values
Expected behavior
Config values as loaded from the tenant database entry
Your setup

Laravel version: [e.g. ^8.0]
stancl/tenancy version: [e.g. ^3.2]

I don't think it should break anything, can you give example code that I can paste into an empty project to reproduce this?
Config caching only caches dynamic calls inside config files afaik. Runtime changes to config should still work

Sure, I'll pull together a sample. The issue I was seeing was because of this structure:
\Stancl\Tenancy\Features\TenantConfig::$storageToConfigMap = [
        'sample_config_value' => 'app.sample_config_value',
],

When config:cache is called, it tries to set that value statically, which doesn't have any lasting impact. Then at runtime, when Tenancy goes to loop through that array in the TenantConfig.php class, it's empty because the config hasn't been loaded.

My bad - I'd misread the docs. I was setting the storageToConfigMap from inside the tenancy.php config file. Moving it to the TenancyServiceProvider solved it.