[QUERY] Documentation/Examples on Canvas functions

I want to use the new canvas functions and am looking for information and examples on structuring complex pages.
There is a one-line example in the samples here but I need a bit more
I'm looking for a detailed definition of expanded_rich_text in particular how to set up placeholders / canvas variables, tables, headings (ie 1/2/3 level headings rather than the standard Header block) and checkboxes.
A section on Canvases in the Block Kit Builder would be great, but I guess it's early days
Glad of any help - thanks

@filmaj That's great. In the short term just a few hints would probably do. Thanks

Noted, let me see if I can at least dig up a schema/reference for expanded_rich_text...
OK, its basis is mostly based on the same schema as for rich_text, which the Block Kit documentation dives into decently well as a kind of reference doc. In particular, you can reuse rich_text_section, rich_text_preformatted and rich_text_quote as described in this document.
rich_text_list is the same as described in this document, too, with one exception: the style property allows for a few additional options, and specifically allows for any of the following values: ["bullet", "ordered", "checked", "unchecked"]. I haven't tested this myself, but it seems like using checked and unchecked would be used to implement a checklist.
Expanded rich text also supports two other sub-elements. I will paste in the relevant JSON schema bits here but note I haven't tested this out much so fair warning!
rich_text_header
	"required": ["type", "elements"],
	"properties": {
		"type": {
			"type": "string",
			"enum": ["rich_text_header"]
		},
		"elements": {
			"$ref": "../rich_text_elements.json#" // same as `rich_text_elements`: https://api.slack.com/reference/block-kit/blocks#rich_text_section
		},
		"level": { // <-- I assume this sets the header level
			"type": "integer",
			"minimum": 1,
			"maximum": 3
		}
	}

rich_text_divider
This one's very simple: only accepts a type property:
	"required": ["type"],
	"properties": {
		"type": {
			"type": "string",
			"enum": ["rich_text_divider"]
		}
	}

Hope that helps at least to unblock playing around with this stuff; once we have a better answer on the documentation side I will update this issue.

@filmaj Ah, I've found that some functions like canvas_copy are only available for Enterprise Grid customers. Which strikes me as a little odd. What's the best way to raise this issue? I've asked a question on the Slack Help desk but the person helping me wasn't aware that functions were restricted in this way.

The best way to get this kind of feedback in front of the powers-that-be that decide on priority and such product decisions is by emailing<EMAIL_ADDRESS>This is a formal intake process that the relevant decision makers regularly review. Possibly you've already done this if you say you've been interacting with the Slack help desk. I would suggest making it clear that your feedback message / help desk ticket content is not about seeking help with a problem but rather ensuring your voice is heard about a product decision (such as gating features behind specific Slack paid plans). This should streamline the help desk staff interaction to get your feedback filed away in the proper place.
Wish I had more influence in this department but alas, above my pay grade! Apologies.

@filmaj I tried the function content below. It works with just the RICH TEXT SECTION but not when I add the RICH TEXT HEADER. It errors with  invalid_blocks. Have I interpreted the schema correctly?
 {
        "type": "rich_text",
        "elements": [
          // RICH TEXT HEADER
          {
            "type": "rich_text_header",
            "elements": [{ "type": "text", "text": "My heading" }],
            "level": 2
          },
          // RICH TEXT SECTION
          {
            "type": "rich_text_section",
            "elements": [{ "type": "text", "text": "My text" }],
          },
        ],
      },

I'll spend some time today playing with this and report back.. sorry about the experience.

@filmaj That looks just the job. Very grateful.
Can I ask for a couple more things...

Is there a definition for tables yet?
How to implement a link? I read something that said it's better not to use markdown but whilst there are references for bold, italics etc in rich text I couldn't find one for links.

As ever thank you for your help

Is there a definition for tables yet?

Not yet but a Table Block element is in the works and we plan on releasing it very soon! I don't want to provide a release date on that but my understanding is it is imminent.

How to implement a link? I read something that said it's better not to use markdown but whilst there are references for bold, italics etc in rich text I couldn't find one for links.

rich_text_section, rich_text_preformatted and rich_text_quote all allow for their elements array to accept a type:link element. rich_text_lists, on the other hand, accept rich_text_section in its elements array, which in turn can contain links.

@filmaj All cool, now working. Thank you very much
I guess the tables feature will be part of the expanded_rich_text definition and since documentation seems to be lagging release how could I spot when the tables feature is ready?

It should be announced in our changelog on api.slack.com.
I'll keep this issue open until we have better documentation up for expanded_rich_text et al.

I have tried to use both  Schema.slack.functions.CanvasCreate and Schema.slack.functions.ChannelCanvasCreate, failed when invoked using web-hook trigger with 'internal_error' and 'file_not_found' errors.
Note : for testing purpose, i have pass the hard code values directly.
workflow:
import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts";

export const SampleCanvasWorkflowDefinition = DefineWorkflow({
  callback_id: "dr_canvas_function",
  title: "Canvas",
  description: "dealroom canvas",
  input_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message to send",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel to send message to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
    },
    required: ["message", "channel", "description"],
  },
  output_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message that was sent",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel the message was sent to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
      canvas_id: {
        type: Schema.slack.types.canvas_id,
        description: "Canvas link",
        title: "Canvas link",
      },
    },
    required: ["message", "channel", "description", "canvas_id"],
  },
});

SampleCanvasWorkflowDefinition.addStep(
  Schema.slack.functions.CanvasCreate,
  {
    title: "Hello world",
    owner_id: "U05BJ6XSS82",
    content: [
      {
        "type": "rich_text",
        "elements": [
          {
            "type": "rich_text_section",
            "elements": [{ "type": "text", "text": "Hello new canvas" }],
          },
        ],
      },
    ],
  },
);

trigger:
import { Trigger } from "deno-slack-api/types.ts";
import { SampleWorkflowDefinition } from "../workflows/sample_workflow.ts";
import { TriggerTypes } from "deno-slack-api/mod.ts";

const trigger: Trigger<typeof SampleWorkflowDefinition.definition> = {
  type: TriggerTypes.Webhook,
  name: "sends message to my fav channel",
  description: "runs the example workflow",
  workflow: "#/workflows/sample_function",
  inputs: {
    message: {
      value: "{{data.message}}",
    },
    channel: {
      value: "{{data.channel}}",
    },
    description: {
      value: "{{data.desciption}}",
    },
  },
};

export default trigger;

@filmaj @markfoden any idea about the errors and what is missed

@harshbhardwaj29 use "type": "expanded_rich_text" instead of "type": "rich_text"

@filmaj thanks that helps, any idea of the other error: Schema.slack.functions.ChannelCanvasCreate, getting odd error of 'file_not_found' and first message in my screenshot.

Can you share the code for how you invoke ChannelCanvasCreate?

My workflow
import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts";

export const SampleCanvasWorkflowDefinition = DefineWorkflow({
  callback_id: "dr_canvas_function",
  title: "Dealroom Canvas",
  description: "canvas",
  input_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message to send",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel to send message to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
    },
    required: ["message", "channel", "description"],
  },
  output_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message that was sent",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel the message was sent to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
      canvas_id: {
        type: Schema.slack.types.canvas_id,
        description: "Canvas link",
        title: "Canvas link",
      },
    },
    required: ["message", "channel", "description", "canvas_id"],
  },
});

SampleCanvasWorkflowDefinition.addStep(
  Schema.slack.functions.ChannelCanvasCreate,
  {
    channel_id: SampleCanvasWorkflowDefinition.inputs.channel,
    canvas_create_type: "template",
    canvas_template_id: "TEM123456",
    content: [
      {
        "type": "expanded_rich_text",
        "elements": [
          {
            "type": "rich_text_section",
            "elements": [{ "type": "text", "text": "Hello new canvas" }],
          },
        ],
      },
    ],
  },
);

trigger for invoking workflow:
import { Trigger } from "deno-slack-api/types.ts";
import { SampleCanvasWorkflowDefinition } from "../workflows/canvas_workflow.ts";
import { TriggerTypes } from "deno-slack-api/mod.ts";

const dealroomCanvasCreateTrigger: Trigger<
  typeof SampleCanvasWorkflowDefinition.definition
> = {
  type: TriggerTypes.Webhook,
  name: "send canvas message to dealroom channel",
  description: "runs the example workflow",
  workflow: "#/workflows/dealroom_canvas_function",
  inputs: {
    message: {
      value: "{{data.message}}",
    },
    channel: {
      value: "{{data.channel}}",
    },
    description: {
      value: "{{data.desciption}}",
    },
  },
};

export default dealroomCanvasCreateTrigger;

@filmaj i think i have figured out the problem, the issue is with canvas_template_id
here the updated code of workflow
// deno-lint-ignore-file
import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts";

export const SampleCanvasWorkflowDefinition = DefineWorkflow({
  callback_id: "dr_canvas_function",
  title: "Canvas",
  description: "canvas",
  input_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message to send",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel to send message to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
    },
    required: ["message", "channel", "description"],
  },
  output_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message that was sent",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel the message was sent to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
      canvas_id: {
        type: Schema.slack.types.canvas_id,
        description: "Canvas link",
        title: "Canvas link",
      },
    },
    required: ["message", "channel", "description", "canvas_id"],
  },
});

SampleCanvasWorkflowDefinition.addStep(Schema.slack.functions.CanvasCreate, {
  title: "Dealroom Canvas",
  owner_id: "U05BJ6XSS82",
});

SampleCanvasWorkflowDefinition.addStep(
  Schema.slack.functions.ChannelCanvasCreate,
  {
    channel_id: SampleCanvasWorkflowDefinition.inputs.channel,
    canvas_create_type: "template",
    canvas_template_id: SampleCanvasWorkflowDefinition.outputs.canvas_id,
    content: [
      {
        "type": "expanded_rich_text",
        "elements": [
          {
            "type": "rich_text_section",
            "elements": [{ "type": "text", "text": "Hello new canvas" }],
          },
        ],
      },
    ],
  },
);

I am passing the canvas_id created in step 1 to step 2, but i am getting rectricted_action error in step 2, while the user_id i have provided is of workspace owner.

Also experiment this
import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts";

export const SampleCanvasWorkflowDefinition = DefineWorkflow({
  callback_id: "dealroom_canvas_function",
  title: "Dealroom Canvas",
  description: "dealroom canvas",
  input_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message to send",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel to send message to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
    },
    required: ["message", "channel", "description"],
  },
  output_parameters: {
    properties: {
      message: {
        type: Schema.types.string,
        description: "Message that was sent",
      },
      channel: {
        type: Schema.slack.types.channel_id,
        description: "channel the message was sent to",
      },
      description: {
        type: Schema.types.string,
        description: "description to send",
      },
      canvas_id: {
        type: Schema.slack.types.canvas_id,
        description: "Canvas link",
        title: "Canvas link",
      },
    },
    required: ["message", "channel", "description", "canvas_id"],
  },
});

// SampleCanvasWorkflowDefinition.addStep(Schema.slack.functions.CanvasCreate, {
//   title: "Dealroom Canvas",
//   owner_id: "U05BJ6XSS82",
// });

SampleCanvasWorkflowDefinition.addStep(
  Schema.slack.functions.ChannelCanvasCreate,
  {
    channel_id: SampleCanvasWorkflowDefinition.inputs.channel,
    content: [
      {
        "type": "expanded_rich_text",
        "elements": [
          {
            "type": "rich_text_section",
            "elements": [{ "type": "text", "text": "Hello new canvas" }],
          },
        ],
      },
    ],
  },
);

The user i am using is the workspace owner

What Slack plan is your worksapce on?

What Slack plan is your workspace on?

@filmaj I am on paid plan (pro)

Not sure, best to ask customer support by emailing<EMAIL_ADDRESS>

@filmaj i have one question:
suppose i have slack bot, and i other workspace W1 where slack bot is a part of:
now i can send a bot message in channel on workspace W1 using slack user of workspace W1, now using same access token, i want to create canvas in same channel, would it be possible to do so

@harshbhardwaj29 can you open a new issue with more details? I'd like to keep this issue focussed on the original issue submitted. Please include which SDK you are using to build the bot, and what you mean by 'sending bot message using slack user' - as that is unclear.

Expanded rich text documentation has landed which should be much improved. I will close this but if there are other issues here feel free to re-open or open a new issue.


Unable to load fips provider in second load getting init fail error

We are encountering an error while loading the fips.so module in a specific use case. The issue arises when using OpenSSL 3.0.15.
We are building a static library (SDK) that contains SDK-related APIs, along with the object files of OpenSSL's libcrypto.a and libssl.a. This allows us to deliver the SDK without including the libcrypto.a and libssl.a binaries.
The SDK provides a public load_fips API that loads the OpenSSL FIPS provider.
Use Case:

The consumer calls the load_fips API from the main process.
The consumer then calls the load_fips API again, but this time from their own shared library, which is loaded using dlopen.

During the second attempt to load fips.so, an error occurs at this line:
provider_seeding.c#L30
The error is triggered by a call from:
fipsprov.c#L551
Reason for Failure:
During the first FIPS provider load, a global variable c_get_entropy is assigned a function pointer.
However, when attempting to load the FIPS provider a second time, the function pointer does not match, causing the initialization to fail (init error). This behavior is caused by the following sanity check:
#define set_func(c, f) if (c == NULL) c = f; else if (c != f) return 0;
As a result, the second attempt to load the FIPS provider fails with an error.
Sample Logs:

Using OpenSSL libs from: openssl/lib/ossl-modules
Loading base provider...
Loading fips provider...
All providers have been loaded!
call_load_crypto 1
_init_vtabel
Using OpenSSL libs from: openssl/lib/ossl-modules
Loading base provider...
Loading fips provider...
Loading fips provider failed! => FAIL

Detailed error: init fail
call_load_ssl 0

Please provide assistance in resolving this issue. The attached sample code can be used to reproduce the problem.
test5.tar.gz

I'd suggest using a second library context for one of the two loads.


Added ability for default branch name to vary

What does this PR do?
Some of the newer repositories will have a default branch name of main. This PR lets the update-workflows script check for the default branch name and pass it to the workflow files on creation.
Checklists
Change log

[ ] The CHANGELOG has been updated, or
[ ] This PR does not include user-facing changes and doesn't require a CHANGELOG update

Test coverage

[ ] This PR includes new unit and integration tests to go with the code changes, or
[x] The changes in this PR do not require tests

Documentation

[ ] Docs (e.g. READMEs) were updated in this PR, and/or there is a follow-on issue to update docs, or
[x] This PR does not require updating any documentation

@ismarc Thanks for pointing that one out. I updated the PR to just use that variable.

@ismarc It looks like this may need to be reverted. Taking a closer look at the documentation that variable is only available when you are creating a workflow template in a GitHub org, which is not our use case here. The default environment variables available during workflow runs are listed here and unfortunately there is not one available for default branch name (I tried it with GITHUB_HEAD_REF but it doesn't seem to work).
Not sure if we want to try to switch to using org templates or if it is not really possible for our use case here. @jonahx was this something you considered and decided against or does it just not really fit with what we are trying to accomplish with this repo?


Added a Service Now configuration example to Secretless

What does this PR do?

Added a Service Now configuration example

What ticket does this PR close?
Connected to #1284
Checklists
Change log

[ ] The CHANGELOG has been updated, or
[x] This PR does not include user-facing changes and doesn't require a CHANGELOG update

Test coverage

[ ] This PR includes new unit and integration tests to go with the code changes, or
[x] The changes in this PR do not require tests

Documentation

[ ] This PR does not require updating any documentation, or
[x] Docs (e.g. READMEs) were updated in this PR, and/or there is a follow-on issue to update docs

(For releases only) Manual tests

[ ] Manually tested Keychain provider
[ ] Manually run Kubernetes-Conjur demo with a local Secretless Broker image build of your branch

@mdodell I can see you didn't get a review here, but let's let @JakeQuilty review when he's back tomorrow :)


Proper usage of react-cookie with Next.js

Hello,
I was wondering what was the proper usage of react-cookie when used with Next.js. After a lot of searching & debugging I found this comment: https://github.com/reactivestack/cookies/issues/204#issuecomment-487365880 and adapted the code for functional components (as well as removed the Container which seems to be deprecated in newer version of Next.js).
// _app.js
import App from 'next/app'
import { Cookies, CookiesProvider } from 'react-cookie'

export default function MyApp({ Component, pageProps, cookies }) {
  const isBrowser = typeof window !== "undefined"
  return (
    <CookiesProvider cookies={isBrowser ? undefined : new Cookies(cookies)}>
      <Component {...pageProps} />
    </CookiesProvider>
  )
}

MyApp.getInitialProps = async (appContext) => {
  const appProps = await App.getInitialProps(appContext)
  return { ...appProps, cookies: appContext.ctx.req?.cookies }
}

// index.js
import { useEffect } from 'react'
import { useCookies } from 'react-cookie'

export default function Home() {

  const [cookies, setCookie] = useCookies()

  useEffect(() => {
    if (!cookies.myValue) {
      setCookie('myValue', 'a')
    }
  }, [])

  const updateMyValue = event => setCookie('myValue', event.target.value)

  return (

      My Value ({cookies.myValue})
      <select id="my-value" value={cookies.myValue} onChange={updateMyValue}>
        <option value="a">A ({cookies.myValue})</option>
        <option value="b">B ({cookies.myValue})</option>
        <option value="c">C ({cookies.myValue})</option>
      </select>

  )
}

It seems to be working but I wanted to know if this was correct. I feel like the useEffect is a bit of a hack but it seems necessary to force a rendering in case the cookie value is not set.
Would be nice to have this example (or a correct one) in the docs!
Thanks,
nyg

same question as well, Here is my thought:

Basically we need to transform the request header cookie string to an universal cookie object, then put it to the CookiesProvider in _app.js, I think our basic understanding is correct
I tried to add it as an middleware in nextjs12 but nextjs12 middleware interface works on Fetch API object, I could not see any way to add universal-cookie-express or universal-cookie to transform the cookies header to a cookie object and passes it to the app context.

I have tried to add sth like this in nextjs12 middleware, but the _app.js context could not see this object
export function middleware(req, ev) {
    let res = NextResponse.next();
    req.universalCookies = new Cookies(req.headers.cookie || '');
    return res
}

Another thought is that by looking at the universal-cookies-express source code , we could see the it includes addChangeListener, I am not sure if it's necessary or not in nextjs use case
If universal-cookie constructor is set in getInitialProps, then it will induces a run time error => TypeError: cookies.getAll is not a function. And that's why I come here to look for some solution.

This following code will induces a run time error cookies.getAll is not a function
myApp.getInitialProps = async (appCtx) => {
    const appProps = await App.getInitialProps(appCtx);
    const universalCookies = new Cookies(appCtx.ctx.req.headers.cookie || "");
    universalCookies.addChangeListener((change) => {
        if (!appCtx.ctx.res.cookie) {
            return;
        }

        if (change.value === undefined) {
            appCtx.ctx.res.clearCookie(change.name, change.options);
        } else {
            const expressOpt = Object.assign({}, change.options);
            if (expressOpt.maxAge && change.options && change.options.maxAge) {
                // the standard for maxAge is seconds but express uses milliseconds
                expressOpt.maxAge = change.options.maxAge * 1000;
            }

            appCtx.ctx.res.cookie(change.name, change.value, expressOpt);
        }
    });
    return {
        ...appProps,
        userAgent: appCtx.ctx.req.headers["user-agent"],
        cookies: universalCookies,
    };
};

Remarks: tried the OP method in my code base, confirm that it is a working solution without the run time error

The OP example was super useful but I found that appContext.ctx.req.cookies was not defined. I took a look at the 204 comment referenced above and combined the best of both ideas for a working solution.
The following seems to work for me with react 17.0.2 and nextjs 11.0.0:
import App, { AppContext } from "next/app";
import { Cookies, CookiesProvider } from "react-cookie";
import "../styles/app.scss";

export default function MyApp({ Component, pageProps, cookies }) {
  const isBrowser = typeof window !== "undefined";
  return (
    <CookiesProvider cookies={isBrowser ? undefined : new Cookies(cookies)}>
      <Component {...pageProps} />
    </CookiesProvider>
  );
}

MyApp.getInitialProps = async (appContext: AppContext) => {
  const appProps = await App.getInitialProps(appContext);
  return { ...appProps, cookies: appContext.ctx.req?.headers?.cookie };
};

@schof Hey,
I think that you had to use req.headers.cookie instead of req.cookies because the latter doesn't exist in Next.js 11. In version 12, req.headers.cookie is a string while req.headers is its parsed version, an object.
I will edit my answer to include this difference, as well as add the use of the optional chaining operator for req because it isn't available on the client side.
However, if req is present, my guess is that headers will also be present, so no need for headers?.

There is a library called next-cookies that is also based on universal-cookie.

One thing to note about the above approaches is that this will expose all of the cookies into the page (including secure cookies/http only) via window.__NEXT_DATA__.props.
You'll want to only pass the specific, safe cookies as props to avoid potential XSS attacks from accessing session secrets etc.

Adding a custom getInitialProps in your App will disable Automatic Static Optimization in pages without Static Generation.

For my part I preferred to use a custom document:
_document.jsx:
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { Cookies } from 'react-cookie';

export default class MyDocument extends Document {
  static async getInitialProps(ctx) {
    const originalRenderPage = ctx.renderPage;

    ctx.renderPage = () =>
      originalRenderPage({
        enhanceComponent: Component => {
          Component.universalCookies = new Cookies(ctx.req.headers.cookie);
          return Component;
        },
      });

    const initialProps = await Document.getInitialProps(ctx);

    return initialProps;
  }

  render() {
    return (

          <NextScript />

    );
  }
}

_app.jsx:
function MyApp({ Component, pageProps }) {
  return (
    <CookiesProvider cookies={Component.universalCookies}>
      <Component {...pageProps} />
    </CookiesProvider>
  );
}

export default MyApp;


skymarshal is incompatible to the latest version of ply

Describe the bug
In the latest version of ply API has changed (and that version is here for pretty long time). But the code in the repo (skymarshal component) still uses the API of the old version.
To Reproduce
Steps to reproduce the behavior, e.g.:

git clone https://github.com/dabeaz/ply
cd ply
python3 -m build -nwx .
sudo pip3 install --upgrade ./dist/*.whl
cd ../
git clone https://github.com/symforce-org/symforce
cd third_party/skymarshal
python3 -m buld -nwx .
sudo pip3 install --upgrade ./dist/*.whl
cd ../../
python3 -m buld -nwx .

Expected behavior
Should be compatible to all the new and the old API of ply.
Environment (please complete the following information):

OS and version: Debian sid
Python version 3.11
SymForce Version c3d2f3c97d77e8d9015276cd9ae7b080df646fc3

We support the latest released version of ply on PyPI that I'm aware of, which is 3.11: https://pypi.org/project/ply/#history
We'd potentially be open to also supporting from-source installs of unreleased versions of ply, or some more recent release if there is one that I'm missing, if it isn't too annoying to support both versions (I don't think we'd drop support for the released version on PyPI).  We'd be happy to take a look if you want to submit a PR, I'm not really sure how involved it is to support both


Update Docker image tag creation

Update Docker image tag creation

Generate sha tag for main branch
generate branch name tag for every other branch

@sysrex, how should we proceed here?

Do we still need this?

bumping this @sysrex

We still require this to have the docker image tag match the commit sha, this is imperative to be able to continue unobstructed working on the devnet.


Use gps_speed to estimate speed

Hi professor,
I found that the speed read from the state is not the vehicle's real velocity and it is always near 0. So I use the gps_speed instead, and it is good now.

Looks good.


Bootstrap 4 togglable nav just does not work have you any idea why?

Before opening an issue:

Search for duplicate or closed issues
Validate and lint any HTML to avoid common problems
Prepare a reduced test case for any bugs
Read the contributing guidelines

When asking general "how to" questions:

Please do not open an issue here
Instead, ask for help on StackOverflow, IRC, or Slack

When reporting a bug, include:

Operating system and version (Windows, Mac OS X, Android, iOS, Win10 Mobile)
Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
Reduced test cases and potential fixes using JS Bin

When suggesting a feature, include:

As much detail as possible for what we should add and why it's important to Bootstrap
Relevant links to prior art, screenshots, or live demos whenever possible

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via JS Bin or CodePen and report back with your link, Bootstrap version, and specific browser and OS details.

For folks submitting with default issue template, I'm always going to close the issue.


Define Extension Field for Mersenne 31

[x] Define General API of Extension Field
[x] Define extension field for Mersenne 31
[x] Tests

What has been Added:

Define trait Frobenius, OEF, and OptimalExtendable according to Plonky2 (mod.rs)
Define QuadraticOef and CubicOef with default implementation and distribution trait (quadratic.rs, cubic.rs)
Define quadratic and cubic extension for Mersenne31Complex (For simplicity, I used w=(i+2) for quadratic extension and w=5i for cubic extension) (extension.rs)
Copy two tests from Plonky2 and synthesis them in field_testing and update tests for all defined fields

Question:
Do we need another optional trait for Frobenuis? Created a new issue https://github.com/Plonky3/Plonky3/issues/90

Hm, another complication is, how should we handle traits such as TwoAdicField? I guess we could just always have QuadraticOef implement it, with params specified in OptimallyExtendable, similar to Plonky2. But I think we'll end up with other optional traits, like a ComplexExtensionField for irreducible i^2 + 1. Should we have other traits on top of OptimallyExtendable for such optional things?
cc @unzvfu @wborgeaud who might also have thoughts on the design

Could we rename something like Extendable -> OptimallyExtendable, and QuadraticExtension -> QuadraticOef?
Sure, I think this is reasonable
But I think we'll end up with other optional traits, like a ComplexExtensionField for irreducible i^2 + 1.
Yes, I am also thinking about this, a quadratic oef should be a special case of quadratic extension and use the Frobenius-based algorithm.

@dlubarov thank you for checking.  Currently, I marked this PR as WIP so we can discuss some general design ideas. Once everything is settled, I will mark it ready for review.

@wborgeaud would you mind taking a look when you have time later?
I guess a remaining question is the API for Frobenius (it's commented out in this branch currently). Would it make sense to have a fn frobenius() in Field itself? I think arkworks does that.

I guess a remaining question is the API for Frobenius (it's commented out in this branch currently). Would it make sense to have a fn frobenius() in Field itself? I think arkworks does that.

I'm not sure we would need an explicit Frobenius. I think the only places where it is used in Plonky2 is to compute inverses in OEFs, but this PR gives alternative implementations that doesn't use the Frobenius.
On the other hand, it would be pretty easy to implement it since it's the identity for prime fields. Also, since the Frobenius in the complex extension is the conjugate, we could remove the conjugate() function of Mersenne31Complex which could be a bit cleaner.

Thanks for reviewing. There is another reason I did not implement the frobenuis. If we check the frobenuis inverse algorithm, we can find the computation of r is based on the order of the tower field divided by the base field. In our case, this means for Mersenne31 complex's tower field, the r-value is p^2+1 for the quadratic field and p^4+p^2+1 for the cubic field, this difference makes a universal implementation difficult given we only expose the degree of the last irreducible poly(2,3). This is the reason I suggest only implement frobenuis staff for prime field and we can use this trait in inverse() is implemented.

@LKY-stephen Hi. One observation to start: Please don't force-push to the branch. This is almost never necessary and should absolutely be avoided on public repos since it breaks the repo on others' machines. Much better to just have the extra commits rather than rewrite the history.

@LKY-stephen Hi. One observation to start: Please don't force-push to the branch. This is almost never necessary and should absolutely be avoided on public repos since it breaks the repo on others' machines. Much better to just have the extra commits rather than rewrite the history.

Oh, sorry. I wanted to keep the commit history clear and meaningful after merging. I will do this just before merging.

@LKY-stephen Hi. One observation to start: Please don't force-push to the branch. This is almost never necessary and should absolutely be avoided on public repos since it breaks the repo on others' machines. Much better to just have the extra commits rather than rewrite the history.

Oh, sorry. I wanted to keep the commit history clear and meaningful after merging. I will do this just before merging.

PRs are (or should be) squashed before merging anyway, so the clean commit history is not that important.

@LKY-stephen Hi. One observation to start: Please don't force-push to the branch. This is almost never necessary and should absolutely be avoided on public repos since it breaks the repo on others' machines. Much better to just have the extra commits rather than rewrite the history.

Oh, sorry. I wanted to keep the commit history clear and meaningful after merging. I will do this just before merging.

PRs are (or should be) squashed before merging anyway, so the clean commit history is not that important.

If this repo prefers to squash and merge style then it is not necessary.

@unzvfu, thanks for reviewing and suggesting improvements. I have merged them. Some outdated comments are also updated, together with some sanity checks about from_base_slice.

I think this is a good opportunity to use a more appropriate name than was used in Plonky2.

I also feel OEF is misleading especially since the first instance is based on MersenComplex, which is not a prime field. @dlubarov also mentioned the name issue. Given that OEF has gone, if we directly extend from the base field's trait, Maybe we can have two layers' trait? one base Extendable(which can help us support non-binomial cases in the future according to the previous comment) and one BinomialExtendable (which is for this PR). We can have other XXExtenddable for other cases if needed. I am OK with other suggested names.

There is the potential for subtle bugs in the extension field code caused by glossing over the fact that representations of extension fields are not canonical
For this issue, I think transporting between different machines is not the purpose of the mentioned trait. Such a task needs a more rigorous serialization/deserialization scheme to handle. The *_base_slice functions are more like a way to assemble or dissemble the extension field for purposes like sampling or hashes.

@unzvfu, thanks for reviewing and suggesting improvements. I have merged them. I also add a commit for updating the outdated comments and a missing sanity check about from_base_slice. I forced pushed this commit a little bit for handling the CI fmt error, hope this will not bother anyone.

Thank you! This is good to go now I think.

I think this is a good opportunity to use a more appropriate name than was used in Plonky2.

I also feel OEF is misleading especially since the first instance is based on MersenComplex, which is not a prime field. @dlubarov also mentioned the name issue. Given that OEF has gone, if we directly extend from the base field's trait, Maybe we can have two layers' trait? one base Extendable(which can help us support non-binomial cases in the future according to the previous comment) and one BinomialExtendable (which is for this PR). We can have other XXExtenddable for other cases if needed. I am OK with other suggested names.

Let's discuss this further in a separate issue/PR. I've opened #101 for that purpose.

There is the potential for subtle bugs in the extension field code caused by glossing over the fact that representations of extension fields are not canonical

For this issue, I feel communicating between different machines is not the purpose of the mentioned trait. Such a task needs a more rigorous serialization/deserialization scheme to handle. The *_base_slice functions are more like a way to assemble or dissemble the extension field for purposes like sampling or hashes.

Agreed. We are deferring addressing this issue for now, as discussed in #96.


Nothing appears after publishing web app (free site for 24 hours)

I've created free 24 hours Azure app (ASP.NET Core), but browser shows empty screen.

Can you clarify how you created the app? ASP.NET Core is not currently an option on https://tryappservice.azure.com/

File -> New Project -> ASP.NET Core Web Application (.NET Framework) -> Build -> Publsh WebApplication1. So, I publish this app as it is, i.e. I did no changes to it. I import the profile which was given to me and published it. Then run the given URL => empty browser window.

Can you share your site name to help investigation? Thanks.

http://d1abf02f-0ee0-4-231-b9ee.azurewebsites.net

If you use Kudu Console to look at the files, there is a log with detailed errors in d:\home\logfiles. Here is a piece of it:
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
      An unhandled exception has occurred: Unable to resolve service for type 'BonusApp.Data.ApplicationDbContext' while attempting to activate 'Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore`3[BonusApp.Models.ApplicationUser,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole,BonusApp.Data.ApplicationDbContext]'.
System.InvalidOperationException: Unable to resolve service for type 'BonusApp.Data.ApplicationDbContext' while attempting to activate 'Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore`3[BonusApp.Models.ApplicationUser,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole,BonusApp.Data.ApplicationDbContext]'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.Service.PopulateCallSites(ServiceProvider provider, ISet`1 callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.Service.CreateCallSite(ServiceProvider provider, ISet`1 callSiteChain)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetResolveCallSite(IService service, ISet`1 callSiteChain)

Note that this is likely not tryappservice specific, but probably something you'd see as well on a regular Azure Web App.

@JohnyL  Closing the issue. Feel free to reopen if this is still relevant


ENH: Use skbio.util.find_duplicates

In the last minor release of skbio, qiita_db.util.find_repeated was ported
into skbio.util.find_duplicates.
Fixes #854

Coverage decreased (-0.02%) to 78.66% when pulling 3c1bebfc358d470ea9fd35e4b1ca612d85a2181c on ElDeveloper:issue-854 into d243968488bdea9cd0bb7fcef4402e79a0c75bf6 on biocore:master.

:+1:


After registration i should be redirected to login

After registration i should be redirected to login

Hi @leonieherma1 currently when you do click on "done" (When you finish you TLOS creation account) you see this login screen

So you hope a diferent screen?

@jmgayosso no that is good!


Support setting ContactsContract.DataColumns.IS_READ_ONLY when inserting any NewDataEntity (e.g. name, email, phone, etc)

Problem
As discussed in #301, there is currently no way to specify the value of ContactsContract.DataColumns.IS_READ_ONLY when inserting data rows using the insert APIs provided in this library.
Solution
Add isReadOnly property to NewDataEntity interface and incorporate it when inserting new data rows.

Note that including the IS_READ_ONLY column in the projection array of queries result in an exception being thrown. This means that we are unable to read the value of it and in turn we are unable to add the isReadOnly property to the more generalized DataEntity. However, it is possible to refer to the column in selection/WHERE clause of queries. We can at least provide an extension function to check its value; #307

[x] Create public Fields.DataIsReadOnly, which should be added to Fields.All list but should NOT be included in the final projection array passed to any query APIs!
[x] Check that Fields.DataIsReadOnly can be used in WHERE clauses of query and delete APIs
[x] Add extension function to NewRawContact that sets the read-only property of all data in it.
[x] Update relevant in-code documentation.
[x] Document the side-effects of setting this to true and that it should not really be used in general application use cases.
[x] Update relevant docs (about-api-entities.md)
[x] Update gh-page branch
[x] Close #311

🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥
This is now release in 0.3.1!
🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥


Issued ID Token does not contain email address

This requires the following changes:

Request the email scope when logging in via the CLI. See carbynestack/cli#44.
Verifying email addresses when creating users. See carbynestack/thymus#35.


About VS

How do I set up if I want to try two trained teams of high-level NPCS against each other?
Is there a tutorial where you can download and use anyone's contributed AI?

You can use play_game script with --players= flag specifying different trained agents to control left/right teams.  See here: https://github.com/google-research/football/#play-vs-pre-trained-agent
There is no official repo to download "anyones" contributed AI.

Please reopen if you have any followup questions.

Also https://github.com/google-research/football/blob/master/gfootball/doc/multi_agent.md


Build with Xcode14.3 RC2 get error when enable _EXPERIMENTAL_CLANG_EXPLICIT_MODULES .

Description
In Xcode 14.3 RC2, when _EXPERIMENTAL_CLANG_EXPLICIT_MODULES is enabled, module becomes a keyword, which causes build failures.

Clang and the build system support a new mode for building module dependencies called explicit modules which improves build performance, reliability, and correctness. The new mode is opt-in, and can be enabled by setting _EXPERIMENTAL_CLANG_EXPLICIT_MODULES as a user-defined build setting in C and Objective-C projects which build with modules enabled. (104438594)

React Native Version
0.71.4
Output of npx react-native info

System:
OS: macOS 13.3
CPU: (10) arm64 Apple M1 Pro
Memory: 959.05 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.8.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /opt/homebrew/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.0 - /Users/kkk/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.12 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: ^0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce
Any Demo that relies on React-CoreModule opens _EXPERIMENTAL_CLANG_EXPLICIT_MODULES and builds with Xcode14.3RC2
Snack, code example, screenshot, or link to a repository
Any Demo that relies on React-CoreModule opens _EXPERIMENTAL_CLANG_EXPLICIT_MODULES and builds with Xcode14.3RC2

duplicate https://github.com/facebook/react-native/issues/36739


Rx get fresh bindings

Addresses #118 .
Added extension functions on Store that are Rx equivalents to the existing get and fresh extension methods. Also as discussed a quick unit test to show the usagage.
I don't mind about the naming of the extension functions. Whatever works for you. Sadly they can't also be called get and fresh even though they return Singles instead of suspending functions. Actually it appears they can! However, I do appreciate that it might be clearer if they were named differently. Again, don't mind.

Hi @eyalgu thanks for the review and the suggestions. I've renamed the extension functions and pushed a new change but this seems to have broken the build now :crying_cat_face: . I'm not entirely sure why or how best to resolve. Any tips? Happy to address any further comments once I know what to do. Cheers.

The failure you're getting is not because the rename but rather because you merge with master. Adding @ExperimentalStdlibApi to RxSingleStoreExtensionsTest should fix this issue.
From the log:
e: /home/travis/build/dropbox/Store/store-rx2/src/test/kotlin/com/dropbox/store/rx2/test/RxSingleStoreExtensionsTest.kt: (29, 9): This declaration is experimental and its usage must be marked with<EMAIL_ADDRESS>or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
e: /home/travis/build/dropbox/Store/store-rx2/src/test/kotlin/com/dropbox/store/rx2/test/RxSingleStoreExtensionsTest.kt: (29, 22): This declaration is experimental and its usage must be marked with<EMAIL_ADDRESS>or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
e: /home/travis/build/dropbox/Store/store-rx2/src/test/kotlin/com/dropbox/store/rx2/test/RxSingleStoreExtensionsTest.kt: (30, 14): This declaration is experimental and its usage must be marked with<EMAIL_ADDRESS>or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
e: /home/travis/build/dropbox/Store/store-rx2/src/test/kotlin/com/dropbox/store/rx2/test/RxSingleStoreExtensionsTest.kt: (49, 14): This declaration is experimental and its usage must be marked with<EMAIL_ADDRESS>or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
e: /home/travis/build/dropbox/Store/store-rx2/src/test/kotlin/com/dropbox/store/rx2/test/RxSingleStoreExtensionsTest.kt: (50, 14): This declaration is experimental and its usage must be marked with<EMAIL_ADDRESS>or '@OptIn(kotlin.ExperimentalStdlibApi::class)'

Woohoo! It passes, thanks @eyalgu for the tip.
For future reference I couldn't get this to break locally so is there anything I should do differently in my workflow to trigger these errors before I push? I was running the check Gradle task which was passing.

For future reference I couldn't get this to break locally so is there anything I should do differently in my workflow to trigger these errors before I push? I was running the check Gradle task which was passing.

I'm not sure, @ychescale9 You bumped the Kotlin version right? do you have any idea why this error only shows up in CI?

@eyalgu @mezpahlan hmm I do get the same errors locally without @ExperimentalStdlibApi if I run ./gradlew store-rx2:check.

Hmmmm... Well hopefully I'll get around to making some more contributions soon so will double check then. Thanks both. 🤗


FDSC loses key when closing Safari

I recently had issues with FDSC, because I had to grant the permission again and again. (see chat)
Now, I found out, when exactly this happens: When I restart Safari, the local storage for the FDSC-script (and only for this!) is deleted which results in an empty fdsc_msWriteToken.
Is there any additional option, I need to set in Tampermonkey to keep the token in the storage?

This sounds like a browser thing to me. Local storage is a browser API that we leverage; is your browser set to discard data on exit?

I haven't used FDSC on my MacBook's Safari since quite a lot of time, but IIRC (I may be wrong), it worked properly. I'll check this during spam-o-clock tomorrow.

I have other scripts installed and they don't lose their stored data. I'll test it with an other browser this weekend

I've grepped the FDSC code for "local" and there doesn't seem to be any code to delete stuff from local storage. The only time it writes to the storage is when you enter the authentication token. I've never seen this issue happen either to me (FF/Win10/barely ever restart) or in the chat.
That being said, FDSC uses some cross-domain storage and I'm not entirely sure how it works. Others are welcome to investigate further.

@honnza effectively, all the local storage is actually stored on the metasmoke domain; other domains query it.

I could not reproduce it with Chrome 56.0.2924.87 with the latest version of Tampermonkey. :-/

I use Safari, and this happens to me as well.


Symbols not defined in boostrap/install

What's wrong
Bootstrap script yields:
error: straight.el bootstrap failed: Symbol’s function definition is void: straight--windows-os-p

If the only invocation of this function is removed from the bootstrap file is removed, then other variables/functions appear to be undefined.
Directions to reproduce
init.el
(let ((bootstrap-file (concat user-emacs-directory "straight/bootstrap.el"))
      (bootstrap-version 2))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
       "https://raw.githubusercontent.com/raxod502/straight.el/master/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(setq package-enable-at-startup nil
      straight-use-package-by-default t
      straight-vc-git-default-protocol 'ssh)
(straight-use-package 'use-package)
(require 'use-package)
(setq use-package-enable-imenu-support t)
(setq use-package-ensure-function 'straight-use-package-ensure-function)

Version information

Emacs version: Emacs 26.3
Operating system: NixOS

Thank you for the report. It should be fixed now.

This thread is being closed automatically by Tidier because it is labeled with "waiting on response" and has not seen any activity for 90 days. But don't worry—if you have any information that might advance the discussion, leave a comment and I will be happy to reopen the thread :)

This thread is being closed automatically by Tidier because it is labeled with "waiting on response" and has not seen any activity for 90 days. But don't worry—if you have any information that might advance the discussion, leave a comment and I will be happy to reopen the thread :)

Hello, it has been more than 3 years but I am finding the same problem.
I am using emacs29.1 and emacs28.1 (different machines). In my init I have:
  (defvar bootstrap-version)
  (let ((bootstrap-file
	 (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
	(bootstrap-version 6))
	 (expand-file-name
	  "straight/repos/straight.el/bootstrap.el"
	  (or (bound-and-true-p straight-base-dir)
	      user-emacs-directory)))
	(bootstrap-version 7))
    (unless (file-exists-p bootstrap-file)
      (with-current-buffer
	  (url-retrieve-synchronously
	   "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
	   'silent 'inhibit-cookies)
	(goto-char (point-max))
	(eval-print-last-sexp)))
    (load bootstrap-file nil 'nomessage))

At first run (empty .emacs.d directory except from init) everything works fine, but if i try to evaluate this snippet after it gives:
progn: Symbol’s function definition is void: bootstrap-version
Moreover, i backup my entire .emacs.d thru git. When doing so .emacs.d/straight/repos/straight.el gets committed as an empty directory and thus the other devices give 'No such file or directory: .../bootstrap.el'.
This is not fixed by the (unless (file-exists-p bootstrap-file) [...], not sure why.
Adding straight.el as a git submodule also doesn't fix the backup-problem.


Pre built Border Router image out of step with documentation

At time of writing documentation at https://openthread.io/guides/border-router/docker/run suggests starting the docker container with
docker run --sysctl "net.ipv6.conf.all.disable_ipv6=0
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
-p 8080:80 --dns=<IP_ADDRESS> -it --volume
/dev/ttyACM0:/dev/ttyACM0 --privileged openthread/otbr
--radio-url spinel+hdlc+uart:///dev/ttyACM0
This is ok for those who have built their own image, however for anyone starting out using the guide and the "pre built" image via
"docker pull openthread/otbr:latest"
As listed on https://openthread.io/guides/border-router/docker , the --radio-url is not yet supported.
For the pre built image, docker_entrypoint.sh still uses the older style --ncp-path
function parse_args()
{
while [ $# -gt 0 ]
do
echo $1
case $1 in
--ncp-path)
NCP_PATH=$2
shift
shift
;;
I think the fix would be to update the pre built image,  (it has been 16 months?)
$docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
openthread/otbr     latest              e7f23b10eb7b        16 months ago       1.32GB
Thanks in advance

@jwhui is it possible to automatically update the latest tag automatically?

This is a duplicate of #452. I'll take a look an implementing that.


casting fish key doesnt work

fishing key  is  1   and the same  in game    but when start   nothing happend
[00:56:22] [WIN1] Casting fishing...   [here said    Casting fishing  , but  nothing happend  ]
[00:56:24] [WIN1] Looking for the bobber...

have you tried to run the bot as admin?

Did you equip a fishing pole? I've made that mistake.


Update rx-includes.hpp

vector include in #line144

Hi @freezestudio,
good catch, it looks the vector included twice.
Thank you for the PR!

Merged!


Sync tab group showing blank screen when using multiple Firefox windows

Hi,
I use this extension everyday and, since I have a multi-screen setup, I usually have 2 Firefox windows opened (one for "static" stuff to keep an eye on, another one for browsing).
Before yesterday (and the 0.6.3 version) I was able to use Sync tab group on both windows, with the same groups synchronized : it was perfect.
Today when I open one Firefox window, everything is fine. But as soon as I opened a second Firefox window, the extension "crash" and dropdown menu + group manager page are showing a blank screen with the following error in my dev console.
TypeErrorcolumnNumber: 13fileName: "moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/share/components/groups/grouplist.js"lineNumber: 100message: "this.props.groups[index] is undefined"stack: "render@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/share/components/groups/grouplist.js:100:13\nh@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:130:362\nbeginWork@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:134:70\nd@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:158:393\nf@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:159:214\ng@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:159:462\nt@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:167:3\nx@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:166:247\nr@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:164:368\nv@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:163:278\nenqueueSetState@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-dom.production.min.js:124:386\np.prototype.setState@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react.production.min.js:18:82\np/</a</p.prototype.onStateChange@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/react-redux.min.js:1:4133\na@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/lib/js/redux.min.js:1:1247\npopupMessenger@moz-extension://d890501e-3c65-42d7-9c0c-e7854a97d052/share/components/groups/wrapper/group-actions.js:129:7\n"__proto__: {…}constructor: function TypeError()message: ""name: "TypeError"stack: ""__proto__: {…}constructor: function Error()message: ""name: "Error"stack: Getter & SettertoSource: function toSource()toString: function toString()__proto__: {…}__defineGetter__: function __defineGetter__()__defineSetter__: function __defineSetter__()__lookupGetter__: function __lookupGetter__()__lookupSetter__: function __lookupSetter__()constructor: function Object()hasOwnProperty: function hasOwnProperty()isPrototypeOf: function isPrototypeOf()propertyIsEnumerable: function propertyIsEnumerable()toLocaleString: function toLocaleString()toSource: function toSource()toString: function toString()valueOf: function valueOf() react-dom.production.min.js:162:310

I'm sorry for the simple and ugly copy-paste of the error. I don't even know if it helps, I'm not really a web developer ^^ Let me know if I can provide more/better information.

FYI I revert to 0.6.2 and it works fine. So this is related to a change in the last release I guess :wink:

I got something like this
Array [ Object, Object, Object, Object, Object, Object, Object ]
undefined

It returns an array objects with those values
[
  {
    "index": 0,
    "position": 1
  },
  {
    "index": 1,
    "position": 5
  },
  {
    "index": 2,
    "position": 0
  },
  {
    "index": 3,
    "position": 4
  },
  {
    "index": 4,
    "position": 2
  },
  {
    "index": 5,
    "position": 3
  },
  {
    "index": -1,
    "position": -1
  }
]

This is the problem:
{
    "index": -1,
    "position": -1
}

Those values are normally well set after a change occurred in your groups (Open a new tab in a group, close a tab...).

Can you confirm me that you have seen no other error than the one you paste ?
Have you tried to open/close tabs in a group to see if things get fixed ?

By the way, I found other bugs in a function but your problem is the index equal to -1.

I have similar problem, and has the same result as @pichouk
Also, I got a lot of error message as below
GroupManager.setTabsInGroupId failed; too much recursion groupmanager.js:433:5
	GroupManager.setTabsInGroupId moz-extension://c7153308-964d-4907-bd24-3a0f5455ae99/background/core/groupmanager.js:433:5
	TabManager.updateTabsInGroup moz-extension://c7153308-964d-4907-bd24-3a0f5455ae99/background/core/tabmanager.js:131:5

@allenyllee you caught something interesting, any other errors maybe ?
Also, do you remember how the error appeared, what did you do ?
I am not able to reproduce it on my test session...

@Morikko Just click Group Invisible

And things go down:

Still only with this error ?
GroupManager.setTabsInGroupId failed; too much recursion groupmanager.js:433:5
On my session the button is working well.

BTW, 0.6.2 doesn't have above error message

On which FF version and which OS ?

I have the issue on Firefox 58.0.1 on GNU/Linux (tested on Debian Stretch and Ubuntu 16.04). It doesn't change anything if I try to open/close tab on my group and I was not able to find other error message.

Fixed in v0.6.4
If it doesn't work directly on restart, uncheck/check the preference Remove empty groups in Preferences > Settings.

It works on Windows 10, Firefox 59.0.2
BTW, the tabs number had disappeared....

Hi !
Yes i upgraded again to 0.6.4 and it works fine now ! :smiley:
Thanks for the fix (and your reactivity :+1: ) !

BTW, the tabs number had disappeared....

Good catch, It will be fixed in the next release.


Autocompletion doesn't work after a few moment.

When I code during 10 minutes, autocompletion says "Loading ..." and I don't know why.
I have to restart VS code and autocompletion works great again. But after a few moment, the autocompletion stop working. Fix autocompletion please.

VSCode Version: Code 1.9.1 (f9d0c687ff2ea7aabd85fb9a43129117c0ecf519, 2017-02-09T00:26:45.394Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

html-snippets
abusaidm
0.1.0

python
donjayamanne
0.5.8

cpptools
ms-vscode
0.10.1

java
redhat
0.0.10

vscode-icons
robertohuertasm
7.2.0

Steps to Reproduce:

Facing same issue. I'm not getting any errors in dev console when it stops working either.
It does help though if I start it with --disable-extensions, but the nature of the problem is unpredictable so I'm not sure.

What plugins do you use ? Because the bug doensn't come from VS code.

I'm trying to identify which by slowly enabling one by one, but like I said since the nature of the problem is unpredictable I might not uncover anything useful.
Currently using:
Asuka.insertnumbers-0.9.1
bibhasdn.git-easy-1.9.1
bibhasdn.unique-lines-1.0.0
donjayamanne.githistory-0.1.5
HookyQR.beautify-0.7.4
sleistner.vscode-fileutils-2.3.3
spoonscen.es6-mocha-snippets-0.0.2
alefragnani.Bookmarks-0.10.2

Currently disabled:
dbaeumer.vscode-eslint-1.2.5
esbenp.prettier-vscode-0.5.0
lkytal.FlatUI-1.1.0
ms-vscode.Theme-TomorrowKit-0.1.3
PeterJausovec.vscode-docker-0.0.11
streetsidesoftware.code-spell-checker-0.14.6
sysoev.language-stylus-1.6.0

So far I suspect eslint to be causing it but like I said, I could be wrong.

@laggingreflex @gquittet Which language are you using?

I use Java. My plugins are:

C/C++

Language Support for Java by RedHat

Python

vscode-icons

Does the same issue occur outside of a Java file?

I don't know because I've never used Visual Studio Code outside a Java file.

Can you please try?

I'm using javascript. Would tslog be helpful? here's .tslog (of last 1000 lines) after it stopped working. tslog.txt

@laggingreflex That tslog appears to be healthy.
I will close this issue since it seems to be a problem with the Java extension. @gquittet Please file an issue in https://github.com/redhat-developer/vscode-java/issues

I'm not using java, it still stops working for me from time to time.

ping @jrieken

Start VS Code from the console with the --logExtensionHostCommunication flag and attach the trace here. Finding out which extension goes crazy is complicated unless some one want to attach a debugger. The communication trace could give a hint

Where are the Visual Studio Code logs on Windows ?

[7868:5712:0220/205020:ERROR:crash_service.cc(295)] could not start dumper
[4548:14144:0220/205020:VERBOSE1:crash_service_main.cc(78)] Session start. cmdline is [--reporter-url=https://ticinocrashreporter.azurewebsites.net/crash --application-name=VSCode "--crashes-directory=C:\Users\gquit\AppData\Local\Temp\VSCode Crashes" --v=1]
[4548:14144:0220/205020:VERBOSE1:crash_service.cc(142)] window handle is 000B007C
[4548:14144:0220/205020:VERBOSE1:crash_service.cc(284)] pipe name is \.\pipe\VSCode Crash Service
dumps at C:\Users\gquit\AppData\Local\Temp\VSCode Crashes
[4548:14144:0220/205020:VERBOSE1:crash_service.cc(288)] checkpoint is C:\Users\gquit\AppData\Local\Temp\VSCode Crashes\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[4548:14144:0220/205020:ERROR:crash_service.cc(295)] could not start dumper

@gquittet It should have printed something onto the dev tools console. Hit F1 > Toggle Developer Tools > Console and check for output there. Thanks

There's a bug when I open a java file. I'll code during 30 minutes and I'll see the other bugs.

shell.ts:437 Illegal argument, contents must be defined : Error: Illegal argument, contents must be defined
at new e (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:11:7536)
at asHover (C:\Users\gquit.vscode\extensions\redhat.java-0.0.10\node_modules\vscode-languageclient\lib\protocolConverter.js:71:16)
at process._tickCallback (internal/process/next_tick.js:103:7)

@gquittet The stacktrace point to an issue with the java-extension. Please file the issue against them. Thanks and Happy Coding


Remove unnecessary type annotations.

Scoring collection conversions should hopefully make these coercions unnecessary now.

@swift-ci Please smoke test


Create a new parameter to store config for prediction tools

https://github.com/valory-xyz/mech/pull/95#pullrequestreview-1556567471

I think it would complicate things way more than the current setup, right now we just pass the api keys to the tool, changing this would mean either:

we pass an additional params dict to the tool (would need changing all the tools)
we extend api keys with params at run time (to avoid changing all the tools)

I think it might make sense to add params to the tools at some point, but at this point I think its not worth it.


Adding aliases for OWNERS

I added OWNERS_ALIASES file with reviewers/approvers for prow.
In the future we should have aliases for all the groups.
I specified label to add for any change happening in prow folder
I also specified that only people in prow/OWNERS should be reviewers with an option no_parent_owners: true

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: utka
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: geeknoid
If they are not already assigned, you can assign the PR to them by writing /assign @geeknoid in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@utka: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
27a52648c453d137b52f9ec0cbbe37e074021044
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@utka: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
2e8585912f454ae5c649f0fe9254147f1eea6b9e
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@utka: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
2e8585912f454ae5c649f0fe9254147f1eea6b9e
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
2e8585912f454ae5c649f0fe9254147f1eea6b9e
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I wasn't aware of all these OWNERS features. DO you have a doc pointer?
"sig" is a Kubernetes thing, we don't use that term in Istioland. We have working groups instead.

Found the docs: https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md#owners-spec
I suggest that OWNERS_ALIASES contain workgroup-related stuff, not directory-related stuff. We don't want sig-prow, that's not a workgroup. Instead, I suggest two entries per workgroup:
wg-networking
wg-networking-leads
Then wg-networking can be used for reviewers: and wg-networking-leads can be used for approvers

@utka I think Martin's comments are on point but don't want to block

Updated with wg-testing/wg-testing-leads

@utka: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
2e8585912f454ae5c649f0fe9254147f1eea6b9e
link
/test istio-integ-k8s-tests

prow/istio-pilot-multicluster-e2e.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

This is great. I'll take the AI to expand this to include all working groups and apply it through the source base.

/lgtm
/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: geeknoid, utka
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [geeknoid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@utka: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@utka: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-integ-k8s-tests

prow/istio-pilot-multicluster-e2e.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@utka: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
df45336cef6c46585c8f8e3ce1aca07191da67d1
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Allow .xctestrun equivalent in config.json

Allow for the the config file to contain info usually stored in a .xctestrunfile run file.
Example config: https://gist.github.com/bdittmer/9c131fa94ca36daf8c70e3014c87c51e
Example run w/ config: https://gist.github.com/bdittmer/9ce90fece7308d7192f6c4f6bbd98e7a
Addresses https://github.com/linkedin/bluepill/issues/358

Also, it could use some docs about the new keys in the config file. Oh, and some tests


On my development machine (Windows 11) it correctly returns the url new.site.com, instead on my production machine (Windows Server 2019) it returns legacy.site.com.
Tried everything, but I can't understand why. Hope you can help me. Thanks.
Mark

@mrcferri Are you using the System.Web Adapters for this? I assume so based on the scenario you described. If so, can you please post this question in the repo for the adapters? https://github.com/dotnet/systemweb-adapters/issues
This doesn't seem like a YARP issue.

@adityamandaleeka You're perfectly right. I didn't realize that sytemweb-adapters should be added in the modules section of the web.config of the legacy site.


Tensorflow version incompatibility with centOS

Rasa version: 0.14.4
Python version: 3.6
Operating system (windows, osx, ...): centOS 7
Issue:  Recently we moved from Windows to Cent OS server. Until then we were using tensorflow 1.13version. But after moved to Cent OS, during installation there was an incompatibility between tensorflow and OS. Because of it we installed tensorflow 1.12.   Is there any issue in future using this tensorflow version? Please confirm.
Content of configuration file (config.yml):

Content of domain file (domain.yml) (if used & relevant):

tensorflow 1.12 doesn't support python 3.7, but i think you should probably be fine with 1.12 on py36


ARIA attributes, drawer should act as modal when overlay mode

Screen readers should announce the content on the drawer when it's open on overlay mode

Some reference on the subject:
https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html


Feature/cli fix indexes

Codecov Report

Merging #214 (90df402) into master (5a0b4ed) will decrease coverage by 0.49%.
The diff coverage is 6.00%.

@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
- Coverage   65.89%   65.39%   -0.50%
==========================================
  Files         119      119
  Lines       10200    10475     +275
==========================================
+ Hits         6721     6850     +129
- Misses       3479     3625     +146

Impacted Files
Coverage Δ

assemblyline/run/cli.py
61.21% <4.00%> (-2.27%)
:arrow_down:

assemblyline/datastore/stores/es_store.py
61.34% <4.22%> (-5.33%)
:arrow_down:

assemblyline/datastore/__init__.py
64.11% <50.00%> (-0.16%)
:arrow_down:

assemblyline/datasource/alert.py
88.46% <0.00%> (-3.85%)
:arrow_down:

assemblyline/odm/randomizer.py
95.17% <0.00%> (-0.88%)
:arrow_down:

assemblyline/datastore/helper.py
32.05% <0.00%> (-0.34%)
:arrow_down:

assemblyline/odm/models/config.py
99.27% <0.00%> (-0.18%)
:arrow_down:

assemblyline/odm/models/user.py
100.00% <0.00%> (ø)

assemblyline/common/constants.py
88.23% <0.00%> (+0.35%)
:arrow_up:

assemblyline/common/heuristics.py
84.37% <0.00%> (+1.56%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

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


IGNITE-17730 Fix issues in SQL doc

LGTM, parts related to links in diagram and documentations itself will be covered separately. Schemas should be visible for any possible screen resolution


qss v0.0.4 not compatible with HA 2023.06+

Describe the bug
QSS integration not starting giving error:
Эта ошибка возникла в пользовательской интеграции.
Logger: homeassistant.loader
Source: custom_components/qss/io.py:8
Integration: qss (documentation, issues)
First occurred: 00:34:50 (1 occurrences)
Last logged: 00:34:50
Unexpected exception importing component custom_components.qss
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/qss/init.py", line 38, in
from .io import insert_event_data_into_questdb
File "/config/custom_components/qss/io.py", line 8, in
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_fixed
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 451, in
from tenacity._asyncio import AsyncRetrying
File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 33, in
class AsyncRetrying(BaseRetrying):
File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 41, in AsyncRetrying
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'
To Reproduce
start HA
Expected behavior
loading with HA
Probably issue is connected to python 3..11

hassio:2023.06.2
qss:0.0.4
the culprit is python3.11, the deprecation of certain decorators as they are used in one of qss deps: tenacity. the manifest.json states a version between 5 and 6 should be used. available is tenacity:8.x, among various fixes is also improved handling of python 3.10 and 3.11.
so, i tried this:
{
    "codeowners": [
        "@CM000n"
    ],
    "dependencies": [],
    "documentation": "https://github.com/CM000n/QSS",
    "domain": "qss",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/CM000n/QSS/issues",
    "name": "QuestDB State Storage (QSS)",
    "requirements": [
        "questdb>=1.0,<2.0",
        "tenacity>=8.2"
    ],
    "version": "0.0.4"
}

i changed the required tenacity version to require at least 8.2 … and now i see my data in questdb again.

@saintman23 you might wanne try https://github.com/CM000n/qss/pull/7

Once again, thank you very much @mgumz.
Problem should be solved with https://github.com/CM000n/qss/releases/tag/v0.0.5 @saintman23.
Can you please check and report back?

v0.0.6 loads ok on HA 2023.6.3