text:
reload grid and clear Filter

 var deferred = $('.mvc-grid').mvcgrid({
                requestType: 'post', // defaults to get
                reload: true,
                data: {
                    ClearParameter: ClearFilter,
                    SBU: $(".ddlSBU").val(),
                    SegmentCode: $(".ddlSegment").val()
                },
                reloadEnded: function (grid) {
                    //$("#mvc-grid-AjaxSearch").val("param=value");
                    //ClearFilter = false;
                }
            });

What's your question? What did you try and what doesn't work?

i want clear filter and sort after reload grid

Clear it from the UI or server side?
If you are using your own filter data to query the models it should already be reset.
You can also disable them through grid configuration .Sortable(false) and .Filterable(false).

Did you managed to clear it?

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
Fix Integration tests for Problem Index functionality

Fix integration tests for Problem Index page.

@evulins

where now we should component inputWithTags?
What do you mean? Where should we test it? :)

What I meant is that I wrote two tests in the previous test file for the pseudo inputWithTags component.  And because of our mechanism structure they didn't work properly. Right now they are missing :D And I wonder if it's on purpose and if yes should we test it somewhere else?

@evulins oh, sure, I just forgot, I will paste them here, as because of the mechanics the also belong here. :)

👌 Nice!

source: gharchive/pull-request

authors: bazelajoanna evulins franiakat

license: MIT

license_source: github-api


text:
error when load config file in java

I get that error when trying to load the config file
`SEVERE: Servlet.service() for servlet [tasks] in context with path [/Crawler_NORCQNEX] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: com/norconex/collector/core/CollectorConfigLoader
at servlets.Tasks.doPost(Tasks.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
`
and that is the code of it
HttpCollectorConfig config = (HttpCollectorConfig) 									new CollectorConfigLoader(HttpCollectorConfig.class).loadCollectorConfig(configFile); 							HttpCollector collector = new HttpCollector(config);
I make sure that jar of this class is imported!!

Do you have that issue when you run it standalone?
It seems your webapp could not find that class so it looks like a classpath/classloading issue with your webapp.
As a side note, you may want to know the HTTP Collector is meant to be run in isolation/standalone (live and die with the JVM).  The crawling/parsing of some files can be quite resource intensive sometimes and running it in a webapp may compromize the webapp stability and will likely not work as you expect.  If you really want to run it in a web app, I recommend you launch the Collector as an external process.  You are of course welcome to experiment. :-)

Thank you for your reply, but what do you mean is that I can't use the library inside my code ?

Of course not!  You can use the library with your code.  I was simply sharing what type of usage works best to save you trouble.  The problem you have (NoClassDefFoundError) is likely not one of the HTTP Collector, but rather one of the library not being found by your Java app.  You'll have to troubleshoot why your webapp (Tomcat) does not load some Jars/classes (assumming you've included all dependencies in your web app).

It works now! I added these jars to deployment classpath.. thanks a lot

authors: doaa-khaled essiembre

repo: Norconex/collector-http


text:
window.document.hasFocus instead of window.hasFocus?

It could potentially be a setting. But I think that it's better to show notification, if possible. Because user may be at a different tab in the same window?..

Seems sane.

authors: Wikiwide marcusramberg

repo: Nordaaker/convos


text:
Error Decoding Response Body

Not entirely sure what this is or what the issue is caused by, but Moruke's skin causes skindl to fail:

Test case: https://gamebanana.com/mods/481891

Can only reproduce on the first file (moruke_omura_red_.zip), which returns a broken response from the GameBanana API:

The other download links (which contain ID 481891 instead of 481890) work correctly, and properly contain the first file:

This is a GameBanana bug, nothing I can do to fix it. Select one of the other 1-Click Install buttons to download the mod.

authors: MagicalWitchAshley NotNite

repo: NotNite/skindl


text:
dailyjournal idea question improvements

i had an idea to improve the dailyreview questions.
also I talked to @jgclark  a few days ago about the ideas.
here is now my PR with little improvements of the review questions.

now you can add subheading, which aren't rendered as commandbar questions but then with ###  in the final note
additionally you can create bulletpoints
just read my README adjustments - I hope you understand what I did :D

i pushed the PR rework commit.
you can hardly see this here in the GitHub conversation

This sounds interesting, but will be a little hard for users to follow. Maybe you can make a short video of how this piece works and put that in the README?
On Thu, Nov 25, 2021 at 1:23 PM, Michael Wellner < @.*** > wrote:

i pushed the PR rework commit.
you can hardly see this here in the GitHub conversation
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (
https://github.com/NotePlan/plugins/pull/122#issuecomment-979474432 ) , or
unsubscribe (
https://github.com/notifications/unsubscribe-auth/ACEI6VEUR4OH3GVPZQ44HXLUN2SNXANCNFSM5IZIVZBQ
).

This sounds interesting, but will be a little hard for users to follow. Maybe you can make a short video of how this piece works and put that in the README?
…

hm ok how can I create this video? never done that before :D

I've tidied up the README a little more, removed the bold around the mood answer, and did some other changes ready for changes to the framework that you're probably not aware of yet. I will now publish this update.
You can still add bold around the mood output in your personal settings, but I don't want to force it on everyone else.

Look at Loom. It’s free.
Here’s a @jgclark video. But yours could be super short and focus on how u
use these new additions.
https://youtu.be/IWjr0dy3JhM https://youtu.be/IWjr0dy3JhM?t=115
On Thu, Nov 25 2021 at 1:52 PM, Michael Wellner @.***>
wrote:

This sounds interesting, but will be a little hard for users to follow.
Maybe you can make a short video of how this piece works and put that in
the README?
… <#>
hm ok how can I create this video? never done that before :D
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NotePlan/plugins/pull/122#issuecomment-979483399, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEI6VBSFWYZTEV7NTGXVPDUN2VYDANCNFSM5IZIVZBQ
.

authors: dwertheimer jgclark m1well

repo: NotePlan/plugins


text:
Unlinked note finder

Searches through notes and find unlinked references to other note plan notes.
TODO

Add an action log note.

@aaronpoweruser This is great stuff. Thanks Aaron!
Question...what would you think about doing this as a PR against the np.Tidy plugin which has a command:

/List stubs: creates a note that lists all your notes that have wikilinks that lead nowhere.

Or is there a reason why you think this needs to be a free-standing plugin?

No strong preference as to where this lives. I was unsure if it should be in tidy, note helpers or its own plugin.
I'm going to keep iterating on the code here, once I'm happy with it I'll move it to wherever makes the most sense.

@aaronpoweruser I'm not yet sure what "unlinked references" are. But, yes, I agree that it sounds like a good candidate for NoteHelpers or Tidy.  The former is more for things run on a particular note; the latter does things that run over all notes, or all recent notes.

Note helpers it is I'm thinking about removing the large global search after switching to regex parsing the performance unacceptable it takes tens of minutes to scan the entire note database. So the plug-in will only work on note at a time.
Once I finish up the code, I'll clean the documentation. The plug-in essentially scans are a given note and finds keywords that should link to other notes that are unlinked. It then creates a [[]] link to the found note.
My use cases is using voice dictation and having to go back in manually create a [[]] link to another note. this just automated the process.
I'll add on save trigger as well, so it should be fully automated

I'm happy with this now. Feel free to take a look at it.

I still need to add good public documentation and move to note helpers give me a few days

@jgclark Can you review please so I can merge and release.

@aaronpoweruser I'm confused. I've had a notification that you've done something new with this PR, but I can't see anything that's changed. Please advise.

Ive just been reponding to comments. new PS incoming.

Been using the new regex for the past week, with voice dictation and a on save tigger. On my notes my runtime has been sub  15ms consistently (Np writing the note to disk takes ~5ms). Its fast enough where I rarely tag notes by hand now.
I still need to record a new demo gif, but i'm happy with the code.
Old regex logic:

New regex:

Was a worthwhile effort, i'm finally comfortable with regexs.

I'm releasing 0.19.2 with some bug fixes. We can release 0.20.0 once you have the documentation updates for this.

authors: aaronpoweruser dwertheimer jgclark


text:
In build.ps1 scripts that fetch from ServerCommon, set SSL protocols

A lot of machines default to SSL 3.0 and TLS 1.0, which is not compatible with GitHub.
System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
   at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
   at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Workaround is to run this on your machine:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

repo: NuGet/NuGetGallery


text:
Working with new datasets

Does it support working with new Datasets?
if I am trying to work with
real_dataset = load_dataset("bitmind/AFHQ")
fake_dataset = load_dataset("bitmind/AFHQ___RealVisXL_V4.0")
How shall I setup the folder structure, a bit confused here

Guidance for using custom datasets has been added to the README. You can find it in section "Custom Dataset" under "Download Dataset".

authors: JaynouOliver NuayHL

repo: NuayHL/TimeStepGenerating


text:
🛑 Linkwarden is down

In 99c327d, Linkwarden (https://links.grobecker.me) was down:

HTTP code: 502
Response time: 3522 ms

Resolved: Linkwarden is back up in eb59213 after 5 minutes.


text:
FATAL: Error, the Windows SDK must be installed in Visual Studio.

Hey, so ive seen this issue like twice here, unfortunately reading through neither of them fixed it for me.
When I run py -m nuitka --version I get the following:
1.5.4
Commercial: None
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Users\Admin\AppData\Local\Programs\Python\Python310\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
Version C compiler: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe (cl 14.0).

I installed basically all windows SDKS inside Visual Studio, its still telling me that theyre missing.
I installed nuitka via pip, python is standart cpython and installed via the official website.
I do use a venv to execute the command
I use a fair amount of packages in my project, but I dont think thta would be the problem as it compiles alright with the standart compiler, but I would like to use clang
I execute py -m nuitka main.py --onefile --plugin-enable=pyside6 --nofollow-import-to=tkinter --windows-uac-admin --clang
As you can see, ive tried basically every install:

Update: I tried to update nuitka to the most recent version, exact same issue.

So your version output shows you are using the community version, and your screenshot is for build tools.

@kayhayen could you clarify? And I apologize for sending the build tools, the normal tab basically looks the same though, all SDKs installed

So your version output shows you are using the community version.

Indeed I am, but the projects description states:

Visual Studio 2022 or higher on Windows, older versions will work but only supported for commercial users.
(the community editions work just fine)

So why is the community version not going to work?
Thank you very much for your time!

It is working fine. I notice a (2) in your screenshot title. Does that mean you have two of them installed? You might have previously bee using stuff that auto-installs things. I once tried to make Nuitka auto-install MSVC to its private parts with the correct components, but failed to do unfortunately. I think I saw these numbers in that case. You may want to configure the correct one.

Oh yea, that (2) is weird! I'll see what I can find about that.

Yes, you can waste my time.

authors: kayhayen kennyhml

repo: Nuitka/Nuitka


text:
Nuitka Module Importing External Numba .so file

Nuitka Version 2.4.5, Python version 3.12.0
I am stuck on a question of having a Nuitka .so module import code outside of the module package that is compiled, specifically I want the compiled code inside a nuitka-ized module to reference code in a numba AOT-ized module.
Thanks for the help in advance. I am trying to work around using both numba and nuitka for my project. See the project structure below:
└── 📁nuitka_testing

    └── run_func.py

    └── 📁.venv

    └── 📁src

        └── 📁nuitka_funcs
            └── __init__.py
            └── test_nuitka_imports.py

        └── numba_modules.cpython-312-x86_64-linux-gnu.so
        └── __init__.py

I have used numba's AOT capabilities to create numba_modules.cpython-312-x86_64-linux-gnu.so which houses all my numba code, which I then import in nuitka_funcs/test_nuitka_imports.py, the content of which is below:
## test_nuitka_imports.py ##

from ..numba_modules import identity

def run(x):
    y = identity(x)
    return y

I can run my main function run_func.py (simply from src import run; run(5) ) when the nuitka_funcs folder is not compiled, but when i try to compile the nuitka_funcs folder into a .so using  python -m nuitka --module nuitka_funcs --include-package=nuitka_funcs I get an assertion error AssertionError: <ModuleName ''>, crash report is attached:
nuitka-crash-report.txt
I gather it is because the code being compiled in the nuitka_funcs folder is importing code outside itself? If anyone could please help out on the right direction it'd be most appreciated. I just want to be able to reference outside, non-compiled code from inside a nuitka-ized .so module file, or any work-around for this use case. I have looked through other issues and they are either too vague to help me or don't seem to help me.
Thank you!

The example looks good to me, I will be trying to add Numba JIT support in the coming releases, so this will be useful as a starting point at least, before we see what larger packages also do.

authors: kayhayen pveikos


text:
User Manual: Escape backslashes in Windows paths

What does this PR do?
This PR makes a minor correction to the User Manual - the back-slashes in the Windows file paths in the table on use-case 4 were not escaped, so were not visible when the page was rendered.
Why was it initiated? Any relevant Issues?
It was initiated because I was reading the User Manual and noticed missing back-slashes in the Windows file paths in the table on use-case 4.
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[x] All tests still pass. Check the Developer Manual about Running the Tests.
There are GitHub Actions tests that cover the most important
things however, and you are welcome to rely on those, but they might not
cover enough.
[x] Ideally new features or fixed regressions ought to be covered via new tests.
[x] Ideally new or changed features have documentation updates.

Thanks for fixing this, very good.

authors: joouha kayhayen


text:
Feature cli tokens

Improved token admin script in auth and fixed bug in useradd script in users.  Also added some readme info about using oadadeploy as an option for installation.

It isn’t “hanging,” I’m guessing you didn’t pass any args and are probably running it with docker instead of docker-compose and probably forgot to pass “-it” to docker.  The script prompts you for anything that wasn’t passed: I.e. if you gave no username, it prompts you for one.   If you use docker and forget the “-it”, then you never see the prompt and can’t type the answer so it looks like it is hanging when it’s really just waiting for a username on stdin.  Running it with docker-compose doesn’t require that you explicitly allocate a tty, so no extra flag necessary.
I want it to operate that way because you don’t have to memorize the flags in order to just add a user.  I kept testing it and couldn’t figure out why it wouldn’t prompt me for any of the missing items until I saw that condition.
Aaron
Sent from my iPhone

On Mar 14, 2021, at 8:30 PM, Alex Layton @.***> wrote:

@awlayton commented on this pull request.
In oada/services/users/useradd.js:

@@ -28,7 +26,7 @@ async function findUserByUsername(username) {
// The main event:
async function run() {
try {

if (argv.h || argv.help || Object.keys(argv).length <= 1) {
Why did you remove this condition? It was to fix it hanging if called with no arguments. With this change it hangs for me again.

In oada/services/permissions-handler/server.js:

@@ -88,6 +96,10 @@ responder.on('request', function handleReq(req) {
responder.scopes = { read: true, write: true };
} else {
// Check for read permission

if (!req.scope || !req.scope.some) {
Why not just use Array.isArray?

In oada/services/auth/token.js:

@@ -0,0 +1,139 @@
+const argv = require('minimist')(process.argv.slice(2));
+const cloneDeep = require('clone-deep');
+const chalk = require('chalk');
+const uuid = require('uuid');

+const { authorizations, users } = @.***/lib-arangodb');
+
+if (!process.env.DEBUG) {

process.env.DEBUG = 'token:info,token:error';
A CLI tool should just be directly printing anything for user interaction rather than forcing debug to display it,

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yes I intentionally passed no arguments. I agree you should not have to remember the flags, but for me nothing happened when I ran it with no args so I made it print the help and exit.
What do you mean pass -it? Those are not flags for docker-compose run which is how I was running it.
To be clear, when I ran docker-compose run users add it never exited or printed anything. So I added that check.

You should use oadadeploy instead so you don’t have to remember docker details :).  “oadadeploy admin useradd "
If you don’t want to use the oadadeploy script, then:
If users is running, simplest is to use exec: docker-compose exec users yarn run add
Otherwise, if you try “run” but you use it normally instead of by replacing the entrypoint w/ yarn, it will start a second users process listening and responding to Kafka.
Aaron

On Mar 15, 2021, at 9:56 PM, Alex Layton @.***> wrote:
Merged #83 https://github.com/OADA/oada-srvc-docker/pull/83 into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/OADA/oada-srvc-docker/pull/83#event-4461892320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2KEUH2A5MAEHSHI3GYYS3TD23ENANCNFSM4ZEQTZHA.

No, docker-compose run users add should work. If it does not work the wait it is, it needs to be changed. With that condition in it works for me when I supply flags.
Using run does not start another instance of the users service unless you are doing so in the useradd.js file.

Wouldn’t your entrypoint have to be yarn in order for that to work?
Aaron

On Mar 16, 2021, at 12:46 AM, Alex Layton @.***> wrote:
No, docker-compose run users add should work. If it does not work the wait it is, it needs to be changed. With that condition in it works for me when I supply flags.
Using run does not start another instance of the users service unless you are doing so in the useradd.js file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/OADA/oada-srvc-docker/pull/83#issuecomment-799944143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2KEUFNDC6EJVBVHF2UYE3TD3PD5ANCNFSM4ZEQTZHA.

It is already
https://github.com/OADA/oada-srvc-docker/blob/c4688206138f841bdf081c827e3cbebeb7b88ba8/oada/utils/entrypoint.sh#L3

authors: abalmos aultac awlayton

repo: OADA/oada-srvc-docker


text:
2022-02-08-Websockets

As a follow up to #55, I'm adding a proposal for Websocket support. If this is not the right channel to do so, please let me know what's the official way of opening a proposal, as I don't see it in any of the docs, and I don't have the proposals folder when I forked the repo.
Find the filled proposal template below:

WebSockets
Metadata

Tag
Value

Proposal
2022-02-08-Websockets

Authors
Balazs Edes

Review Manager
TBD

Status
Proposal

Implementations
-

Issues
#55

Previous Revisions
-

Change Log

Date
Responsible Party
Description

2022-02-08
Balazs Edes
First draft created

Introduction
This proposal aims to make WebSocket api descriptions part of OpenAPI.
Motivation
Currently the OpenAPI standard is limited to describing what the http standard allows. More and more applications make use of WebSockets, which is a simple and standard way to build event driven systems, and runs in the most important platform end users see: the browser. Since there is demand for it, I propose to add the ability to describe WebSockets in OpenAPI schemas, as HTTP/WebSocket apis often complement each other.
There are other initiatives to describe event driven messaging (eg.: AsyncAPI), but in terms of maturity I haven't seen anything close to OpenAPI. AsyncAPI is also trying to acomplish a wide array of other goals which delay it's maturity further. Looking at the traction that #55 gained over the years, I think it would be a reasonable goal to add the ability to describe WebSockets in OpenAPI.
Proposed solution
This proposal aims to add a new WebSocket Payload Object type to the spec, and 2 additional fields to the Operation Object, publish and subscribe (better name suggestions are wellcome), that would allow us describing how to connect to a ws server, and what messages can we expect to receive or send.
Example
openapi: '3.3.0'
paths:
  /sample-socket:
    get:
      operationId: 'sampleSocket'
      publish:
        description: 'Short description about the messages you can push towards the server'
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/CreateUserSchema'
                - $ref: '#/components/schemas/DeleteUserSchema'
                - $ref: '#/components/schemas/LikePostSchema'
      subscribe:
        description: 'Short description about the messages you can receive from the server'
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/UserCreatedSchema'
                - $ref: '#/components/schemas/UserDeletedSchema'
                - $ref: '#/components/schemas/PostLikedSchema'

Detailed design
The WebSocket spec is currently very simple. From our point of view it allows:

Connecting to an endpoint using a URL
Sending messages in either binary or text format
Receiving messages in either binary or text format

This proposal aims to allow OpenAPI users to describe exactly the above mentioned points:

What URL can I connect to, to talk to this WebSocket?
What's the format and shape of data I'm allowed to send
What's the format and shape of data I can expect to receive

Important: This OpenAPI spec proposal doesn't concern itself with any frameworks, or any higher level abstractions people usually build on top of event driven messaging protocols, like topics/subjects/channels, implied message serialization, etc. It simply describes the above mentioned 3 points, and any further abstractions can be built on top of this, but not part of the core schema.
Extension of the current OpenAPI spec

Add a WebSocket Payload Object type (very similar to Request Body Object, except the required field - which makes no sense here). It has the following fields:

description: string - A brief description of the payload.
content: Map[string, Media Type Object] The content of the payload.

Add an optional field in the Components Object type, so payloads can be reused:

webSocketPayloads: Map[string, WebSocket Payload Object] - Reuseable payloads

Add 2 optional fields on the Operation Object type:

publish: Reference Object | WebSocket Payload Object - describes the message(s) the client can publish/push to the server.
subscribe: Reference Object | WebSocket Payload Object - describes the message(s) the client can receive from the server.

Simple chat example
openapi: '3.3.0'
components:
  schemas:
    ChatMessage:
      type: 'object'
      required:
        - 'from'
        - 'to'
        - 'message'
      properties:
        from:
          type: 'string'
        to:
          type: 'string'
        message:
          type: 'string'
paths:
  /chat-using-socket:
    get:
      operationId: 'chatSocket'
      publish:
        description: 'You can publish chat messages to this server'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatMessage'
      subscribe:
        description: 'You can expect chat messages from the server'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserCreatedSchema'

Simple chat, but reusing payloads
openapi: '3.3.0'
components:
  schemas:
    ChatMessage:
      type: 'object'
      required:
        - 'from'
        - 'to'
        - 'message'
      properties:
        from:
          type: 'string'
        to:
          type: 'string'
        message:
          type: 'string'
  webSocketPayloads:
    ChatMessagePayload:
      description: 'A chat message payload'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ChatMessage'
paths:
  /chat-using-socket:
    get:
      operationId: 'chatSocket'
      publish:
        $ref: '#/components/webSocketPayloads/ChatMessagePayload'
      subscribe:
        $ref: '#/components/webSocketPayloads/ChatMessagePayload'

Multiple message types
Note since channels/topics/subjects cannot be expressed we can use a union type with a discriminator to mimic this.
openapi: '3.3.0'
components:
  schemas:
    CreateUserSchema: '...'
    DeleteUserSchema: '...'
    LikePostSchema: '...'
    PublishMessageSchema:
      discriminator:
        propertyName: 'action'
        mapping:
          CreateUser: '#/components/schemas/CreateUserSchema'
          CreateUser: '#/components/schemas/CreateUserSchema'
          LikePost: '#/components/schemas/LikePostSchema'
      oneOf:
        - $ref: '#/components/schemas/CreateUserSchema'
        - $ref: '#/components/schemas/DeleteUserSchema'
        - $ref: '#/components/schemas/LikePostSchema'
    UserCreatedSchema: '...'
    UserDeletedSchema: '...'
    PostLikedSchema: '...'
    SubscribeMessageSchema:
      discriminator:
        propertyName: 'type'
        mapping:
          UserCreated: '#/components/schemas/UserCreatedSchema'
          UserDeleted: '#/components/schemas/UserDeletedSchema'
          PostLiked: '#/components/schemas/PostLikedSchema'
      oneOf:
        - $ref: '#/components/schemas/UserCreatedSchema'
        - $ref: '#/components/schemas/UserDeletedSchema'
        - $ref: '#/components/schemas/PostLikedSchema'
paths:
  /sample-socket:
    get:
      operationId: 'sampleSocket'
      publish:
        description: 'Short description about the messages you can push towards the server'
        content:
          application/json:
            schema:
              - $ref: '#/components/schemas/PublishMessageSchema'
      subscribe:
        description: 'Short description about the messages you can receive from the server'
        content:
          application/json:
            schema:
              - $ref: '#/components/schemas/SubscribeMessageSchema'

Backwards compatibility
As this change is additive (nothing is removed or modified in a non-backward compatible way) I don't see any backward compatibilty issues.
Alternatives considered
There can be many alternatives, my motivation was to add support for WebSocket api descriptions, while

Adding as few new concepts as possible
Allowing reuse the same way as with all other parts of the schema, through $refs
Just describing what the standard allows (no frameworks)
Not causing any breaking changes or backward compatibility issues
I'm happy to take onboard any suggestions, alternatives, modifications to this! I'm sure there are many things I haven't thought of.

repo: OAI/OpenAPI-Specification


text:
Clarify thinking behind .example object and .examples array ?

Please could someone provide some background on the decision to have both .example and .examples[] properties on the requestBody, responses and schemas?
It seems to me this might unnecessarily complicate documentation tooling, while the alternative is simply using a one-element array if only one example is provided. Extending an existing definition with a single example would involve more editing when adding a second one.
An operation object does not have both a .tag and .tags[] properties.
I also found the following wording confusing:

SHOULD be in the correct format as specified [in the] parameter encoding

I'm probably missing something.

From my perspective there wasn't a strong motivation for keeping the "example" property. It was primarily for simplicity and backward compatibility.  We have added a fair amount of complexity to some objects, there was some reluctance to force example arrays on everyone.
We have made examples and example mutually exclusive, so for tooling it shouldn't be much more than an extra if statement to handle both properties.
The examples/example have been added to the content object, so when tooling people implement it, it will automatically work for requestBody, responses, callbacks, links, complex parameters.
The example has been left in for schemas. Maybe that isn't needed any more now that example objects are now reusable components.
It is possible there could be some streamlining, but if we were to remove example I think it would be more for reducing conceptual complexity, rather than making tooling easier.

@MikeRalphson does that answer your question?  If so please close...

@fehguy @darrelmiller Thanks for the response. I would however question the need for "backwards compatibility" when there has explicitly been a breaking change in the version of the specification.
There seems to be no other examples of such mental backwards compatibility around servers, requestBodies etc.
I'm not wholly convinced by the simplicity argument either I'm afraid, there is one spec to create, but many tools, each of which would have to take this wrinkle into account.
If it looks like a wart, and sounds like a wart...
If it is unlikely to change, or is still up for consideration outside the public sphere of GitHub issues, then yes, please close.

Well this was actually requested and should hopefully be captured in the issues.  Certainly nobody was creating work just for the sake of creating work.

I'll have a hunt through the issues.

Certainly nobody was creating work just for the sake of creating work.

I hope I didn't come off as remotely suggesting that.

No problem at all.  I believe the examples arguments were around the requestBody changes

Looks like Issue 800 is the most relevant. In which @DavidBiesack expressed a preference for the oneOf example / examples. I could find no other requests for this specific feature in the issues.

I'll just chime in that my preference is strictly for ease of use of the API author. I think many cases one example is sufficient and using example: is very easy whereas using examples: and coding an array is just more tedious. I think tooling can pretty easily account for this and do the transformation for us; that's what computers are good at. Again, this is just my preference - -I tend to side on ease of use for people using OAS.

Understood, but I still contend that it doesn't smell like any other part of the OpenAPI 3 spec. ;)

It is a personal preference, I'm not strongly opposed to more uniform implementation (i.e. just examples: [ ]). (I do not think that preserving singular example: syntax just because it was singular in 2.0 is important here.)

I agree with @MikeRalphson. To me this seems overly verbose when a single item examples array would suffice. If the argument for having both is for 'backwards compatibility' then I think this needs to be revisited since 3.0 is strictly not compatible with 2.0. I would argue the cognitive load of understanding the difference outweighs any tediousness of coding an array (literally adding a - in yaml, json slightly more work sure).

authors: DavidBiesack MikeRalphson darrelmiller fehguy willdady


text:
Hapi 131 bugfixes

Lots of debugging here, had to:

update the reqs to use the latest hapi-schema
run the pg_dump command from the docker container
add the HDX API key

I guess the hapi-pipelines Dockerfile and publish workflow are redundant?

@mcarans I think publish will not be needed as I don't think we'd need to publish to PyPI. The dockerfile could be kept until we see exactly what we need for V2. What do you think?

repo: OCHA-DAP/hapi-pipelines


text:
dhcp: adds test about leasetime keyword

Replaces #873
I want to build on it for other DHCP keywords ;-)

cf https://redmine.openinfosecfoundation.org/issues/5506

Closing in favor of #919 now that recent Suricata PR has been merged

repo: OISF/suricata-verify


text:
Still active ?

The latest changes are three years old and recently lots of issues were closed without any explanation.
Is this project still active? If not: can this please be stated at the top of the README ?

The project is not active anymore, as Open Knowledge Austria does not exist anymore for more than 2 years. Started a new project from scratch 2 weeks ago, you can find here: https://github.com/skasberger/owat_api

You could add that information here:
https://github.com/OKFNat/offenewahlen_api

authors: akuckartz skasberger


text:
Peer Review - SRS: Could add context diagram

Artifact Under Review
SRS Document
Team Number for Team Doing the Review
Team 10
Description of Issue
Within section 6.2. The Context of the Work, you could potentially add a context diagram to outline how external entities interact with an internal software system. (I'm not sure if it's required for your case but it was required for the scientific computing template and I saw a previous group example add it as part of their revision 1, section 4.1.1.)  It could be helpful to give the reader a more abstract understanding of the system before diving into the use case diagram.

Team 10 TA: @Necried


text:
Nextcloud 12's new editable public links should open docs with OnlyOffice

Nextcloud 12 now allows public link shares to be writable, so that a user can share a document with a non-Nextcloud user and have them jump into the editor. This functionality is advertised for use with Collabora/CODE, but I imagine OnlyOffice could use it as well.

Hello @steampoweredlawngnome
The issue has already been discussed earlier https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues/20

authors: JohnPerkin steampoweredlawngnome

repo: ONLYOFFICE/onlyoffice-owncloud


text:
1221 Search for case and show results

Motivation and Context

The first feature needed for ops-ui is to be able to search for cases via a postcode. This PR adds that functionality as well as IAP Audit logging and adding the CDN to ops-ui.
What has changed

Search for cases via postcode
IAP audit logging
Added flask/jinja templates to show postcode results.
Added Flask blueprints for routing
Now runs with Gunicorn

How to test?

Run with the other branches on the ticket. When you have cases in your database, you should be able to run the ops-ui and find cases with a postcode.
Try running this in your GCP environment and see if you can connect to it.
Anyone testing I can add to the IAP so you could try and connect to the domain set up in census-rm-ryangrundy

Links

Trello

Missing columns, specified in the acceptance criteria (although I personally think it's far too many):

org name
case type
estab type
UPRN
region

@NickGrantONS Org name is part of the address summary that gets put into the table. Estab type and case type are included in the page. UPRN and Region aren't in the prototype that we were basing this on. Could be a question for Dan if they need to be included

repo: ONSdigital/census-rm-ops-ui


text:
Remove Back Link from Feedback thank you example

What is the context of this PR?
Remove Back Link from Feedback thank you example as it will not be on the page when implemented in runner
How to review
Check Feedback examples look and work as they should

Not planning on removing back link from the pattern at the moment

repo: ONSdigital/design-system


text:
update ons-grid--flex to ons-grid-flex

What is the context of this PR?
Fixes #3259. This PR renames utility class from ons-grid--flex to ons-grid-flex.
Please note that this may be a breaking change.
How to Resolve the Breaking Change

Search your codebase for any occurrences of ons-grid--flex.
Replace all instances with the new class name ons-grid-flex.

How to review this PR

Verify that all instances of ons-grid--flex have been renamed to ons-grid-flex.
Ensure that all references in the documentation, examples, and tests have been updated accordingly.
Confirm that all tests pass.

Checklist
This needs to be completed by the person raising the PR.

[x] I have selected the correct Assignee
[x] I have linked the correct Issue

The PR description needs updating. Also as you have now started using the sass syntax in this file I was wondering if we want to restructure the rest of this file using sass syntax

authors: precious-onyenaucheya-ons rmccar


text:
Feature/instance to code relation

What
Update end to end tests to import the CPIH codelist into neo4j. This allows the dimension importer to create relationships between the instance node and the codes that it relates to.
How to review
Review changes / test
End to end test using these changes:
https://github.com/ONSdigital/dp-api-tests/pull/94
https://github.com/ONSdigital/dp-dimension-importer/pull/37
https://github.com/ONSdigital/dp-dataset-exporter-xlsx/pull/68
https://github.com/ONSdigital/dp-dataset-exporter/pull/43
https://github.com/ONSdigital/dp-download-service/pull/29
Who can review
Anyone

Can you increase the default timeout to 30 or 45 seconds as I cannot get the instance to complete in time. Other than that, seems good 👍

repo: ONSdigital/dp-api-tests


text:
Work around a glitch in the ASE DDR model

The DDR simulation model's Avalon ready/enable protocol deliberately uses clock offsets, which wreak havoc even in the Qsys-supplied bridges. Adding a small delay to the simulated DDR clock passed to the AFU causes the AFU to sample signals when they are stable.

This appears to have been the cause of random failures in hello_mem_afu simulation.
Tests: http://sw-pert.altera.com/pert/pert.php?test_run_id=3410442

repo: OPAE/opae-sdk


text:
DocsArchive-15.0.0.0Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/896 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target.git

Docs Build status updates of commit 18a80dc:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_master_2021-06-09-01-48-33 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


text:
DocsArchive-15.0.0.0Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_82c94236-9731-4b30-ba51-24cc2fbf2b05/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_82c94236-9731-4b30-ba51-24cc2fbf2b05.git

Docs Build status updates of commit f8f79df:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_main_2022-02-21-01-17-20 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


text:
DocsArchive-15.0.0.0Auto archive content

Auto archive content from https://github.com/opstest2/docs-archive-test-source.git

Docs Build status updates of commit fc4fbe9:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


text:
DocsArchive-1.0.0.0Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/57 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target.git

Docs Build status updates of commit 816be5d:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Archive_master_2019-09-25-11-15-07 has been deleted or has been force pushed: fatal: Couldn't find remote ref Archive_master_2019-09-25-11-15-07

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

authors: VSC-Service-Account v-alji


text:
Add more warnings to Jenkins

I think to we need to further clean up the code to get rid of warnings. Thus I suggest we add -Werror and additional warnings detection to Jenkins CI. At the moment I get things like this:
[1059/1294] Building CXX object DataTransferKit/packages/Operators/test/CMakeFiles/dtk_hex_test_reference.dir/reference_implementation/DTK_ReferenceHexMesh.cpp.o
In file included from ../../DataTransferKit/packages/Interface/src/Client/DTK_EntitySet.hpp:47:0,
                 from ../../DataTransferKit/packages/Interface/src/OperatorVector/DTK_FunctionSpace.hpp:46,
                 from ../../DataTransferKit/packages/Operators/test/reference_implementation/DTK_ReferenceHexMesh.hpp:45,
                 from ../../DataTransferKit/packages/Operators/test/reference_implementation/DTK_ReferenceHexMesh.cpp:41:
../../DataTransferKit/packages/Interface/src/Client/DTK_EntityIterator.hpp:91:28: warning: ‘virtual DataTransferKit::EntityIterator DataTransferKit::EntityIterator::operator++(int)’ was hidden [-Woverloaded-virtu
al]
     virtual EntityIterator operator++( int );
                            ^~~~~~~~
In file included from ../../DataTransferKit/packages/Operators/test/reference_implementation/DTK_ReferenceHexMesh.cpp:50:0:
../../DataTransferKit/packages/Adapters/BasicGeometry/src/DTK_BasicEntitySet.hpp:83:21: warning:   by ‘virtual DataTransferKit::EntityIterator& DataTransferKit::BasicEntitySetIterator::operator++()’ [-Woverloaded
-virtual]
     EntityIterator &operator++() override;
                     ^~~~~~~~

One thing, though, is that some of Trilinos packages like STK are more warning-prone. I think the linear algebra portion, though, is mostly warnings free.

Remember that we get warnings from TPLs when we build too that we have no control over. Would this flag cause the build to fail because a warning from a TPL?

I usually have the following in my configure script:
SYSTEM_HEADERS=""
for header_dir in `echo $CPATH | sed 's/:/\ /g'`; do
  SYSTEM_HEADERS="$SYSTEM_HEADERS -isystem $header_dir"
done

...

-D CMAKE_CXX_FLAGS="-g -Wall -Wextra -Wno-unused-parameter $CXX_FLAGS_COMPILER_SPECIFIC $SYSTEM_HEADERS"

This way the compiler would ignore the headers coming from the things in you $CPATH (or whatever you put there). So TPLs should be fine. Most issues I see coming from Trilinos packages.

I think this is a good idea then as long as we can configure this to just fail on any DTK warnings.

The problem is not so much the TPL but the other packages in Trilinos.

Fixed in #134.

authors: aprokop dalg24 sslattery

repo: ORNL-CEES/DataTransferKit


text:
Refactor bnpy data clustering apps

Currently the data clustering implementation the bnpy-based apps is functional, but can be slow to converge when too much training data is added. It can also be awkward to re-cluster after the model is updated. In order to have automatic region of interest selection in Peregrine, the clustering implementation should be sped up. Some ideas for enhancements:

use a representative sample for training instead of the entire dataset
instead of training and clustering for each part sequentially, create training data based on all parts first and then cluster
create a the Bnpy subclass of the base App class to streamline the apps themselves

Removing this from the Peregrine demonstration milestone, because of the capability implemented in #25. Updating the bnpy app is still planned, but lower priority for the moment.

repo: ORNL-MDF/Myna


text:
misspelling of accordion in readme

Readme has been updated thanks!

authors: cblanquera ezerssss

repo: OSSPhilippines/frui


text:
Upgrade dependency

Upgrade jsonwebtoken@8.5.1 to version 9.0.2

Please ignore this PR and close it. Generated by TestIM


text:
Sceptile and TRs

I have been testing some TRs and TMs from gen 8 since the recent patch and discovered an issue. Sceptile is unable to learn Dragon Pulse through the Dragon Pulse TR. However, it learned Focus Blast through TRs, which means Dragon Pulse is glitched for Sceptile - likely other pokemon as well.
I'm unsure if the screenshot will show, but I'll try anyway.

This is working as intended. Sceptile didn't learn Dragon Pulse by TM in Gen 7, it was a tutor move. It still learns it by tutor as of now.

Odd, the website PokemonDB shows that Sceptile can learn Dragon Pulse via TR in the Crown Tundra DLC. Are DLC mons not considered gen 8 mons?

This will be fixed in the next day or two.

repo: ObliqueNET/Server


text:
Incorrect Mega Medicham textures

https://puu.sh/z6kWa/05f9da5705.png
Sorry for the bad angle but it would appear that Mega Medicham is using the same textures as Sylveon, at least to some degree, as indicated by the out of place pinks and blues on the model.

Fixed

repo: ObliqueNET/Terra


text:
Configuration upgrades

It was not possible to correctly set the rate.  This has been resolved.
The cache of config items was not being updated correctly, this has been resolved.

Can't really claim much JS expertise, but it looks fine. Hope it works too 😄

authors: ajgosl ulrikpedersen

repo: Observatory-Sciences/aravis-detector


text:
SLatissima parameters do not show

This snipped
https://github.com/OceanBioME/OceanBioME.jl/blob/1c5598ec482c97f92008250d6071c3d491a3e5c1/docs/src/appendix/params/SLatissima.md#L4-L5
doesn't seem to be doing anything.

Oh yeah that doesn't work anymore. I'd quite like to document the default parameters somehow but haven't worked out how todo it yet.

authors: jagoosw navidcy


text:
Add FieldSet.from_a_grid_dataset() method

Parcels has specific methods for loading B-grid and C-grid datasets, but not for A-grids. This is because A-grid (linear) interpolation is default, so FieldSet.from_netcdf() automatically assumes an A-grid.
However, for consistency and to help new users, it might be nice to add an explicit FieldSet.from_a_grid_dataset() method to Parcels. This method would then simply call from_netcdf().
Note that while this is done, it might also be good to update a few mentions of from_bgrid() and from_cgrid() in the docstrings to the correct from_b_grid_dataset() and from_c_grid_dataset()

Hi @erikvansebille , I'd like to work on this enhancement. Could you please assign this issue to me?
Thank you!

Thanks @KOMPALALOKESH, for wanting to pick this up! I've assigned this Issue to you.
I think the key starting point is to make a new method in parcels/fieldset.py that returns a cls.from_netcdf(), a bit like how fieldset.from_b_grid() is structured but then without much (any?) adjustments.
It would also be nice to add a unit test to tests/test_fieldset.py.
Good luck, and let us know if you need any help!

@KOMPALALOKESH if you're interested and want more than this issue, "Enable pyupgrade on ruff linting" from #1620 is well defined and might be interesting from a technical standpoint if you haven't worked with Ruff before. Its a nice Python tool, and modern Python is consolidating towards it for handling QAQC.

@erikvansebille , This PR Link introduces the FieldSet.from_a_grid_dataset() method in "parcels/fieldset.py" to handle A-grid datasets. A corresponding unit test has been added in "tests/test_fieldset.py" to validate this functionality.
Please review the changes and the test case. If everything is in order, kindly merge.

repo: OceanParcels/parcels


text:
Fix double email_user/confirm due to language render

Add a persistent (per refreshed session) flag to skip any actions sparked by future renders after it has already been authenticated.
Tested as much as I can, but do try at kp in case I broke something.

We patched it up on the backend, but this should help anyway..will double check later tomorrow.

Yeah, this will prevent it from jumping to SignUp flow page due to the re-render.
(couldn't really replicate an actual problem -- had to force-render it to get the double confirm. Maybe only happens in certain locale).

authors: infinite-persistence tzarebczan

repo: OdyseeTeam/odysee-frontend


text:
Pure client side Graph example

Hi All,
I have been studying the various examples provided here however Im unable to see any examples which provide a pure client side app which makes graph calls. Is there a reason for this?
Seems even the hello world with no back end still hosts a "simpleAuth" back end application. Im looking for some example which simply uses the authorization code flow with pkce to get a token and call the MS Graph. Is there som technical resson why this is not available?

There is no such sample seems to be available.

@AnthonyPhan - As per my understanding, the standard and recommended way to do the authentication at the server side and then call the API's at the client side.
However you can implement the authorization code flow at client side and do the Graph API call's using generated token at client side.

@AnthonyPhan - Please let us know if you need any further details or shall we close this issue?

@v-chetsh it looks like the "simple-auth" service is being deprecated and as of a recent update of teamsfx the standard hello world uses a complete client side implementation of authorisation code flow with PKCE as suggested my this post.
Here is a further reference:
https://stackoverflow.com/q/70388145/3095420

authors: AnthonyPhan Prasad-MSFT v-chetsh

repo: OfficeDev/Microsoft-Teams-Samples


text:
Deployment form mentions that custom domains are recommended

The documentation correctly states the advantages of having Azure Front Door for company communicator, however the deployment form we get when executing the default ARM deployment template states that custom domains are recommended. Could you please review that?

Hi @cristianoag ,
Thanks for highlighting. We will check on this.

Hi @cristianoag ,
In the new release, the above mentioned correction has been taken care. Please let us know if you have any concerns.


text:
Deploy failed with"There was a conflict. Conflict with existing ScmType: ExternalGit"

Hi, I deploy CC 5.5 in another tenant, but it was failed, I found the closed issue#1078, follow the way (disconnect and reconnect, wait for Log show up: success(Active), and redeploy again, but it still fail with There was a conflict. Conflict with existing ScmType: ExternalGit

I go back Deployment Center and External Git show up "Error fetching information", however I disconnect and connect again, redeploy always failed with "There was a conflict. Conflict with existing ScmType: ExternalGit"

I am sure not any underscore (_) or space in any of the field values, include subscription & resource group.

@gsv022 It's working, and deployed success. thanks for your support.

Hi @reterfreeman ,
Thanks for the update. Please feel free to log a issue if anything comes up w.r.t standard version of CC


text:
Author App is partially available to users if published.

Hi Team, In the recent version (5.5.1) of the Company Communicator, I deployed both the Author and User apps via the Teams admin console. In earlier versions, if a non-authorized UPN user attempted to add the Author app, it would get added in Teams but would not open, displaying an authorization error. However, in version 5.5.1, users can add the app and also view the card design module, which was previously unavailable. Despite this, they still cannot send messages from the Author app. Can we enforce the same level of restriction as in the earlier version, where non-authorized users were completely restricted from accessing the app?
Below are the screenshots of the old version author app added by random users after publishing it in Teams admin via Manage Apps.

Below is the screenshot of the new version 5.5.1 author app added by random users after publishing it in Teams Admin via Manage Apps.

Hi @Sheshank-TCS ,
Thanks for raising the query. Normally, in any version unauthorized users won't have access to CC author app unless their UPN is added to the UPN list. Coming to the error, check with that specific user on browser version of teams so that user will get relevant error when tries to access the application.

Hi @gsv022  I have validated on teams web version also and its still available. Though the message cannot be sent but its not giving any access denied error. Please suggest how this can be fixed.

Hi @Sheshank-TCS ,
Is it happening in New Teams as well?

Yes, this is happening with New teams, Old teams and Web version. However old Company communicator app is restricted everywhere for the users who are not Authors.

Hi @Sheshank-TCS ,
Please share your mail id so that we can discuss the issue internally.

sheshank.dhoot@outlook.com you can use this one.

I have sent a mail. Please check and respond

Hi Sai, Thanks for your response, I have reverted to it.

I am facing the same issue, is there any update of this issue?

Hey Chris, Still waiting to hear from the team.

Hi @Sheshank-TCS ,
We have tried in different tenants and not able to replicate the issue. Please deploy one more instance and see the issue if persists.
Keep us posted

Working towards the implementation will keep you posted.

Sure, please keep us posted

Hi Sai, Just a query, have you validated setting up a second instance when existing instance exist. May be if you are setting up a single new instance it is not giving error.

Hi @Sheshank-TCS ,
We will check out this scenario and let you know.

@gsv022 We tried setting up the new instance and the Function app failed. Please suggest whether should I manually sync the resource from the deployment center again.

Hi @Sheshank-TCS ,

To overcome the failed resources, Go to azure portal-->Go to resource group(Where the deployment has been done)-->Select prep-function(Any failed resource) from list of resources-->Go to Deployment Center-->Click on Settings. Below is the screenshot for reference.

If the resource is not pointing to intended repository and  showing empty. Please connect to the external Git and point to the official repository(like above)
Once the status turns to Success(active) in the logs section then good to proceed with remaining steps of deployment.
Please do the same for other failed resource as well.
After performing the above steps, don't attempt for re-deploy again

We have successfully deployed the latest App version 5.5.2 and the issue has been resolved it's throwing the disclaimer message as expected when nonauthorized members add the App. Thank you Sai for all the help and support, appreciate it.

authors: Sheshank-TCS chrischowsos gsv022


text:
Issue with Adding Sharepoint Extension.

When adding the sharepoint App, the documentation seems to be out of date for the new sharepoint. In the final step "do you trust eoc-extention..." New sharepoint has 2 options
"Only enable this app" and "Enable this app and add it to all sites"
What is the correct choice?

@fajr365 , thank you for bringing this to our attention.
We will update our documentation in the upcoming releases. The correct option will be "Enable this app and add it to all sites".
I hope this clarifies your query. If you have any further questions or issues, please feel free to post here.


text:
Problem with Page about Date

I would like to report a problem with this page.
Suggestion 1:
As I am looking for information on working with dates in office script, the text has a problem with the link in this paragraph:
"The next sample reads a date that's stored in Excel and translates it to a JavaScript Date object. It uses the date's numeric serial number as input for the JavaScript Date."
The link is directing to the Now function page.
Suggestion 2
The script shown can be simplified to the code below, because in this snippet of the original ( let excelDateValue = dateRange.getValue() as number;) returns an error.
function main(workbook: ExcelScript.Workbook) {
// Read a date at cell A1 from Excel.
let dateRange = workbook.getActiveWorksheet().getRange("A1").getValue();
// Convert the Excel date to a JavaScript Date object.
let javaScriptDate = new Date(Math.round((dateRange - 25569) * 86400 * 1000));
console.log(javaScriptDate);
}
Thank you!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 98c58cbf-aaf7-3d3a-48f4-ce9cebcf331c
Version Independent ID: 74821d34-eab6-ec0f-7a9f-55aca81975d9
Content: Basic scripts for Office Scripts in Excel on the web - Office Scripts
Content Source: docs/resources/samples/excel-samples.md
Product: excel
Technology: scripts
GitHub Login: @o365devx
Microsoft Alias: o365devx

Thanks for pointing out this issue @aletrovato. I'll get the page updated soon.

How amazing the speed of the response.
Thank you so much Alex!!!
Alessandro Trovato
Microsoft MVP / Instrutor LinkedIn Learning / Youtuber
Blog, Catálogo Virtual das Aulas e cursos com certificado
https://linktr.ee/alessandrotrovato
Acesso ao Youtube http://www.youtube.com/aletrovato
App gratuito na Play Store https://bit.ly/apptrovato com as aulas
Compartilhando conhecimento, sempre!
Em qui., 24 de mar. de 2022 às 13:58, Alex Jerabek @.***>
escreveu:

Thanks for pointing out this issue @aletrovato
https://github.com/aletrovato. I'll get the page updated soon.
—
Reply to this email directly, view it on GitHub
https://github.com/OfficeDev/office-scripts-docs/issues/476#issuecomment-1077838127,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC4HPXZNHH4EQYA6MVLQDI3VBSNLHANCNFSM5RQWXRRA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @aletrovato,
First, thank you for raising this issue. I have reached out to the product team to see about adding convenience methods to Office Scripts to make working with dates easier and more intuitive.
I wanted to follow up about your two suggestions. For the NOW function link, I had originally linked to that page because it contained the best description of the Excel date serial number. Is that link confusing? Should we just remove it?
For the sample not working, I could not reproduce that issue. Could you please provide a screenshot of the error or a copy of the text that is produced?
Thank you,

Hi Alex!
Your idea to develop a more practical way to work with dates is very welcome. When I tested today some scripts for date handling I ran into the problem of using the Date library (I didn't know it yet). The conversion of DataSerial types to standard JavaScript is confusing, perhaps it could also be an item in the Office Script help pages. I have written articles, produced a course and several classes for this on Youtube. I am trying to raise the flag and train users here to migrate to WEB and it would be of great help.
Suggestion 1 NOW - The redirect got confusing, if I may suggest, it would be interesting to remove the link or include the information that the NOW page illustrates how the date will look after formatting.
Suggestion 2: Solved. In the morning, when testing the code, getValue() was not recognized as a valid statement.
If I can help with anything, I am at your disposal.
Thank you very much!

authors: AlexJerabek aletrovato

repo: OfficeDev/office-scripts-docs


text:
Chrome

Actionable message support fails for web-based Outlook in Chrome, but not in Firefox or Safari. It's well known that much Microsoft client-side code has problems with Chrome (not sure why, my own code works fine), but there should be an asterisk on this page for that.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fc039d3b-b1e6-79ae-3b83-6e90d7d8af94
Version Independent ID: f72d624f-36b9-bab1-9c14-e9fc1e81082b
Content: What are actionable messages in Office 365? - Outlook Developer
Content Source: docs/actionable-messages/index.md
Product: outlook
Technology: o365-connectors
GitHub Login: @jasonjoh
Microsoft Alias: jasonjoh

@jmussman Actionable messages are supported in Chrome. Do you have a repro of your failure you can share with us?

You are correct. I rebooted since I posted that, and when I went back to take a screen shot for you it’s magically working. My bad then, sorry 😊 I guess welcome to the wonderful world of so many things impact so many others now days… I have no idea what could have caused that.
From: Jason Johnston notifications@github.com
Reply-To: OfficeDev/outlook-dev-docs reply@reply.github.com
Date: Monday, April 27, 2020 at 6:57 PM
To: OfficeDev/outlook-dev-docs outlook-dev-docs@noreply.github.com
Cc: Joel Mussman jmussman@smallrock.net, Mention mention@noreply.github.com
Subject: Re: [OfficeDev/outlook-dev-docs] Chrome (#862)
@jmussmanhttps://github.com/jmussman Actionable messages are supported in Chrome. Do you have a repro of your failure you can share with us?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/outlook-dev-docs/issues/862#issuecomment-620278257, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPCPO2CVWLJOOCUFHRV423ROYETVANCNFSM4MSAR7RA.

authors: jasonjoh jmussman

repo: OfficeDev/outlook-dev-docs


text:
Update tutorials for deprecated circuit draw style #725

Technical discussion for #725

 Update tutorials for deprecated circuit draw style #725

repo: OkuyanBoga/hc-qiskit-machine-learning


text:
🛑 Helix Intranet API | Dev is down

In 1f8c904, Helix Intranet API | Dev (https://helix-biogen-institute-intranet-backend.onrender.com/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Helix Intranet API | Dev is back up in 4b86748 after 7 minutes.

repo: OluwaninsolaAO/uptime-monitoring


text:
🛑 Helix Intranet API | Dev is down

In 06e35eb, Helix Intranet API | Dev (https://helix-biogen-institute-intranet-backend.onrender.com/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Helix Intranet API | Dev is back up in b6d5847 after 7 minutes.


text:
Status of this LS compared to omnisharp-node-client?

Hi @david-driscoll . Glad to see this moving forward and the node-client being dropped! I'd like to use it ASAP as a replacement for omnisharp-node-client in the Eclipse IDE integration. However, before doing it, I'd like to know whether it's already better than the omnisharp-node-client or if you think it's too early to switch (some features may be missing with the LS compared to previous one?).
Thanks in advance

@mickaelistria to early to switch for sure... this is the infrastructure for the work.  I'm going to packagify this and use it in OmniSharp.
The initial go forward plan is to add a new switch to OmniSharp --lsp that will kick it over into "lsp mode".  I hope to get that done over the next month or so (gotta just find a day to crush out some code really).  Then for third parties you'll just have to download the correct release from the https://github.com/OmniSharp/omnisharp-roslyn repository, and be able to use LSP natively.

Work has started! https://github.com/OmniSharp/omnisharp-roslyn/pull/969

authors: david-driscoll mickaelistria


text:
[info request] Hosting the language server code in Blazor?

We're using this library to provide LSP support for Bicep. We have an browser demo at https://aka.ms/bicepdemo which calls into the compiler code directly using Blazor/WASM, using Microsoft.JSInterop to compile, emit diagnostics, get semantic tokens, and pass the results back to the Monaco editor, but we're not using the language server for this - instead we've created a few custom functions for it.
The monaco-languageclient library can be used to hook monaco up to a language server which would provide much of the functionality that VSCode offers in a browser. It would be extremely cool to be able to simply use the LSP in a browser without the need for a back-end server.
I'm curious as to whether anyone has tried to run this server code via Blazor before. I've been experimenting with it and am able to get the initialize request/response negotiation to take place, but I don't see the client/registerCapability request come through from the server. I suspect there may be some sort of message pump that needs to run, but am not at all familiar with the Reactive library that's being used. Any pointers that you can give me would be awesome!
Here's an example of the code changes I've been experimenting with to hook this up to monaco: main...antmarti/experiment/monaco_lsp

I was thinking about this a week or two ago, in theory things should "just work" because the language server is just a .NET Standard library.  This sounds fun, so I'll take a look at your code and see if I can get it running.

I'm curious as to whether anyone has tried to run this server code via Blazor before. I've been experimenting with it and am able to get the initialize request/response negotiation to take place, but I don't see the client/registerCapability request come through from the server. I suspect there may be some sort of message pump that needs to run, but am not at all familiar with the Reactive library that's being used. Any pointers that you can give me would be awesome!

If there is a message pump at play one of the challenges might be that pump using a dedicated thread. I don't think Blazor WASM supports threads yet. Certain BCL methods that interact with threading will "spin" and fry your CPU :)

Thanks,

I was thinking about this a week or two ago, in theory things should "just work" because the language server is just a .NET Standard library. This sounds fun, so I'll take a look at your code and see if I can get it running.

Thanks! If you need any pointers in getting it running, let me know. It should just work if you clone the repo and run:
cd src/playground
npm i
npm start

I've stuck some haphazard logging in which should get written out to the browser console.

For input the process scheduler runs on the thread pool, which I think should be fine.
https://github.com/OmniSharp/csharp-language-server-protocol/blob/master/src/JsonRpc/InputHandler.cs#L86
For output however... I think it by default runs a dedicated thread.
https://github.com/OmniSharp/csharp-language-server-protocol/blob/6371386ee90dde8a1c419f3dc8fc94e0c1bc35f0/src/JsonRpc/OutputHandler.cs#L58

Okay here's a possible quick fix.  When setting up the server... try this. IScheduler should be System.Reactive.Scheduling.IScheduler (or something like that)
options.Services.AddSingleton<IScheduler>(TaskPoolScheduler.Default);

I theory that should kick the output handler to use the IScheduler provided in the container based on how I think DryIoc will pick constructors.

@ryanbrandenburg @NTaylorMullen @TylerLeonhardt thoughts, should I just move to use the task pool scheduler for handing input/output?  At the time a dedicated thread "made sense" but honestly it probably doesn't matter.
Input is already on the task pool and working fine.
Output isn't however it does ensure ordering, so we shouldn't there shouldn't really be any big problems.

@ryanbrandenburg @NTaylorMullen @TylerLeonhardt thoughts, should I just move to use the task pool scheduler for handing input/output? At the time a dedicated thread "made sense" but honestly it probably doesn't matter.

Having a dedicated thread has been risky because if something doesn't ConfigureAwait(false) and blocks you're doomed. We've actually encountered that issue once or twice in VS (as I'm sure you recall) so relying on the task pool scheduler doesn't sound awful. Are there any other drawbacks?
All that said for extra background info, we run Razor's language server in-proc in VS today which I presume from the quick glance at this thread similar types of things are trying to be acheived.
Here's where we create our own abstraction to start the spinup of the O# framework bits in VS: https://github.com/dotnet/aspnetcore-tooling/blob/feb060660bf14c9da3f284a72fe5f86390d3ab65/src/Razor/src/Microsoft.VisualStudio.LanguageServerClient.Razor/RazorLanguageServerClient.cs#L126-L129
And here's our actual abstraction that can rely on in-proc or out of proc streams: https://github.com/dotnet/aspnetcore-tooling/blob/feb060660bf14c9da3f284a72fe5f86390d3ab65/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs#L72-L75

Okay here's a possible quick fix. When setting up the server... try this. IScheduler should be System.Reactive.Scheduling.IScheduler (or something like that)
options.Services.AddSingleton<IScheduler>(TaskPoolScheduler.Default);

I gave this a go, but didn't see any observable difference in behavior.
I did notice that the Reactive.Wasm library I'm trying to use to replace the schedule doesn't appear to be doing what it's meant to in .NET 5 - in particular these checks no longer seem to work:
https://github.com/reactiveui/Reactive.Wasm/blob/a226dc0bb4f010c248568eb67b0b8e5b768358f5/src/System.Reactive.Wasm/Internal/WasmScheduler.cs#L136-L137
https://github.com/reactiveui/Reactive.Wasm/blob/a226dc0bb4f010c248568eb67b0b8e5b768358f5/src/System.Reactive.Wasm/Internal/WasmPlatformEnlightenmentProvider.cs#L27-L28
In theory if they were working, I should be able to do:
options.Services.AddSingleton<IScheduler>(WasmScheduler.Default);

I'll see if I can fix up the above checks locally and get that working.

All that said for extra background info, we run Razor's language server in-proc in VS today which I presume from the quick glance at this thread similar types of things are trying to be acheived.

Thanks for the pointers! We have the language server running as a standalone exe, which we use for VSCode integration, but as an experiment, I'm trying to see if we can also host the language server fully in a web browser, using Blazor/WASM without a backend - I think that's where the complexity is mostly coming from. Is that something your team has attempted by any chance?

I think that's where the complexity is mostly coming from. Is that something your team has attempted by any chance?

Ah, ya I can definitely imagine that being difficult 😄. No we haven't tried that but I can just imagine how the threading models may make things more difficult in addition to things like file watchers

@david-driscoll I just got an end-to-end working with a very hacky change here:
https://github.com/OmniSharp/csharp-language-server-protocol/blob/6371386ee90dde8a1c419f3dc8fc94e0c1bc35f0/src/JsonRpc/OutputHandler.cs#L67
Instead of adding the message to the queue, I just sent it directly with:
ProcessOutputStream(value, CancellationToken.None).Wait();

So I think that definitely confirms that it's something to do with the scheduler. Interestingly, I noticed that in the version of the language server we're using (0.18.3) it is using TaskPoolScheduler.Default rather than EventLoopScheduler.
I'm going to try and get a more solid PoC together by replacing IOutputHandler in the IoC container.

interesting!
options.Services.AddSingleton<IScheduler>(ImmediateScheduler.Instance); also appears to work.
@anthony-c-martin are you on slack or msteams?

So I'm running into an error Request client/registerCapability failed with message: i.languages.registerDocumentSemanticTokensProvider is not a function.  Seems the monaco editor doesn't support semantic tokenization yet.  However, disabling that things seem to work.
Here's my branch for you reference from:
https://github.com/Azure/bicep/compare/Azure:antmarti/experiment/monaco_lsp...david-driscoll:davidd/experiment/monaco_lsp
Couple notes: I was building locally with the latest version of the library (0.19.0-beta.1) so the C# changes are the changes required based on the breaking changes I've documented.
Also I was able to simplify the interop a little bit by using StreamMessageReader/StreamMessageWriter and a Duplex stream.  This writes all the expected header information, so you don't have to serialize on the Blazor side, instead you just write the bytes directly into the pipe.  Sending from the server to client also happens similarly.

I've created this PR #458 so we can configure the schedulers specifically.

So I'm running into an error Request client/registerCapability failed with message: i.languages.registerDocumentSemanticTokensProvider is not a function. Seems the monaco editor doesn't support semantic tokenization yet. However, disabling that things seem to work.
Here's my branch for you reference from:
Azure/bicep@Azure:antmarti/experiment/monaco_lsp...david-driscoll:davidd/experiment/monaco_lsp
Couple notes: I was building locally with the latest version of the library (0.19.0-beta.1) so the C# changes are the changes required based on the breaking changes I've documented.
Also I was able to simplify the interop a little bit by using StreamMessageReader/StreamMessageWriter and a Duplex stream. This writes all the expected header information, so you don't have to serialize on the Blazor side, instead you just write the bytes directly into the pipe. Sending from the server to client also happens similarly.

This is AMAZING, thank you so much for your help! I ran into the same issue with the language client - looks like semantic support has only been added to a preview version, and that they haven't yet picked up the latest LSP spec. For now, since we've already implemented our own semantic token handler anyway, I've reverted back to using this for now until the language client has actual support for it. I've picked up a bunch of your changes and updated my branch: main...antmarti/experiment/monaco_lsp.
I've pushed a demo of this here: https://bicepdemo.z22.web.core.windows.net/experiment/lsp/index.html

This has me thinking of making a Blazor Component that uses the monaco editor... but to try to make as much as possible of it actually live in C# and use the LanguageClient for interacting with it....
Other than the annoying part of converting the monaco api  into C#... ugh.

Right now I don't think I have the bandwidth to tie monaco and blazor together.  I might spike something out next weekend.  I looked at https://github.com/microsoft/monaco-editor/blob/master/monaco.d.ts and while I'm sure I could... that's a lot of code to keep in sync, so I would want to build out some sort of tool to integrate the two together.
I found this project, and posted an issue there https://github.com/canhorn/EventHorizon.Blazor.TypeScript.Interop.Generator/issues/31 to see what might be needed to support generation interop with monaco.d.ts as I'm just not prepared for the maintenance that would entail.
In the meantime there is recent activity on https://github.com/TypeFox/monaco-languageclient updating it to the latest version (that would include semantic tokens), you might be able to pin to the latest master branch and see if that works (I have not tried).

@anthony-c-martin are you on slack or msteams?

I'm on Teams - antmarti@microsoft.com

Shoot now I want to run the PowerShell language server in Blazor!

I think you can, you'll just have to do something similar to the bicep solution using monaco + monaco-languageclient, it totally works, there might be some issues if you use the file system APIs but those can always be fixed.

@TylerLeonhardt feel free to reach out if you'd like any pointers for the Bicep code!

I'm skeptical the PowerShell API will "just work" in Blazor WASM but worth a shot. @anthony-c-martin how did you "start the language server" in Blazor WASM? I'd love to take a peak at how the language server is hooked up to Monaco Editor.

For context, I've used the Monaco-languageclient before, but only their stdio option where the language server was running in a separate process on the machine.

I'm skeptical the PowerShell API will "just work" in Blazor WASM but worth a shot. @anthony-c-martin how did you "start the language server" in Blazor WASM? I'd love to take a peak at how the language server is hooked up to Monaco Editor.

[credit goes to @david-driscoll for a lot of this code]
Here's where the server is being initialized:
https://github.com/Azure/bicep/blob/16d7eb7fd5a92dadf6704f1c49e9246cf52b4da9/src/Bicep.Wasm/Interop.cs#L43-L58
The Server class is our own, but is really a thin wrapper around the Omnisharp Server class. The important pieces here are initializing the input/output pipes, and overriding the scheduler with ImmediateScheduler.Instance.
Here's the C# method that the JS code invokes to send data from client to server:
https://github.com/Azure/bicep/blob/16d7eb7fd5a92dadf6704f1c49e9246cf52b4da9/src/Bicep.Wasm/Interop.cs#L62
Here's where the C# code invokes the JS code to send data from server to client:
https://github.com/Azure/bicep/blob/16d7eb7fd5a92dadf6704f1c49e9246cf52b4da9/src/Bicep.Wasm/Interop.cs#L78
Here's the JS code to setup the send/receive with the server:
https://github.com/Azure/bicep/blob/16d7eb7fd5a92dadf6704f1c49e9246cf52b4da9/src/playground/src/helpers/lspInterop.ts#L24-L34
On startup I'm initializing the Blazor code from JS and setting the interop variable which can be used to invoke Blazor code with the following:
https://github.com/Azure/bicep/blob/16d7eb7fd5a92dadf6704f1c49e9246cf52b4da9/src/playground/src/helpers/lspInterop.ts#L5-L14
If you follow through the TS code, you should be able to see how the above is hooked into monaco-languageclient. I'm probably going to try and refine this code at some point to see if I can clean up the use of globals, and also to see if I can use a webworker to run the Blazor code.

Right now I don't think I have the bandwidth to tie monaco and blazor together. I might spike something out next weekend. I looked at https://github.com/microsoft/monaco-editor/blob/master/monaco.d.ts and while I'm sure I could... that's a lot of code to keep in sync, so I would want to build out some sort of tool to integrate the two together.

Out of interest, what are the benefits of implementing the translation layer between LSP & monaco's "custom LSP" in C# vs relying on monaco-languageclient to do it? I quite like the clean separation of having the TS code handle the translation and communicating with the C# code via LSP.

I just think it would be pretty cool to have a fully featured wrapper for monaco from the C# side.  The added extra would make it it easier to consume using the client.

Probably because then @david-driscoll could guarantee that the monaco language client was up-to-date on the LSP spec.

Going to pin this issue for any passers by as it is truly a cool feature.

FWIW I think we need one of https://github.com/dotnet/aspnetcore/issues/17730 or https://github.com/dotnet/aspnetcore/issues/5475 to really unlock the power of this, because at the moment synchronous dotnet code locks up the UI thread, which feels a little janky when typing.
There's also this project which I haven't really investigated that might work as a stopgap: https://github.com/Tewr/BlazorWorker

I think a web worker would be perfect.  Your UI (TypeScript) starts the worker, and you interop with the worker using postmessage.  The worker then just has to interop with the language server.

Thank you guys, you helped me a lot to understand some ideas. I'm trying to build a small POC on blazor and monaco based C# code editor with code completion. However, I cannot get code completion to work.
What I've done:

in JS created monaco-editor and configured monaco-languageclient (in the same way as Bicep's playground)
in wasm created an interop class:

public class Interop
{
	private LanguageServer languageServer;
	private readonly IJSRuntime jsRuntime;
	private readonly PipeWriter inputWriter;
	private readonly PipeReader outputReader;

	public Interop(IJSRuntime jsRuntime)
	{
		this.jsRuntime = jsRuntime;
		var inputPipe = new Pipe();
		var outputPipe = new Pipe();

		inputWriter = inputPipe.Writer;
		outputReader = outputPipe.Reader;

		languageServer = LanguageServer.PreInit(opts =>
		{

			opts.WithInput(inputPipe.Reader);
			opts.WithOutput(outputPipe.Writer);
			opts.Services.AddSingleton<IScheduler>(ImmediateScheduler.Instance);
		});

		Task.Run(() => RunAsync(CancellationToken.None));
		Task.Run(() => ProcessInputStreamAsync());
	}

	public async Task RunAsync(CancellationToken cancellationToken)
	{
		await languageServer.Initialize(cancellationToken);

		await languageServer.WaitForExit;
	}

	[JSInvokable]
	public async Task SendLspDataAsync(string jsonContent)
	{
		var cancelToken = CancellationToken.None;
		Console.WriteLine("jsonContent");
		Console.WriteLine(jsonContent);

		await inputWriter.WriteAsync(Encoding.UTF8.GetBytes(jsonContent)).ConfigureAwait(false);
	}

	private async Task ProcessInputStreamAsync()
	{
		do
		{
			var result = await outputReader.ReadAsync(CancellationToken.None).ConfigureAwait(false);
			var buffer = result.Buffer;
			Console.WriteLine("ProcessInputStreamAsync");
			await jsRuntime.InvokeVoidAsync("ReceiveLspData", Encoding.UTF8.GetString(buffer.Slice(buffer.Start, buffer.End)));
			outputReader.AdvanceTo(buffer.End, buffer.End);

			// Stop reading if there's no more data coming.
			if (result.IsCompleted && buffer.IsEmpty)
			{
				break;
			}
			// TODO: Add cancellation token
		} while (!CancellationToken.None.IsCancellationRequested);
	}
}

Code completion doesn't work, because I haven't registered CodeCompletionHandler. I don't understand which one to use, because in Bicep you use a custom completion handler, in my POC I would like to use O# completion handler.
Do you have any hints on how to implement it?

I've made a solution, that compiles C# project into single-file UMD library: https://github.com/Elringus/DotNetJS
Tried to use the server with it, but not sure how to deal with input/output. Console.STD won't work, obviously. Can we somehow run the server via websocket?

Tried to use the server with it, but not sure how to deal with input/output. Console.STD won't work, obviously. Can we somehow run the server via websocket?

Nice, I'll check that library out!
Here's how I've been doing things in my experimental branch - using a simple send/receive method to pass JSONRPC back and forth from JS <-> C#:

C#: https://github.com/Azure/bicep/blob/4a4d193eff0492043ff350419c8c9693ad6d63b6/src/Bicep.Wasm/LspWorker.cs
JS: https://github.com/Azure/bicep/blob/4a4d193eff0492043ff350419c8c9693ad6d63b6/src/playground/src/helpers/lspInterop.ts

Not the most elegant/performant, but it works well enough for now. Being able to have client-side Blazor host a websocket would make this a lot nicer.

@Elringus I'm currently trying to use your library to get our OmniSharp-based Language Server to run in an VS Code Web extension. This sounds very similar to what you want to achieve. May I ask if you already managed to get that working? My current status is that I can run the language server in a Blazor project (thanks to the information in this thread), but in the web extension the server never finishes initialization.

@Skleni I've switched to Microsoft's reference LSP implementation in JS (https://github.com/microsoft/vscode-languageserver-node), while reusing the existing language-specific C# code via DotNetJS:

— this way we can get up-to-date LSP implementation and native webworker transport layer out of the box, while keeping all the handlers logic in C#.
Regarding VS Code, there were 2 issues with this workflow, but they're both solved in insiders stream now and should become available in the main stream in February:

https://github.com/microsoft/vscode/issues/138413
https://github.com/microsoft/vscode/issues/138780

authors: Elringus NTaylorMullen Skleni TylerLeonhardt anthony-c-martin david-driscoll rynowak s-KaiNet


text:
Fixed recursive require() between dock-view and omnisharp-atom, fixed a ...

...few (annoying) compiler errors.  Fixes #139.

Works a treat!

authors: david-driscoll nosami

repo: OmniSharp/omnisharp-atom


text:
Add MSBuild project to solution and apply the change to Roslyn workspace as a unit

I often hit 'Failed to add project to workspace: ' error in OmniSharp log when opening one of internal projects. I only see this issue on Linux (Ubuntu 20.04) and not on Windows. I always have omnisharp.enableMsBuildLoadProjectsOnDemand set to "true". The problem occurs often but not all the time.
In both success and failure cases I see the following sequence of events (shortened to highlight only important parts):
[info]: OmniSharp.MSBuild.ProjectManager
	Queue project update for '/home/<path_to_project>/ProjectName.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
	Loading project: /home/<path_to_project>/ProjectName.csproj
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 7,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "/home/<path_to_project>/obj/Debug/net6.0/linux-x64/ProjectName.AssemblyInfo.cs",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Roslyn.BufferManager
        Adding transient file for /home/<path_to_project>/obj/Debug/net6.0/linux-x64/ProjectName.AssemblyInfo.cs
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/<path_to_project>/ProjectName.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/<path_to_project>/ProjectName.csproj'

In the case of the failure though the sequence is followed by:
[fail]: OmniSharp.MSBuild.ProjectManager
	Failed to add project to workspace: '/home/<path_to_project>/ProjectName.csproj'
...
[fail]: OmniSharp.MSBuild.ProjectManager
	Could not locate project in workspace: /home/<path_to_project>/ProjectName.csproj

The documentation for "bool Workspace.TryApplyChanges(Solution newSolution)" states: “… The specified solution must be one that originated from this workspace. If it is not, or the workspace has been updated since the solution was obtained from the workspace, then this method returns false …"
ProjectManager.AddProject clearly passes the solution that is originated from the same workspace. Therefore, the workspace somehow gets changed b/w adding the project to the solution and applying the changes to the workspace. The theory is that the file change notification received for ProjectName.AssemblyInfo.cs causes the workspace change in ProjectManager.OnDirectoryFileChanged. Thus, the lock added around these two places. My testing shows that the change does address the issue I'm seeing.

@filipw, @JoeRobich, appreciate if you could take a look.

repo: OmniSharp/omnisharp-roslyn


text:
Intellisense appears after typing an open or close brace and autoselects "Action"

This causes subsequent return presses on the keyboard to insert the text "Action" instead of moving to a new line.

@agocke, are you still seeing this problem? I've been unable to reproduce it.

@DustinCampbell I think this was a bad interaction between extensions. I'll try and repro and re-open if I find anything.

thanks! No rush here. The idea that two extensions were interacting badly sounds like a good theory to me.

authors: DustinCampbell agocke

repo: OmniSharp/omnisharp-vscode


text:
🎯[Feat] 일정 담당자 지정 기능 개발

기능 요약 (Feature Summary)

역할이 PM인 회원은 담당자를 복수로 지정할 수 있다.
담당자는 담당하는 일정에 대해 체크박스(일정 상태 수정) 혹은 직접 입력을 통해 진행률을 수정할 수 있다.

작업 내용 (Work Description)

역할이 PM인 회원이 이해관계자 테이블에 일정에 대한 담당자 정보를 추가하거나 수정할 수 있도록 한다.
일정의 담당자가 해당 일정의 진행률(혹은 일정 상태)을 수정할 수 있도록 한다.
프론트엔드에서 PM이 일정에 대한 담당자를 지정하고, 일정의 담당자가 본인의 일정 진행률을 수정할 수 있는 UI를 구현한다.

관련 이슈 (Related Issues)

이슈 #33 : 프로젝트 구성원 역할 권한 기능 개발

체크리스트 (Checklist)

[ ] 새로운 기능에 대한 코드 작성 완료
[ ] 테스트 완료
[ ] 문서화 완료
[ ] 리뷰 요청

일정에 대한 작성자가 있어야 하니 이해관계자에 작성자 추가 메소드를 추가하여 일정 등록 시, 그 주체가(PM or PL) 작성자로서 저장될 수 있도록 해야함

repo: OmokNoonE/PPM-backend


text:
Document Sets are not visible when filtering on file extension in typesAndSources in configuration schema

Issue:
A user is required to pick a file of certain extension in the workflow. We pass the extension in the 'filters' parameter  in 'typesAndSources' in the Picker Configuration Schema. The filtering seems to work fine. I receive the files with the required extension and the folders in the Sharepoint site. The issue is that the Document Sets are not visible. This hinders the user to pick files of similar extension in the Document Sets.
The only possible options we can put in filters is string array with values like:
  - photo
  - video
  - audio
  - folder
  - file
  - extensions prefixed with '.'

Possible Solutions:

Treat the shared documents as folders
Maybe add another parameter to filter based on the 2 content types, i.e. document sets and folder.
Add Document Sets in the filters options

Document Reference:
https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/v8-schema?view=odsp-graph-online

We will review this request with the engineering team.

Hi @patrick-rodgers @avirallariva, what was the outcome of this?

Hey @nicolasiscoding, did you ever get updates on this outside of this thread? If not, I can work with the team to provide some. Thanks!

authors: JCrew0 avirallariva nicolasiscoding patrick-rodgers

repo: OneDrive/samples


text:
How to update ProgressDialog?

i want to update ProgressDialog Progress, this is my codes, where is wrong? progress dialog is not update and stay in 0
private var job: Job = Job()
    override val coroutineContext: CoroutineContext
        get() = IO + job

fun getCirculars(){
        swipRefresh.isRefreshing = true
        itemsData.clear()

        val dialog = ProgressDialog(mContext)
        dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL)
        dialog.setIndeterminate(true)
        dialog.setCancelable(false)
        dialog.setCanceledOnTouchOutside(false)
        dialog.max = 100
        dialog.isIndeterminate = true
        dialog.show()

        launch {
            val operation = async {
                val doc: Document = Jsoup.connect(url)
                    .timeout(0)
                    .maxBodySize(0)
                    .ignoreHttpErrors(true)
                    .sslSocketFactory(CommonHelper.trustServer())
                    .get()

                val table: Elements = doc.select("table[class=\"table table-striped table-hover\"]")
                for (myTable in table) {
                    val rows: Elements = myTable.select("tr")
                    withContext(Dispatchers.Main){
                        dialog.isIndeterminate = false
                    }

                    for (i in 1 until rows.size) {
                        withContext(Dispatchers.Main){
                            dialog.progress = (i / rows.size) * 100
                        }
                    }
                }
            }.await()
            withContext(Dispatchers.Main) {
                // update UI
                dialog.dismiss()
                swipRefresh.isRefreshing = false
            }
        }
    }

If you still have doubts about the lib's usage please join our official Telegram Group and ask us there. I'd prefer to keep the repository Issues page only for actual lib issues/bugs rather than for generic questions about the usage of the libs..

repo: OneUIProject/oneui-design


text:
Support Flavors for MacOs

Is your feature request related to a problem? Please describe.
When creating project with flavors, they configured for Android and OS only. There no MacOS cofiguration in flavorizr.
Describe the solution you'd like
Add MacOS to flavorizr configuration

Planned in version 1.1.1(26)