[Cody Ignore] Fetch, interpret enterprise Cody Ignore rules

Cody Ignore for Enterprise needs to interpret a different policy than the file-based .cody/ignore:

The site config supports lists of repositories to be included/excluded from Cody's context following RE2 syntax
If either include or exclude rules are defined, Cody applies these rules to determine which repositories can be used as context in requests to third-party LLMs
If neither exclude nor include rules are specified, Cody may use content from any repository on the instance in its requests to third-party LLMs
If both exclude and include rules are specified, the include rules restrict Cody to use content only from the repositories that match specified patterns. Repositories not matching any include patterns will be excluded.

Open question about what the defaults are, see Slack thread.
Related Docs

PRD
RFC910

### Tasks
- [ ] Add node RE2 package; the RFC specifies RE2
- [ ] Fetch the enterprise rules with GraphQL
- [ ] Provide a stub implementation for Sourcegraph endpoints which don't support this feature, with a liberal allow policy
- [ ] Write a function which takes (repo, relative path) -> do/don't ignore
- [ ] Work out how fast "fast enough" is to call on visible editor changes, multiple times during context gathering, etc.
- [ ] Write a function which takes file URI -> do/don't ignore that is "fast enough." If the result depends on whether the remote has the repo ID, we need to integrate with the remote repo cache behind the RepoFetcher. If the directory walk, git push URL lookup, etc. is too slow we'll need to cache more. (Hopefully not...)
- [ ] Expose API thru Agent for JetBrains and others
- [ ] https://github.com/sourcegraph/cody/issues/3642

Does it make sense to work on a draft agent API that does something silly (allow only repos with J in the name?) to get jetbrains UI work unlocked?

@cbart This idea started with me and has looped back this far, cool. We will do that if it makes sense for executing the plan. Decision at this point is JetBrains engineering is busy so there's no benefit to this right now.

@cbart, it makes sense 👍

Closing this issue since all the subtasks are completed and [Cody Ignore] Fix risks arising from file based .cody/ignore has its own standalone ticket.


Error [ERR_REQUIRE_ESM] after use esbuild for cjs

// build.js
const { build } = require("esbuild");
const { dependencies } = require("./package.json");

const sharedConfig = {
  entryPoints: ["index.ts"],
  bundle: true,
  minify: true,
  external: Object.keys(dependencies),
};

build({
  ...sharedConfig,
  platform: "node", // for CJS
  outfile: "dist/index.js",
});

// tsconfig.json
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "commonjs",
    "skipLibCheck": true,
    "moduleResolution": "node"
  },
  "include": ["."]
}

I saw the Usage:

If you use TypeScript, you should set moduleResolution to bundler, node16 or nodenext in your tsconfig.json file to properly resolve the exported module.

consider compatibility with cjs?

I can successfully run the demo in node (with a CommonJs context) with the following configs:

package.json
{
  "name": "zxing-wasm-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "node -r esbuild-register index.ts"
  },
  "author": "",
  "dependencies": {
    "zxing-wasm": "^1.0.0-rc.7"
  },
  "devDependencies": {
    "esbuild": "^0.19.7",
    "esbuild-register": "^3.5.0",
    "typescript": "^5.3.2"
  }
}

tsconfig.json
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "nodenext",
    "skipLibCheck": true,
    "moduleResolution": "nodenext"
  }
}

index.ts
async function run() {
  const { readBarcodesFromImageFile } = await import("zxing-wasm");

  const imageFile = await fetch(
    "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!"
  ).then((resp) => resp.blob());

  const imageFileReadResults = await readBarcodesFromImageFile(imageFile, {
    formats: ["QRCode"],
    maxNumberOfSymbols: 1,
  });

  console.log(imageFileReadResults[0].text);
}

run();

shell
> npm run start

According to the typescript doc on moduleResolution

'node10' (previously called 'node') for Node.js versions older than v10, which only support CommonJS require. You probably won’t need to use node10 in modern code.

Is there any reason that you're still using the legacy node option instead of nodenext here?

consider compatibility with cjs?

The above example is the way to import this package in a commonjs module context. I admit It's not supported as a first class citizen because dual package publishing can be cumbersome. If you can share your use case maybe I can further think it over.

This tsconfig also works
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "commonjs",
    "skipLibCheck": true,
    "moduleResolution": "node10"
  }
}

The dev environment is used normally, but errors occur after build with esbuild

I made a PR to support cjs, can you checkout #50 locally and test if it works?

I downloaded your file package and it seems to be working

Shipped in v1.0.0-rc.9 (I made a mistake so don't use rc.8), you can install from npm registry and check again.

in my project, it works


@conda-forge-admin,please add bot automerge

Additional comment:
No response

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/python-benedict-feedstock#16.


Set the spam confidence level (SCL) to...

The document says: "Bypass spam filtering: This sets the SCL to -1, which means the messages will skip spam filtering."
When you use https://outlook.office365.com/ecp/ and create a rule there is no -1 option, the dropdown now says "Bypass spam filtering".

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

ID: 42c02536-94a1-b266-fc4f-a159e33832db
Version Independent ID: e9a44f9d-6d0c-ff49-e8ce-9da02c22a9df
Content: Use mail flow rules to the SCL in messages - Office 365
Content Source: microsoft-365/security/office-365-security/use-mail-flow-rules-to-set-the-spam-confidence-level-scl-in-messages.md
Service: o365-seccomp
GitHub Login: @chrisda
Microsoft Alias: chrisda

Behind the scenes, the SCL is -1, but I can see how that would be confusing, so I fixed it.
Thanks for the feedback.
Closing


ARROW-2525: [GLib] Add garrow_struct_array_flatten()

garrow_struct_array_get_fields() is deprecated.
Version related macros are also added for deprecating
garrow_struct_array_get_fields().

Looks like this may have broken the glib builds: https://travis-ci.org/apache/arrow/builds/373402983

Oops.
We need more work for out-of-source build.

I created a pull request for it: #1974


Adding commands without hardcoding them

Hello there!
I have a question regarding the commands-object.
This works fine:
    var commands = {
        'goodbye': function() {  closeApp(); },
        'help': function() { displayHelp(); }
        //and so on...
    };
    annyang.addCommands(commands);

But this object literal notation leads to the problem, that I am not able to add a command, which is "variable". Because I want to load a set of user defined commands out of a database or a textfile.
Is there a way to achieve this? Can I add voicecommands without hard-coding them?
Best regards
Michael

@Maikell84 does this not work:
var customCommand = 'bye';
var commands = {
        'goodbye': function() {  closeApp(); },
        'help': function() { displayHelp(); }
        //and so on...
    };
commands[customCommand] = function() { quit(); };

Hello.
Thank You very much - This works perfectly.


Update components with new tokens: SkiScotlandCard - Warning

Apply the tokens and update all existing components in Figma and Component Library:

[ ] Ski Scotland Card
[ ] Ski Scotland Status

[ ] Table

[ ] Skip To
[ ] Social Credit Link
[ ] Social Share Button
[ ] Summary Box
[ ] Svg
[ ] Svg Link
[ ] Tabs
[ ] Tag
[ ] Tooltip
[ ] Video
[ ] Video Caption
[ ] Warning

Hey @GemmaLouise I think this is everything from the design side. I'll go through and pick up any comments i've missed from yourself and check each component page again to make sure I've not missed anything


Docs update

Updated documentation

Please re-base this branch onto the master branch instead of merging master branch to this branch for each pull request. Thanks!


update AvatarWithPopover component to use Tippy

💬 Description
AvatarWithPopover has been updated to use Tippy rather than the Dropdown component.
With the Dropdown component, when hovering from the bottom of the trigger, the dropdown content overlays the trigger and causes the mouse to 'leave' the trigger, hiding the content. Using Tippy and a standard tooltip stops this from happening.
There is a slight drawback in that the avatar component loses some functionality to allow it to have links or menu items as the dropdown content, but this is never used inside the app and I think it's worth removing unused functionality to fix a bug.
🔗 Links
(https://trello.com/c/CcQVR0my/2812-presence-avatar-tooltips-flash-and-disappear)
📹 GIF (optional)

 Presence avatar tooltips flash and disappear


Can't send different pre configured messages within the same folder

My use case is pretty unique, but i wanted to set up folders to automatically send memes to one of my discord channels. Unfortunately i can't have multiple actions within the same folder, i.e when i create a new action (same webhook), but update the text, all the actions inside that folder now send that text

fixed, waiting for merge.

I've merged this fix along with a few other things that cnschu sent. Thanks for the contribution! I'll build a new release of the plugin soon.


[bump] package version for server

        @fluidframework/build-common:     0.20.1 (unchanged)
 @fluidframework/eslint-config-fluid:     0.22.2 (unchanged)
  @fluidframework/common-definitions:     0.20.0 (unchanged)
        @fluidframework/common-utils:     0.28.0 (unchanged)
                              Server:   0.1019.0 -> 0.1019.1
                              Client:     0.34.0 (unchanged)
                     generator-fluid:      0.3.0 (unchanged)
                         tinylicious:      0.4.0 (unchanged)
                         dice-roller:      0.0.1 (unchanged)

Also remove pre-release dependencies for server
Server -> ^0.1019.0

Is this intentionally a patch version bump?

Is this intentionally a patch version bump?

Nevermind, this is the patch bump to the release branch, I think this is correct.


Waypoint: Use Conditional Logic with If Statements

My answer returns correct but the test doesn't complete. is my coding bunk or is this a legit bug?

The casing of your return strings is important.

"Yes"   Y must be capital


player-mpris-tail: Print update when the current player is no longer current

Currently, when the current player is stopped/paused, the status of the next player in line is not printed; this fixes that.

Oh, I forgot this ..


 Some people might want to save an img of their new layout and have a quick look at it when they are still learning it.
Canary staggered keyboard layout

Canary orthogonal keyboard layout

These are great, thanks for the suggestion! I'll probably add them soon.


WIP Tool packages

Tool Packages
This PR introduces a new way of packaging tools in AgentStack. Tools are now wrapped in a framework-specific layer to allow for our implementations to remain completely generic. Some tools have been reimplemented to work with all frameworks instead of just importing from crewai-tools.
Core Changes

Tools now get wrapped in a framework-specific layer
Reimplemented tools to work with all frameworks instead of just importing from crewai-tools
Removed tools_bundled from ToolConfig as all tools are now bundled for namespacing
agentstack.tools is not part of the public API and is to be used inside a user project to access tools

Directory Search Implementation
As part of this effort, the directory search tool has been reimplemented as framework-agnostic functions:

Added two core functions:

search_directory(directory: str, query: str): Search any directory
search_fixed_directory(query: str): Search preconfigured directory

Removed dependency on CrewAI's BaseTool
Uses embedchain.loaders.DirectoryLoader directly
Framework-specific wrapping handled by frameworks.crewai.get_tool_callables

Environment Variables

DIRECTORY_SEARCH_PATH: Optional. Path to directory for fixed directory search.

Composio Tool Implementation
The composio tool has been reimplemented as framework-agnostic functions:

Added core functions:

execute_action: Execute specified Composio actions with parameters
get_action_schema: Retrieve schema for Composio actions
find_actions_by_use_case: Find actions based on use case
find_actions_by_tags: Locate actions by specified tags

Removed dependency on CrewAI's BaseTool
Uses composio library directly for core functionality
Framework-specific wrapping handled automatically by agentstack.tools['composio']
Updated config.json with proper dependencies and CTA field

Environment Variables

COMPOSIO_API_KEY: Required. API key for Composio service access.

Stripe Tool Implementation
The Stripe tool has been reimplemented as framework-agnostic functions:

Removed framework-specific dependencies
Implemented core functions for:

Payment links (create/read)
Products (create/update)
Prices (create/update)

Uses stripe library directly for core functionality
Framework-specific wrapping handled automatically

Environment Variables

STRIPE_SECRET_KEY: Required. API key for Stripe service access.

Link to Devin run: https://app.devin.ai/sessions/24be273939424e7eacea38661326111e

lets save this for 0.3 because it will require the project upgrade script. we can merge it now though and create a 0.2 branch for bug fixes and small features

one challenge with this implementation is that by not copying the tool into the user's project, we remove the ability for them to modify the tool to best fit their use-case. So for Composio for example, there are a number of ways in which the tool can be adjusted for a specific implementation.
additionally, bundling all tools isn't the best idea. if a tool provider exports 20 tools and the developer only wants one of them, it consumes additional context to give the LLM all 20 tools, as well as creating the opportunity for the LLM to pick the wrong tool.

users can still copy the tool source into their project tools dir to modify the implementation

We can add an -e --editable flag to copy the source to the user's project.
I've been thinking about how we handle custom tools in templates. Still don't have a bright idea, but it would be cool to still be able to package up a project with custom tools and share the template.

additionally, bundling all tools isn't the best idea. if a tool provider exports 20 tools and the developer only wants one of them, it consumes additional context to give the LLM all 20 tools, as well as creating the opportunity for the LLM to pick the wrong tool.

will think about this. I wanted to incorporate namespacing so it was clear which tool the function was coming from. previously, installing a tool added all of the functions inside the tool package.

allowing the user to select which functions they're installing, in addition to the tool, using the new interactive agentstack tools add interface would be easy enough.
*agentstack.tools['tool_name'] for all tools
agentstack.tools['tool_name']['function_name'], ... for selected tools
tools.function_name for tools inside the user's project
just make the branching inside the framework ast editability a bit more complex, but very doable.
moving the installed tools from agentstack.json to conf/tools.yaml would let us track this better


Support for new headless in Chrome

Google Chrome is working on a new headless mode:
https://developer.chrome.com/articles/new-headless/
If nothing is done, the new headless is automatically used end of year, but maybe it is a good thing to look into this?

Added in release 2.0.4 : https://github.com/vgalin/html2image/releases/tag/2.0.4


sorting by #allocations breaks call stack tree

sorting the data by number of allocations breaks the call stack tree completely, see attached screenshot:

the frame void Worker::loadInput(void) has 1007016 inclusive allocations, but expanding it shows only items with very few allocations. Further down a frame for QCommandLineParser::QCommandLineParser has one internal allocation, but expanding it shows a completely unrelated frame from the Worker::parseFile with 1007012 allocations - those should be part of the loadInput frame above.

Should be fixed in v4.2.2


[JENKINS-43336] Add getLock/releaseLock steps.

JENKINS-43336
This is specifically to support usage of locking across stages in
Declarative. The use case is something like this:
stage('foo') {
  steps {
    getLock resource:'some-resource'
    // do some other stuff
  }
}

stage('bar') {
  steps {
    // do some other stuff
    releaseLock()
  }
}

[x] Implementation.
[ ] Tests (both of getLock/releaseLock and interoperability between them, the block-scoped lock step, and locking freestyle builds).
[ ] Snippet generator/help.html.

cc @reviewbybees and @jglick (who I'd like to assign as a reviewer but can't because he's not a contributor to the repo!)

The use case is something like this

But that is something you should never do! Because then you are not guaranteeing the lock will ever be released.
I feel that the block-scoped lock step is the only appropriate primitive, and if Declarative does not currently support that, then that is an RFE for Declarative. For example, it could be an addition to an options block. Or the syntax could extended to allow wrapper steps to be used outside stages.

@jglick I get what you're saying. You can do lock(...) in options already, but that applies across the whole build. I suppose I can try to find a way to do options-but-for-subsets-of-stages...

I did not realize that lock() could be performed in options to lock the whole build. That actually satisfies some of my use cases. I think it would still be useful to have separate control over lock/unlock, but I agree that it would have to be done in such a way that the deadlock potential would be 0.
I'm (obviously) not familiar enough with the pipeline construct, is there a way to automatically force all locks acquired in a job to be released when that job exits?

@dolphy01 When using the lock(...) {...} step, all locks will automatically be released when either the block is completed or the build fails/is killed/whatever.

@abayer sorry, I was ambiguous there. I meant in the context of using getLock():
pipeline {
    stages {
        stage('locking') {
            steps {
                getLock resource: "my_resource"
            }
        }
    }
} <-- Is there a way to force the release of anything aquired with "getLock" here?

Or, another way of asking, is it a necessity that using getLock/releaseLock imposes deadlock management on the user? I would think that this would lead to most uses ending with a "safety net" post step:
pipeline {
    stages {
        stage('locking') {
            steps {
                getLock resource: "my_resource"
            }
        }
    }
    post {
        always {
            releaseLock resource "my_resource"
        }
    }
}

@dolphy01 Aaaah - yeah, with the current code here, you do need that explicit releaseLock() call, but I think I'm going to add a RunListener to auto-cleanup any unreleased locks put in by getLock.

Ah, ok. My own personal use cases would all call for the lock to be cleaned up at the end of the job (whether by myself or auto-cleaned).
I don't know if anyone out there maybe has use cases that call for locking across multiple jobs. If that's a valid use case, maybe an option to getLock:
pipeline {
    stages {
        stage('locking') {
            steps {
                getLock resource: "my_cleaned_resource"
                getLock resource: "my_persistent_resource", autoRelease: false
            }
        }
    }
} <-- "my_cleaned_resource" is cleaned up, "my_persistent_resource" is still locked

Again, that's if you think that's even a valid use case. I personally don't think I would use it.

@dolphy01 Oh gawd, no, please dear any-and-all-gods-that-may-or-may-not-exist, no cross-builds locking! =)

@jglick Actually, I'm pretty sure the locks will always be released so long as LockRunListener.onCompleted gets fired.

@jglick as menitioned in the ticket I personaly think this is a great addition as it opens up the possibility to release the lock the moment we don't need it anymore without the need to drop the node aswell (in the structured pipeline syntax). Leaving the node just for releasing the lock soon forces one to deal with stash/unstash and adds a lot more overhead then necessary.
@abayer
Is there any chance you add a return value, that contains the locked resources?

+1 for @oleg-nenashev rename suggestion to acquireLock(). getXYZ() has totally different meaning in Java and current usage of getLock() is very confusing.

What happens if you have an agent declaration on any of the stage blocks?

@abayer Any updates on this? When can we expect this will be completed and merged? As it is very missing feature in declarative pipeline.

@abayer @jglick Any activity on lockable-resources?
This (and quiet a few other pull requests) would significantly improve or fix the plugin, but are not showing any progress.

I've been meaning to comment on this one, but just in case this PR is going the other way - as a user of scripted pipeline I have a need for effectively identical steps to those originally outlined for a similar basic scenario, and I don't feel like I'm being particularly crazy, either :)
I am at this moment having to write my own helper class in shared library code to facilitate this, since it'll let me halve the time that a pipeline is running for, so it would be nice if this were officially supported.
I can see the rationale for scoped steps for workspaces, directories, stages, etc., but I don't know that we benefit from enforcing this model on lockable-resources.

Can we rename getLock to acquireLock please? This isn't a getter.

+1
We are using this feature of "lock resource" for dynamic resources, so the releaseLock feature will be very helpfull.

What's the current status of this?  This is a feature I'd like to use too.

I implemented something similar in https://github.com/jenkinsci/lockable-resources-plugin/pull/179
I don't use the queue but instead boolean tryLock(resource: string).

Superseded by #179

So this issue in jenkins was closed as resolved. I couldn't find a way to acquire locks for multiple stages in non-scripted pipelines. Does anyone have an overview over what is currently possible?

Oh gawd, no, please dear any-and-all-gods-that-may-or-may-not-exist, no cross-builds locking! =)

For our similar use-case, it indeed was for cross-builds locks (back in the age of Multi-Phase jobs, an outer wrapper locked one of the devices we test, and then runs lots of jobs to do the deploy/test/teardown of the SUT. But indeed, those jobs used a provided IP address or similar contact, without caring that there is a lockable resource correlated to that.
In another use-case (that led to the "Steal lock" button) we wanted to allow the devices to be left locked/reserved after the job ends and not recycled for the next test, so developers can do in-vivo postmortems to investigate the bugs (some can take hours to reproduce). This approach explicitly wants open-ended lock support, without automatic unlocking when the job ends.
So yeah, theories and consistency may be nice, but real life may have nasty requirements :)

Hello, is there any update here?

this is very dangerous operation and currently I does not see any pro. Therefore closed


Two Problems, help

hi, I've used dpttools for jailbreaking my device
Previously it worked well, but sometime later the Digital Paper app stopped working by not recognizing through USB. But luckily I can still connect through WIFI. Also I flashed Bluetooth pkg.
And I tried to restore the original firmware and it says AppLauncher stopped working, Bluetooth stopped working etc. And I wanna try jailbreak again, but finally my device got stuck on booting screen, never had a chance to boot into OS.
Im kinda depressed, what's happening?

patpat, you have multiple things tried so let's sort it out..
first of all, are you still able to get into diagnosis mode?
second, when you say it sucks at boot screen, can your computer sees the usb connection and connect via adb?

If you stuck at boot screen, are you able to use adb? If so, try the wiki on the suggested mod: https://github.com/HappyZ/dpt-tools/wiki/Suggested-Launcher-Mod

let me know if you have fixed it

Im bak.
I just couldn't enter diagnosis mode and tried everything I can search of.
Except for getting a OTG cable which is way too complicated for me.
Finally I SOLD it to a Xianyu dude who claimed that he can fix it himself. As a bricked device.
Now I feel much better get rid of this complex tool.
Anyway, I've an another NotePro reader with backlight now. Which saves my time of digging around.
Thanks anyway, for your efforts into this project.

Good for you.
On Wed, Mar 27, 2019, 07:48 sixis<EMAIL_ADDRESS>wrote:

Im bak.
I just couldn't enter diagnosis mode and tried everything I can search of.
Except for getting a OTG cable which is way too complicated for me.
Finally I SOLD it to a Xianyu dude who claimed that he can fix it himself.
As a bricked device.
Now I feel much better get rid of this complex tool.
Anyway, I've an another NotePro reader with backlight now. Which saves my
time of digging around.
Thanks anyway, for your efforts into this project.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HappyZ/dpt-tools/issues/76#issuecomment-477114611,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEdSKp4SCyfHD9saQDOyVnmNcZ7JXmuvks5va1qTgaJpZM4b43YR
.


[question] inconsistent behaviour of type switch

What version of Go are you using (go version)?
What operating system and processor architecture are you using (go env)?
What did you do?
I ran code in play.golang.org
https://play.golang.org/p/a701GtehQQ
https://play.golang.org/p/GT51lpmogI
What did you expect to see?
All cases work the same way.
What did you see instead?
Second example doesn't compile
main.go:23: cannot convert v (type interface {}) to type int64: need type assertion

Maybe I missed something in docs?

Go doesn't use the issue tracker for questions. Please see https://golang.org/wiki/Questions.


How to install

Hi.
Would You please describe how to install package to the new angular2 project.
Many thanks.

It is not package that can be installed. It is just showcase how you can combine it.


Add book zh 现代 JavaScript 教程

What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

TIP :writing_hand:: It's a good practice to fill Pull Request fields. It helps a bit we can understand your contribution better :hugs:. and then, increase maintainers productivity :rocket:

:writing_hand: :nerd_face: TIP OF THE DAY
Not is needed open new PRs to improve them.
Work on the same branch from where open. The upstream will auto-sync this PR when changes are pushed to your fork :rocket:
Help mantainers :pray:. The majority of times, it convert the review process in a headache :wink:


tdexdconnect: Support TLS termination with CA signed certificate

Overview
In some scenarios, the daemon could be deployed in a context where the TLS termination is already present (ie. from a reverse proxy on top) therefore it conflicts with the self-signed certificate of the operator interface.
We now can disable the generation of TLS self-signed via TDEX_NO_OPERATOR_TLS env var, but this makes generating tdexdconnect URLS like
tdexdconnect://<host>:<port> if not initialized and tdexdconnect://<host>:<port>?macaroon= after seed has been init without the cert field.
We need to think of a way to communicate this to clients such as CLI or dashboard, in a way the client knows to use secure connection, but leave to the http client used to make the TLS handshake correctly.
Proposal
One idea could be to introduce a new field in the query string such as ?proto=http or ?proto=https ?
Validation/Behavior

If the ?cert has been given already we default to https and ignore anything given to the proto field ?
or we return error if cert is given, but anything beside https inside the proto field is passed?

@Janaka-Steph @sekulicd @louisinger

Some more thoughts on the topic
https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/lightning-node-connect

any comment about my proposal? What about validation behavior? @altafan

Can you explain why proto is an array? Why not https or http?
Why having proto? Could be if cert is given then https, if not then http?

Can you explain why proto is an array? Why not https or http?

yeah it means "one of" in that array, yes the proto must be EITHER https or `http

Why having proto? Could be if cert is given then https, if not then http?

If cert is not given, it could be because the operator server is exposed with TLS signed by Certificate Authority

must be set by the user when generating the URL

Yes exactly should be a parameter.
We can only infer the proto is https if the cert is passed, but this is linked on the validation behavior: either fail always if user dont give us all param explicitly or we add some implicit logic

re: daemon
we can add the following env vars to generate the right tdexdconnect URL generated by the daemon fot the HTML page

TDEX_CONNECT_HOST ie. mydomain.com:443 or <IP_ADDRESS>:9000
TDEX_CONNECT_PROTO ie. https or http

This are used in combination with already existent config variables

TDEX_NO_MACAROONS to remove the ?macaroon param
TDEX_NO_OPERATOR_TLS to remove the ?cert param

I agree, but I also suggest making tdexdconnect an RPC of the daemon rather than a dedicated service. This way we could take advantage of the daemon's configuration to determine what needs to be included in the connect url.

I think the best validation behavior should be

if cert is given and proto is  not set, valid ✅ (we default to https in clients)
if cert is given and proto is set to http, we return error ⛔
if cert is NOT given and proto is set to https we assume a CA signed certificate is setup

cc/ @Janaka-Steph can you create corrsponding task on tdex-dashboard?

Sure!

Take into account that at the moment tdexdconnect always inlcudes a cert param in the generated URL unless the --insecure flag is passed when running the command. By default it looks for the TLS cert into the daemon's datadir but it can be overwritten with the --tls_cert_path flag.
Given the changes to the Operator interface's auth, we may need to replace --insecure with 2 new flags --no-tls and --no-macaroons to include/exclude either cert or macaroon.

but I also suggest making tdexdconnect an RPC of the daemon rather than a dedicated service

Bad suggestion. There would be no way to protect that RPC, even with the wallet password, because it has to be accessible even before the wallet is initialized. Let's keep things as they are.


fix(libsinsp): use sinsp_inet in tuples.cpp (allow Windows build)

Signed-off-by: Luca Guerra<EMAIL_ADDRESS>
What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area driver-kmod

/area driver-ebpf

/area libscap

/area libsinsp

/area tests

/area proposals

What this PR does / why we need it:
libsinsp doesn't use arpa/inet.h directly to allow builds on platforms other than Linux but uses its own header to abstract differences, so that it can compile on Windows too.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

@LucaGuerra: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: LucaGuerra
To complete the pull request process, please assign mstemm after the PR has been reviewed.
You can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found 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

Hi @LucaGuerra. Thanks for your PR.
I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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.

Great! Thank you very much Luca!
/ok-to-test

LGTM label has been added.  Git tree hash: ac2ff4f208d05b368b4c63b7c6ae7ebb8738a870

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, LucaGuerra
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 [FedeDP]

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

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, leogr, LucaGuerra
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 [FedeDP,leogr]

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


Flickering when resizing window

GIF.
When resizing a glutin window, the entire client area is flickering. Visually it looks like the window is alternating between being completely black and the actual framebuffer content.
My window has multisampling x4 and vsync enabled. Disabling either or both did not fix it.
Is this fixable?

Well gee, I just updated to glium 0.17.1 and the problem is gone. It's possible this was caused by glium directly.


Proposal: moving this repo to strawberry-graphql organisation

Hi @la4de! Thanks for making this package. Would you consider moving it to strawberry-graphql organisation?
So we can adopt this as an official extension of strawberry (and maybe also introduce continuous releases).
Let me know what you think! :)

That would be great! I fully support that proposal.

Awesome! Are you our discord channel? we can discuss there how to tackle this 😊https://strawberry.rocks/discord

I'll close this as it is now done 😊


Feature request - tab renaming

I often have many tabs and each tab may have a purpose (e.g 1 tab for all server's related files, and 1 tab for all client's related files). I would like to have the ability to rename the tab so it would be easier for me to keep track
Currently, I'm using https://github.com/gcmt/taboo.vim for this feature, but the two plugins conflict and cannot be used at the same time. It would be nice if this plugin supports this
Thank you anyway for the plugin! 🎉

Awesome that you like the plugin!
This should be fairly easy to implement, and I have a PR for it already. Could you test the PR and see if this is what you wanted?
#12
I will add something to the README as well for how to change the name of the tab, and also how to clear it. But you can for example do this to edit and clear the tabname:
nnoremap <leader>tn <cmd>lua require('tabline.actions').set_tabname()<CR>
nnoremap <leader>tc <cmd>lua require('tabline.actions').clear_tabname()<CR

Would it be possible to refresh tabline right after we set or clear tabname? Otherwise it looks good to me, massive thanks 🎉 !

hmm, it doesn't for me. It took effect after I move to another buffer or another tab

hmm okay, I could reproduce with a minimal config, so I'll try to figure out why it reloads for me

don't know why it redraws for me, but now I forced redraw the tabline so I think it should work. Could you test?

It works great now! Thank you

Awesome! I will just clean up a little bit, and document it in the readme, and then I will merge it


Portable version

Hi!
I think a portable version would be good for those of us who automate our backup and installations. Thank you.

And for when using a work device that you don't have admin rights to...


While creating a new task the LogonType will not set.

TaskScheduler (2.10.1), installed via NuGet
Visual Studio 2022 17.4.0 Community
Windows 10 22H2 19045.2006
I'm trying to create a new task from a XML file with this code:
TaskService.Instance.RootFolder.RegisterTask(
    "Example",
    File.ReadAllText("Example.xml"));

The XML is this:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <Triggers>
    <CalendarTrigger>
      <StartBoundary>2022-01-01T00:00:00</StartBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <LogonType>InteractiveToken</LogonType>
    </Principal>
  </Principals>
  <Actions Context="Author">
    <Exec>
      <Command>msg</Command>
      <Arguments>Me "Hello World"</Arguments>
    </Exec>
  </Actions>
</Task>

Unfortunately, the LogonType will not be applied. But if I import this XML file from the %windir%\system32\taskschd.msc GUI, it will be.
Is this a bug of your project or a problem of the Windows API / Windows Task Scheduler?

Both the UI and my library use the COM interfaces exposed by Windows. What you're experiencing is a nuance of that base library. It requires you to specify the LogonType during registration and will not pick it up from the XML. Use the extended parameters in the RegisterTask method to specify all account related information. E.g.
TaskService.Instance.RootFolder.RegisterTask("Example", File.ReadAllText("Example.xml"),
   TaskCreation.CreateOrUpdate, null, null, TaskLogonType.InteractiveToken, null);


support each git branch going to a new transifex resource

This would support a branch based development model more analogous to git.

This is being addressed in the 'L10N' experimental use case.  While a version of this functionality exists...it still is actively being developed.


Inherit Location and ActgClass from Base

Hey @ataber,
I completely forgot to make Location and ActgClass inherit from Base in my latest PR, fixing that here. I've also added some specs for the logic I wrote previously.
Create spec for .find_by_name
Spec to ensure entities inherit from base

Looks good!


feat: update to drawio-desktop 24.2.5

Automated changes by create-pull-request GitHub action

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


selecting non existing column returns null instead of error.

select a.a1 from b;
b doesn't have a1 and a is not an alias of b so this should raise error, but instead returns "null" as result.

This is what I get:
'''
select a.a1 from b;
ERROR[Optimizer]: can't bind column 'a1' to table
Unhandled exception. qpmodel.logic.SemanticAnalyzeException: can't bind column 'a1' to table
at qpmodel.expr.ColExpr.Bind(BindContext context) in D:\qpmodel\qpmodel\Expr.cs:line 987
at qpmodel.expr.Expr.BindAndNormalize(BindContext context) in D:\qpmodel\qpmodel\Expr.cs:line 762
at qpmodel.logic.SelectStmt.bindSelectionList(BindContext context) in D:\qpmodel\qpmodel\Plan.cs:line 665
at qpmodel.logic.SelectStmt.BindWithContext(BindContext context) in D:\qpmodel\qpmodel\Plan.cs:line 693
at qpmodel.logic.SelectStmt.Bind(BindContext parent) in D:\qpmodel\qpmodel\Plan.cs:line 602
at qpmodel.Program.Main(String[] args) in D:\qpmodel\qpmodel\Program.cs:line 293
'''
It looks right to me.

That's is what I expect but how did it return null?

That's is what I expect but how did it return null?

I think @9DemonFox may confused with this output vs. ExecSQL() API's return result, which returns null upon error.

I was in the middle of a debug session, which is why I couldn't verify it and instead opened an issue. I will close it as a "Not A Bug".

Not a bug. It returns error correctly.


socket.herror: [Errno 1] Unknown host

[root@localhost ]# ip2trace -p <IP_ADDRESS> -d IP-COUNTRY-REGION-CITY-ISP.BIN -t 30
Traceback (most recent call last):
  File "/usr/local/bin/ip2trace", line 11, in <module>
    load_entry_point('IP2Trace==2.1.7', 'console_scripts', 'ip2trace')()
  File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 482, in main
    traceroute(destination_server, database, max_hops, output, all)
  File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 148, in traceroute
    t = Traceroute(destination_server, database, ttl, output, all)
  File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 174, in __init__
    self.destination_domain_name = ip_to_domain_name(destination_server)
  File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 97, in ip_to_domain_name
    return socket.gethostbyaddr(hostname)
socket.herror: [Errno 1] Unknown host
[root@localhost ]#

Hi CNMan,
Thanks for the feedback. We have fixed the issue and released a new version in PyPI. You can now update to the latest version.


Failed to query the list of test cases in the test bundle: Error while parsing JSON: The data is not in the correct format.

I'm using 0.1.14 and having an issue running tests for OS X. The error is below (JSON truncated).
Failed to query the list of test cases in the test bundle: Error while parsing JSON: The data is not in the correct format.: {
    stderr = "Test Suite 'All tests' started at 2014-02-14 05:22:38 +0000\n...\nTest Suite 'All tests' finished at 2014-02-14 05:22:39 +0000.\nExecuted 106 tests, with 0 failures (0 unexpected) in 0.125 (0.131) seconds\n";
    stdout = "";
}

iOS tests work fine using xctool, and both work fine using xcodebuild.

I have the same issue but only if I run inside Jenkins in the command line it works correctly.

I'm still getting the same issue, on version 0.2.7, with this command:
xctool -workspace Quick.xcworkspace -scheme Quick-OSX clean test

It happens both on my machine and CI, see https://circleci.com/gh/mokagio/Quick/11.
See alsohttps://github.com/facebook/xctool/issues/172

@mokagio, in your case test framework or test classes are printing some logs when loaded:
Pending: an example that will not run
Pending: an example that will not run
Pending: an example that will not run
Pending: an example that will not run
Pending: an example that will not run

Stop doing that and it will solve the problem. Also you can try my branch - https://github.com/facebook/xctool/tree/nekto/improve_otest_query. I think I improved such use cases there.

Hey @ExtremeMan thanks heaps for your feedback. Hopefully your fork will make it into upstream soon.


Knife bootstrap does not work with AIX

With the latest version of ChefDK, I was not able to bootstrap an AIX machine. @juliandunn do you know a working fix?
knife bootstrap -x u0015844  <IP_ADDRESS>
Connecting to <IP_ADDRESS>
<EMAIL_ADDRESS>password:
<IP_ADDRESS> ksh: bash:  not found.

@chris-rock It's always been the case; see https://github.com/chef/chef/issues/2037 (I'll close this in favor of that one)

@juliandunn thanks for pointing this out


HEVC FEI API requirement is inconsistent

Compare:
https://github.com/Intel-Media-SDK/MediaSDK/blob/0e50c533fc57f06af703ed41614d170972ed10a5/_studio/shared/include/mfx_common_linux_bdw.h#L154
with:
https://github.com/Intel-Media-SDK/MediaSDK/blob/0e50c533fc57f06af703ed41614d170972ed10a5/_studio/shared/include/mfx_common_linux_cfl.h#L195
What is MFX_ENABLE_HEVC_VIDEO_FEI_ENCODE API requirement?

And looking into this line:
https://github.com/Intel-Media-SDK/MediaSDK/blob/0e50c533fc57f06af703ed41614d170972ed10a5/api/include/mfxfeihevc.h#L29
I completely don't understand in which API version HEVC FEI did/will appear? Moreover, mfxfeihevc.h has some abnormal number of MFX_VERSION_NEXT defines which make no sense!

AFAIK 1.26 should be correct version of API for HEVC FEI. @onabiull can you confirm it?
HEVC FEI API should be delivered in two passes that is what folded MFX_VERSION_NEXT macro in mfxfeihevc.h means. Maybe there should be MFX_VERSION_NEXT+1 for such clearness in such situations.

MFX_VERSION_NEXT covers the whole mfxfeihevc.h! It looks like HEVC FEI API is still not published at all.

Moreover, if anyone will configure mediasdk build by default as:
perl tools/builder/build_mfx.pl --cmake=intel64.make.release
he will not get HEVC FEI because of that line:
https://github.com/Intel-Media-SDK/MediaSDK/blob/0e50c533fc57f06af703ed41614d170972ed10a5/_studio/hevc_fei/CMakeLists.txt#L21


Can't add style in "model_function" column type

Bug report
What I did
In the controller:

In the model:

What I expected to happen
Like this:

Note: I made the color my self in the dev. tools in Chrome to show it.
What happened

What I've already tried to fix it
The column content show if I removed the style attribute.
This is a working example:

Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
PHP VERSION:
PHP 7.4.0 (cli) (built: Nov 27 2019 10:14:18) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
LARAVEL VERSION:
v7.0.8@d71ba61d51aec79a0a0f907991ec215dc24b09d4
BACKPACK VERSION:
4.0.49@986f5e69593eab33e567787e0c28efb6747cd7b5

That's weird @mamprogr . I've just tried it:

And it worked fine for me:

So I don't think it's a bug in Backpack.
Maybe it's not the style getting stripped, but you're hitting the upper character limit? If no limit is specified Try setting limit => 100 on your column, see if that fixes it. Let me know.
Cheers!

Thanks a lot, as you said, it was a limit issue. It is working now :)


Have setup run different install commands depending on python environment

has setup run a different install command depending on the data given to us by the Python Extension API and defaults to pip if environment type is unknown

Demo
Note: Cut the installation progress to make the demo shorter
https://github.com/iterative/vscode-dvc/assets/43496356/e35e9960-9563-432d-948b-053de77faffe
Part of #3935

Going to close this for now since it looks like we can use pip to install for most cases. Will reuse some of the logic here for improving the setup though!


Unable to probe /ThinkPhpStudy/Uploads/Img/out.mpg

Q
A

Bug?
no

New Feature?
no

Version Used
Specific tag or commit sha

FFmpeg Version
FFmpeg or AVConv and version

OS
Your OS and version

Actual Behavior
How does PHP-FFMpeg behave at the moment?
Expected Behavior
What is the behavior you expect?
Steps to Reproduce
What are the steps to reproduce this bug? Please add code examples,
screenshots or links to GitHub repositories that reproduce the problem.
Possible Solutions
If you have already ideas how to solve the issue, add them here.
Otherwise remove this section.

More details in #276.


cmd: Support space separate flags for build-flags

Currently, dlv not support multiple build flags such as -v -x.
If set --build-flags='-v -x', will occur flag provided but not defined: -v -x error from go compiler because append the -v and -x does not separate by space.
Also, --build-flags=-v --build-flags=-x is recognizes -x only.
This pull request will split BuildFlags variable to []string slice uses string.Fields.

This change is

LGTM

@derekparker @aarzilli Sorry, just ping comment.

@zchee thanks for the patch, sorry for the delay.

@derekparker np! thanks great debug tool :)
BTW, I developping the Neovim plugin that implemented inline debug (like sublime, ms code) uses delve written in pure Go.
I was vendoring and use the delve internal code(not internal dir, internal API), it's no problem?
Just in case, that's is, If implemented d lve core debugger, also needs codesign to my binary on macOS.
So I choice, exec dlv binary on background, and connecting it with RPC uses delve sources.
Now still private repository because it's learning Go and vim script for me, but will publish publicly.
If have problem, I will consider to another approach or remove this implementation.
What do you think?

So I choice, exec dlv binary on background, and connecting it with RPC uses delve sources.

I think you have made the right choice: you can use service/rpc2.(RPCClient) as long as you vendor it, we are trying to keep backwards compatibility, if something breaks it's our fault.


Run data fixers on tile entities/items containing other tile entities/items

Datafixers will not run on anything holding itemstacks (drives, any machines holding stacks), meaning any stack format changes made by Mojang or other modders will not be run.
Details:
https://www.reddit.com/r/feedthebeast/comments/7fbqfw/psa_modders_are_you_calling_datafixers_on_your/

Please read my comment at https://github.com/MinecraftForge/Documentation/pull/142/files#r155961985


chore: add CI for Windows

Add CI for Windows

Hi @stevenh and @danmrichards would you mind considering my PR on the build and now an automated release process as well?
https://github.com/multiplay/qstat/pull/104

Closing in favour of a different version


problemn about the type of useMethods

the methods of createMethods could receive any number of args, but the type only allows one.
A little about versions:

OS:
Browser (vendor and version):
React:
react-use:  13.27.0
Did this worked in the previous package version?

Hi!
Is there chance pr will be approved? It's very useful.


fix register register template error

This was causing a type conversion error (between String and RegisterName)

👍


I can't find setup.py

Sorry if I am making a newbie error but I can't find setup.py

Spotted the issue, it is now install.py I made a pull request with the appropriate changes to the readme.

Awesome thank you very much :)


How to make timestamp persistent for the old messages too.

When we chat with bot, only the latest message is having the timestamp. Timestamp for the previous messages is fading out. Also, how to show the timestamp for user messages too ?

The current visual design groups messages. If there is a pause of five minutes or more between messages, that's a new group. We only show the timestamp of the last message in a group (other apps like Google Hangouts behave similarly). We do show the timestamp for a user message while it's the last message, but bots typically respond immediately, in which case you don't see them very long.
We are working on a new visual design, and this is part of it. The tracking issue is #33. In the meantime you can customize by altering the code in WrappedActivity.


[CSL-2355] Quizzes in small containers

Added

I had to change the button positioning in the select question a bit to have it play nice with the scroll. I couldn't find a way to make it be sticky to the content while playing nice with the overflow. If you can find a way, please let me know and we can update it

This might be related to older css we had. But there's extra bottom padding on bigger screens. On smaller screens they're useful since this is where the buttons go on the bottom. For bigger screens they're extra.

Not sure if there's a reason for this but the question isn't 100% of .cio-quiz. There's extra empty space

Thank you for working on this this was a tricky one. Looking mostly good to me except for the things I mentioned


Ova document

Harbor OVA install guide

Coverage increased (+7.3%) to 63.586% when pulling 0c8579e9303fd05417d03884ea13f38e65a36a33 on stonezdj:ova_document into ae68377c98b0e76b1385fbf889e16d78b67fff5e on vmware:master.

Coverage increased (+7.4%) to 63.586% when pulling b7715dff462bcc432affe9ccc3accf42c0a50f7f on stonezdj:ova_document into 53dbe7408f9a08c272f00e36cce98d122dcdfe57 on vmware:master.


Remove out-dated section about Parse in README

Coverage remained the same at 95.789% when pulling 63edbb602ec15599bb0a9882e407e61072ebe1c0 on kennym:readme-update into af3bd290489f5e3b175c9662c33116c0b9905246 on GetStream:master.


KYLIN-3998 Make "bpus-min-benefit-ratio" configurable in cube planner phase 1

…hase 1

Can one of the admins verify this patch?

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3f0ca84). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #637   +/-   ##
=========================================
  Coverage          ?   25.37%
  Complexity        ?     5859
=========================================
  Files             ?     1379
  Lines             ?    81871
  Branches          ?    11479
=========================================
  Hits              ?    20775
  Misses            ?    59073
  Partials          ?     2023

Impacted Files
Coverage Δ
Complexity Δ

.../kylin/engine/mr/common/CuboidRecommenderUtil.java
0% <0%> (ø)
0 <0> (?)

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 3f0ca84...2f4841e. Read the comment docs.


tmt tests import --polarion --polarion-case-id doesn't work

Hello
I'm trying to test the import from polarion feature, but seems it doesn't work, could you help check it, thanks.
(tmt) [yizhan@fedora34 test_devs_setup]$ tmt tests import --polarion --polarion-case-id 23c510fc-9d2d-4365-b280-fc3b95117fd0  -v
Checking the '/home/yizhan/Work/Code/RHEL/CKI/kernel-tests/storage/ssd/test_devs_setup' directory.
Unable to find Makefile

Thanks
Yi

You can specify --no-makefile, but you need to have either a makefile and/or a restraint file for the import to work.
Also the id is not correct, it was supposed to work with work item id, like 'RHELKERNEL-12345', however I just checked the code and it will actually work with that id as well.
Maybe now it's the time to start supporting imports from Polarion only (no makefile or restraint), what do you think @psss ?

I was just for creating an new issue to request that feature: tmt polarion integration without metadata legacy files.
For new tests we don't have such kind of files available and we are working on a task that will request several new test cases in Polarion!
I checked the existing issues and I found that one.
@psss could we take that into consideration for incoming work on tmt?
thanks

Right, you are in luck, I'm already working on this as part of my work on https://github.com/teemtee/tmt/issues/1925


Suggestion

Would it be possible to maybe create a discord server about this lib so people could receive help etc inside of the discord server,
Would help out quite a bit, If there is already a server could you link me to it?
Thanks!

The support server its equal to the d4rkbot support server
Link here:
https://discord.gg/DkVBW8dkqH


Guide hardlinks improve readability paths

2023-04-15 12:25
[New]

None

[Updated]

[Guides Hardlinks] Improve readability paths

[Fixed]

None

@bokkoman could you perhaps update the Automated Script so reflect this changes ?
adding complete to the the /data/usenet/ => /data/usenet/complete
Being it seems to be needed for a few scripts for usenet.


expansion panel disappears if you click quickly on something triggering a collapse

Noticed this in my own code where I'd done something a little goofy to make the panel collapse if it was clicked on when it was open. However, the plunkr that @iamempty put together in a different bug also replicates the problem. I've reduced it a little bit for clarity below. The bug only triggers when clicking quickly on an element that will trigger the panel collapsing with a touchpad (a mouse does not trigger the issue). It looks to me like it is triggered when there is a close and then open event in very quick succession.
http://plnkr.co/edit/lmzkgzQKVNfdGh6uswrx?p=preview

After a little fiddling with my own code, I found that running panel.collapse().then(panel.collapse) successfully masks the function (with a little bit of an odd flash of the element). It would still be great if this could be addressed more elegantly.

I am not exactly clear on how to reproduce this error, can you give me some more info.

steps to reproduce
browsers you are seeing the issue in
os

Happened to me too when toggle collapsing/expanding from the header.
Looks like css has difficulties to be updated when quickly expanding and collapsing. Animations are probably overlapping.
@B-3PO
ng-click="$panel.collapse()" on md-expansion-panel-header then massive clicks on panel header.
Sometimes panels disappear, sometimes one or more elements are staying.
@sschick-prognos code is exactly like mine but can't reproduce the bug on plunker though.
Oh and the workaround is working, thank you :)


Fix errors at exit (2.1)

Fix WASAPI cleanup
Audio drivers are destroyed on OS destruction, when memory management is no longer available so they must release their dynamic allocations explicitly in their finish() method.
Fix crash at editor exit related to BB10
Caused by a recent change in BB10 polling thread behaviour.

The BB10 issues is fixed by #11084 already, could you rebase?


Make precision customizable

It should be possible to edit the default precision and pass precision as an option when parsing/converting to string.
My use case for this is that I'm working with cryptocurrencies, and precision for my use case needs to be quite high (i.e. right now, 1 XRP === $0.320442)
Related: https://github.com/liuggio/money/pull/62
I'll be able to work on the PR above to customize it a bit more for my use case (making to_string add precision as an opt), but would like to know what the core team thinks about it

I think this should look like the infinite_precision flag.
In this case, integer storage type will not work. It is necessary to use decimal, JSON or composite type.

After thinking about it, I just realized that there is somewhat support for this with exponent, i.e. USD has exponent 2 so it will always show 2 decimal places.
If there is a way we can somehow pass exponent when calling to_string, that would solve this specific use case.

I think this should be solved with the help of currency customization. Related with #88
If you still need it or have ideas, post here or open a new issue


Invalid messages created

Here's my setup:
User model acts_as_messageable
Factory Girl set up to create valid User objects
> sender = FactoryGirl.create(:user)
> receiver = FactoryGirl.create(:user)
> receipt = sender.send_message(receiver, 'body', 'subject')
> receipt.errors
=> #<ActiveModel::Errors:0x007fdebc92d888 @base=#<Receipt id: nil, receiver_id: nil, receiver_type: nil, notification_id: nil, is_read: true, trashed: false, deleted: false, mailbox_type: "sentbox", created_at: nil, updated_at: nil>, @messages={:"notification.sender"=>["can't be blank"], :receiver=>["can't be blank"], :"notification.conversation.subject"=>[]}>

In order to fix this, I had to add these lines of code:
# gem/path/app/models/notification.rb
attr_accessor :recipients, :sender

# gem/path/lib/mailboxer/models/messageable.rb
def send_message(...)
...
message = ...
message.sender = self  # added this line
...
end

Hello.
I have the same issue. The last solution suggested doesn't work for me.
(byebug) @receipt
#<Mailboxer::Receipt id: nil, receiver_type: "Spree::User", receiver_id: 2, notification_id: nil, is_read: true, trashed: false, deleted: false, mailbox_type: "sentbox", created_at: nil, updated_at: nil, is_delivered: false, delivery_method: nil, message_id: nil>
Trying to investigate.

Hello.
I found what is causing my problem. I think its an issue so I will open a case.
As a general comment, this happens when the message validation fails, in message.deliver method.
In my case, I config body_max_length in mailboxer.rb initializer and If I send a message longer than that message.valid? is false (in message.rb model, deliver method) while in the other hand @receipt.errors.blank? is true so you sends the incorrect success flash message to the user saying that the message was successfully sent.

Can anyone point me in the right direction on how to add message validations, i.e. minimum length for title and body?

@monroemann: Did you google?
https://stackoverflow.com/questions/41326335/mailboxer-validation
You should be able to use Rails validations (or other frameworks' validations if you're not on Rails) without worrying about mailboxer things.

But we can’t find any mailboxer model...

Oh, I didn't look at that link too well. I haven't used mailboxer in about four years. After a further look, I think I would configure a custom mailer: config.message_mailer = MyMailer
Then:
class MyValidatedEmailMessage
  include ActiveModel::Validations
  attr_accessor :body

  valdiate :body_length

  def body_length
    #...
  end
end

class MyMailer < Mailboxer::MessageMailer
  def send_email(message, receiver)
    my_vem = MyValidatedEmailMessage.new
    my_vem.body = message.body
    if my_vem.valid?
      super
    else
      # handle errors
    end
  end
end


Overexposed HDR

Hello!
I'm trying to use this library to display hdr avif.
You did a great job!
Unfortunately, many HDR images show strong overexposure

Taken from https://www.wide-gamut.com/test/image-hdr
Direct link to AVIF
https://www.wide-gamut.com/assets/hdr/WideGamut-Neon-DisplayP3-HDR.avif
Is it possible to fix this?

Devices: Pixel 7 emulator (screenshot)
Samsung S23 Ultra, A72 - same results

Hi. Did you use logarithmic tone mapper in constructor parameters? If so, change it to rec2408. Overexposure is known feature of global logarithmic tone mapping

Yes. This is rec2408 setting. Still overexposed.
The colors are also distorted in comparison with both the original and what Chrome shows

Sorry about that however it's the best that I can do at the moment.
In the most of cases it's highly inlikely that you'll see the same results as in chrome due to chrome will use probably your HDR display instead of tonemapping. The library is intented to do always tone mapping because API of using HDR display is not documented in android ( and probably not everywhere available ) and available only on API 31+.
If you'll disable HDR in chrome results will be almost the same because Chrome will start do tone mapping also.
There is the results of mine tone mapping and MacOS and results are same.

If that is important for you, then you have to reconfigure with undocumented colorspace api library by yourself because I'm not relly curious with using unstable and unclear in use API.
https://developer.android.com/ndk/reference/group/a-data-space
This API crashes some times with surprising crashes and available only for 30+.
If you'll turn off tone mapping and configure Display P3 surface with PQ Transfer function you will get the best result that you may get on your device if your display supports HDR.

Or, as an alternative you may setup OpenGL/Vulkan Surface and render clear data into it. That is only two ways to achieve closest to Chrome results.

There was some discussion where I tried to explain how to get clear data for OpenGL.

Thank you for your time and information.
It’s a pity that, in fact, there is no api for controlling brightness in Android.
However, you have done a good job with good results.
Thank you!

This is not actual brightness it is about physical ability of display to display colors with highest intensity :)
Android introduces only from Android 13 built-in solution for device vendors to start implementing integrated tone mapping, because at the moment they can just skip this step ( especially for low value devices ). Probably in future 10 years they will implement and stabilize API and it will become at least usable.
At the moment sadly there are no easy options to display real HDR.


The Hack Type Checker is reporting errors.

So, I recently installed XHP with the latest version of HHVM, and I setup the Hack type checker.  When I run "hh_client", I get these errors:
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:504:12,13: Invalid return type (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:502:6,10: This is an array (used like a hashtable)
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:504:12,13: It is incompatible with void ($_ is a placeholder variable not meant to be used)
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:513:12,13: Invalid return type (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:511:51,55: This is an array (used like a hashtable)
/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:513:12,13: It is incompatible with void ($_ is a placeholder variable not meant to be used)
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:50:47,49: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:5:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:50:47,49: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:58:48,51: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:5:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:58:48,51: It is incompatible with a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:66:50,50: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:6:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:66:50,50: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:74:51,51: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:74:51,51: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:82:49,49: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:8:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:82:49,49: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:90:48,53: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:8:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:90:48,53: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:96:51,51: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:96:51,51: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:105:53,53: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:105:53,53: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:112:51,51: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:112:51,51: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:55:17,34: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:12:12,17: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:55:26,26: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:66:42,66: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:66:42,66: It is incompatible with an object of type StringableTestClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:71:42,44: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:71:42,44: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:79:42,61: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:79:42,61: It is incompatible with an object of type EmptyTestClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:86:42,69: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:86:42,69: It is incompatible with an object; this class name is unknown to Hack
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:93:42,42: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:93:42,42: It is incompatible with an array
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:97:39,43: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:97:39,43: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:102:39,42: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:102:39,42: It is incompatible with a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:107:38,43: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:107:38,43: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:115:39,58: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:115:39,58: It is incompatible with an object of type EmptyTestClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:122:39,66: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:122:39,66: It is incompatible with an object; this class name is unknown to Hack
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:129:39,39: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:129:39,39: It is incompatible with an array
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:136:38,46: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:136:38,46: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:140:39,44: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:140:39,44: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:145:39,45: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:145:39,45: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:153:39,45: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:153:39,45: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:161:39,42: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:161:39,42: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:167:39,46: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:167:39,46: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:179:41,43: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:179:41,43: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:184:40,44: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:184:40,44: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:186:40,45: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:186:40,45: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:194:40,49: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:194:40,49: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:201:40,48: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:201:40,48: It is incompatible with a string
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:208:41,60: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:8:5,9: This is an array
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:208:41,60: It is incompatible with an object of type EmptyTestClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:215:41,56: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:8:5,9: This is an array
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:215:41,56: It is incompatible with an object of type Vector
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:222:42,61: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:9:5,12: This is an object of type stdClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:222:42,61: It is incompatible with an object of type EmptyTestClass
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:229:42,42: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:12:5,10: This is an object of type Vector
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:229:42,42: It is incompatible with an array (used like a vector)
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:262:35,45: Could not find member :idonotexist in an object of type :test:default-attributes (Typing[4053])
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:262:11,55: This is why I think it is an object of type :test:default-attributes
/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:29:7,30: Declaration of :test:default-attributes is here
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:26:41,41: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:26:41,41: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:28:41,41: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:28:41,41: It is incompatible with an int
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:36:41,41: Invalid xhp value (Typing[4110])
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum
/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:36:41,41: It is incompatible with an int
You guys might want to look into this.  By the way, I am running Debian 8.1 with HHVM-3.7.2-0.

What version of XHP-Lib?
fred@hhvm-oss-bench:~/xhp-lib$ git checkout 2.1.0
Note: checking out '2.1.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 3923d04... Automatically call transferAttributes as needed.
fred@hhvm-oss-bench:~/xhp-lib$ hhvm --version
HipHop VM 3.7.2 (rel)
Compiler: tags/HHVM-3.7.2-0-gfc9f29b2799933d8215faaadfa83de722df64e26
Repo schema: 34f16546e395aed44ad434467b6f96c89b0d8a8b
fred@hhvm-oss-bench:~/xhp-lib$ hh_client
No errors!
fred@hhvm-oss-bench:~/xhp-lib$ hh_server --check $(pwd)
[2015-05-29 09:51:05] Parsing ... 0.416398
[2015-05-29 09:51:05] Heap size: 3442816
[2015-05-29 09:51:05] Naming ... 0.012261
[2015-05-29 09:51:05] Type-decl ... 0.129577
[2015-05-29 09:51:05] Heap size: 9055872
[2015-05-29 09:51:05] Type-check ... 0.335931
No errors!

Same on 2.2.0.

It looks like you're using the dev-hack branch, which is unsupported (see http://facebook.github.io/xhp-lib/2015/03/04/composer-branches-2.0.html)
You probably want to migrate to '~2.2.0' or' ~2.2'
Will re-open if you are having this problem on 'master' or a current 2.x release.

umm... ya, I have this for my composer.json file:
{
"require": {
"facebook/xhp-lib": "2.x-dev"
}
}
and when I run the type checker, I get those errors.

packagist.org showed that as resolving to both dev-hack and dev-master :( I've removed it from dev-hack

composer update should fix things
I'd still strongly recommend switching to stable releases instead of following the branch

Please update the XHP documentation to reflect this.  Once I changed my 'composer.json' file to this:
{
"require": {
"facebook/xhp-lib": "2.x"
}
}
It fixed the problem right away after I did the update.  But the problem with the main XHP documentation, is that it says to do it the other way.

That modification to the branch appears to have fixed 2.x-dev
fred@hhvm-oss-bench:~$ mkdir xhp-test
fred@hhvm-oss-bench:~$ cd xhp-test
fred@hhvm-oss-bench:~/xhp-test$ cat > composer.json
{
"require": {
"facebook/xhp-lib": "2.x-dev"
}
}
fred@hhvm-oss-bench:~/xhp-test$ hhvm ~/composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing facebook/xhp-lib (dev-master 1f3a2c6)
    Cloning 1f3a2c632d0ea2415f71cfee8cdfc63d29b365b3

Writing lock file
Generating autoload files
fred@hhvm-oss-bench:~/xhp-test$ touch .hhconfig
fred@hhvm-oss-bench:~/xhp-test$ hh_client
Server launched with the following command:
	'hh_server' -d '/home/fred/xhp-test'
Spawned hh_server (child pid=16246)
Logs will go to /tmp/hh_server/zShomezSfredzSxhp-test.log
No errors!

Well unfortunately Fred, I wasn't seeing that when I was on 2.x-dev.  I could try to change it back to see if I get errors to help you debug.  :-)

https://github.com/facebook/xhp-lib/commit/2786dc7e08af6dbfdab02d774245258049a24cee fixed 2.x-dev
If you still have that after running composer update, try removing your composer.lock, vendor/, and re-running composer.install. If you still have it after that, we'll need to debug some more :)

Hey Fred, I just removed composer.lock and did "composer install" and I still see dev-master :-(  Here:
Loading composer repositories with package information
Installing dependencies (including require-dev)

Removing facebook/xhp-lib (2.2.0)
Installing facebook/xhp-lib (dev-master 87cfd8f)
Cloning 87cfd8fea00ec19dc0e4fb682cae111601c66adb

Writing lock file
Generating autoload files
Sorry dude. :-(

ok, so it works. :-)


⚠ Bofrost.be has degraded performance

In b3c7e56, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 822 ms

Resolved: Bofrost.be performance has improved in 70dcd17.


JSX element class does not support attributes because it does not have a 'props' property

I use TypeScript and your module.
I create next code:

...
import {ToastContainer} from "react-toastify-redux";

ReactDOM.render(
    <Provider store={store}>
        <ConnectedRouter history={history}>
            <Switch>
                <Route path="/user" component={UserPage}/>
                <ErrorRoute code={404}/>
            </Switch>
        </ConnectedRouter>
        <ToastContainer position={toast.POSITION.BOTTOM_RIGHT}/>
    </Provider>
    , document.getElementById('Project') as HTMLElement
);

And IntelijIDEA get me two error:
Error:(38, 9) TS2607: JSX element class does not support attributes because it does not have a 'props' property.
Error:(38, 10) TS2322: Type '{ position: "bottom-right"; }' is not assignable to type '{}'.
  Property 'position' does not exist on type '{}'.

What wrong?

@Tsyklop Which typescript and react versions?

@fayster react 16.7.0 ts 3.2.2

@Tsyklop did you figure out what the error was ?

@tpucci no

This is too late but @Tsyklop did you figure out a fix?

I see! Thanks @Tsyklop!


User roles and repo access

Hi!
I was wondering if there are any plans on adding some sort of repo access control, might be very useful for localization agencies to run a single instance of Mojito and grant access to different repos to different users/groups. Right now the only way is to keep an instance per client since everybody has access to everything, which is very inconvenient.
P.S. Is this a correct place fo a feature request? :)

Hi @dbek,
The feature would be great to have indeed but it is a big effort. We already had the same issue opened for more than a year. Given the current state of contributions on the project I doubt this will happen short term.
Feel free to jump in the Gitter to ask about features.
Closing this for now.


doc: fix typo

[x] All tests pass
[x] I have run npm run doc

Description

References

ping @GochoMugo @yagop


Improve tests stability

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (b32ca36) to head (56fc066).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##           main      #441        +/-   ##
===========================================
+ Coverage      0   100.00%   +100.00%
===========================================
  Files         0       126       +126
  Lines         0      3700      +3700
  Branches      0       286       +286
===========================================
+ Hits          0      3700      +3700

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Bug: status for dependency validation should be changed to 500.

Originally from #138
When a value returned from a provided dependency fails pydantic validation, user gets a 4xx, but it should really be a 5xx.
Ref: https://github.com/starlite-api/starlite/issues/138#issuecomment-1157066885_

Any advice on process for this one @Goldziher?

Basically there is one try/except block that handles this: https://github.com/starlite-api/starlite/blob/main/starlite/signature.py#L56
You can probably add an attribute on the SignatueModel that will tell you this info, see the attributes already there - which use a ClassVar so pydantic ignores them: https://github.com/starlite-api/starlite/blob/main/starlite/signature.py#L21

Yes OK - so perhaps a set of the names of all function parameters that are known dependencies as a classvar on the sig model and inspect that after the validation error to determine if 4xx or 5xx?

Thats how i'd approach it


Mock Qn4a

Hello! Would appreciate if anyone is able to provide the code for Qn 4a of the mock paper! Thank you!

Here's some code with my own annotations. Hope this helps :)
void forEach(Consumer<? super T> consumer, int n) {
MyStream current = this;
//n iterations
for (int i = 0; i < n; i++) {
T value = this.get();
//applies the transformation using the Consumer
consumer.accept(value);
//replaces current value with the newest value provided by the supplier
current = this.generate(() -> get());
}
}

void forEach(Consumer con, int n) {
for (int i = 0; i < n; i++) {
con.accept(this.get());
}
}

Here's some code with my own annotations. Hope this helps :)
void forEach(Consumer<? super T> consumer, int n) {
	MyStream<T> current = this;
        //n iterations
	for (int i = 0; i < n; i++) {
		T value = this.get();
                //applies the transformation using the Consumer
		consumer.accept(value);
                //replaces current value with the newest value provided by the supplier
		current = this.generate(() -> get());
	}
}

Hi, thanks for sharing. I don't really understand the last line though..
From the given test case, doesn't it mean that forEach handles the generation of 4 more integers? If we just supply () -> get(), won't it always be the same integer being supplied (rather than a randInt)?
Or am I misunderstanding something here? Thanks!

Here's some code with my own annotations. Hope this helps :)
void forEach(Consumer<? super T> consumer, int n) {
	MyStream<T> current = this;
        //n iterations
	for (int i = 0; i < n; i++) {
		T value = this.get();
                //applies the transformation using the Consumer
		consumer.accept(value);
                //replaces current value with the newest value provided by the supplier
		current = this.generate(() -> get());
	}
}

Hi, thanks for sharing. I don't really understand the last line though.. From the given test case, doesn't it mean that forEach handles the generation of 4 more integers? If we just supply () -> get(), won't it always be the same integer being supplied (rather than a randInt)? Or am I misunderstanding something here? Thanks!

Hi, based on the generate() method provided,
current = this.generate(() -> get());
will obtain the next value based on the supplier, as the value will be the next one every time when seed.get() is called based on lazy evaluation. Hence current will be different every time as seed.get() will be different for every time the method is called (at least in the context given in q4a).
I think @Swagston20's answer is way more elegant haha, but hope this makes things clearer!


Add help info for Prom's built-in aggregation and function

As discussed, this PR adds help info for Prom's built-in aggregations and functions:

These description come from Grafana's Prom plugin. Please feel free to suggest any change :D I think they are quite longer than @juliusv 's version.
Also there is a bug in CodeMirror that the max-width: 300px of the Tooltip is not applied at all. I filed both issue and a PR to fix that in CMN repo.

Small update that the max-width fix is merged :D

@dvkndn looks like the build is broken :(. Could you try to fix it please ?

Awesome ! Thanks for your contribution !


Need a way to compare current Working Tree with the changes before a commit (git-timeline)

@bpasero in #147278 brought back Uncommitted Changes under an off-by-default option in the Timeline View.
When that setting is enabled, I can view the diff of the current working tree with some previous commit by selecting the previous commit and then selecting the "uncommitted changes" entry.  This is nice since I can then edit the current version in light of some previous version, as opposed to having an uneditable window when comparing two historical commits.
When "Uncommitted changes" is disabled, it's not obvious how I can get VSCode to compare the worktree version with any historical commit.
Alternatively, the timeline view can give me a "compare selected with working tree" option in the context menu.

I do not think this should be provided from the timeline view when you have decided to disable the uncommitted entry. Maybe a command could be added from SCM or an option provided from the changes view.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Update ds18b20 stable to v2.0.5

This is just a small cosmetic fix for the jsonConfig.

2.0.5 created 29.10.2023
57 user
OK


Pass external blocwise store info through constructors. external bloc…

…kwise store flag lives in static struct side so can't be changed at runtime.

@TeroJaasko


Making eventlog scrollable

Fix for issue #7

I'm also going to edit the CSS a bit to make sure the "Event Log" title doesn't scroll with it


Allow provided templates to be extended through template inheritance

Issue Type

Feature Idea

Summary
Trellis has a convention of splitting complicated Jinja2 templates into separete blocks that can be inherited in child templates.
Eg. their nginx vhost template https://github.com/roots/trellis/blob/master/roles/wordpress-setup/templates/wordpress-site.conf.j2
This would be useful especially for the quite opinionated nginx and varnish templates that Drupal VM provides.

One thing to discuss is how fine grained the blocks should be. I opened a PR with an example of a quite fine grained version.

So, we have Nginx and Varnish at least. Should we hit Apache as well? That would at least give us all the frontend/webserver stuff. MySQL/Postgres would also be potential candidates, but at this time it seems fewer people have had issues that would be more easily resolved extending templates.

Opened #1382 as a follow-up. Going to mark this issue as fixed for a 4.5.0 release, at least.


cicero normalise does not obey the --wrapVariables flag

Describe the bug
cicero normalize --wrapVariables does not work as expected. It does not wrap variables in XML tags.
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to the late delivery and penalty clause of the template library (or any other template)
Run cicero normalise --wrapVariables
It does not wrap variables in XML tags.

e.g.,
bash-3.2$ cicero normalize --wrapVariables
cicero normalize --wrapVariables
11:09:48 AM - info: Using current directory as template folder
11:09:48 AM - info: Loading a default text/sample.md file.
11:09:53 AM - info: Late Delivery and Penalty.
----
In case of delayed delivery except for Force Majeure cases,
"Dan" (the Seller) shall pay to "Steve" (the Buyer) for every 2 days
of delay penalty amounting to 10.5% of the total value of the Equipment
whose delivery has been delayed. Any fractional part of a days is to be
considered a full days. The total amount of penalty shall not however,
exceed 55.0% of the total value of the Equipment involved in late delivery.
If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.

Instead of the correct behaviour for cicero parse followed by cicero draft:
bash-3.2$ cicero parse --output data.json
11:10:11 AM - info: Using current directory as template folder
11:10:11 AM - info: Loading a default text/sample.md file.
11:10:13 AM - info: Creating file: data.json
11:10:13 AM - info:
{
  "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
  "contractId": "065e8a62-7cb6-4483-ab72-7dec389a4835",
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Steve"
  },
  "seller": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Dan"
  },
  "forceMajeure": true,
  "penaltyDuration": {
    "$class": "org.accordproject.time.Duration",
    "amount": 2,
    "unit": "days"
  },
  "penaltyPercentage": 10.5,
  "capPercentage": 55,
  "termination": {
    "$class": "org.accordproject.time.Duration",
    "amount": 15,
    "unit": "days"
  },
  "fractionalPart": "days"
}
bash-3.2$ cicero draft --wrapVariables
cicero draft --wrapVariables
11:10:39 AM - info: Using current directory as template folder
11:10:39 AM - info: Loading a default data.json file.
11:10:42 AM - info: Late Delivery and Penalty.
----
In case of delayed delivery<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C"/>
<variable id="seller" value="%22Dan%22"/> (the Seller) shall pay to <variable id="buyer" value="%22Steve%22"/> (the Buyer) for every <variable id="penaltyDuration" value="2%20days"/>
of delay penalty amounting to <variable id="penaltyPercentage" value="10.5"/>% of the total value of the Equipment
whose delivery has been delayed. Any fractional part of a <variable id="fractionalPart" value="days"/> is to be
considered a full <variable id="fractionalPart" value="days"/>. The total amount of penalty shall not however,
exceed <variable id="capPercentage" value="55.0"/>% of the total value of the Equipment involved in late delivery.
If the delay is more than <variable id="termination" value="15%20days"/>, the Buyer is entitled to terminate this Contract.

Expected behavior
cicero normalize --wrapVariables should behave the same as cicero parse followed by cicero normalise --wrapVariables
Desktop (please complete the following information):

OS: MacOS
Browser N/A
Version 20.7

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Fixed in PR #507
Local test:
bash-3.2$ ~/git/cicero/packages/cicero-cli/index.js normalize --wrapVariables
~/git/cicero/packages/cicero-cli/index.js normalize --wrapVariables
10:13:23 PM - info: Using current directory as template folder
10:13:23 PM - info: Loading a default text/sample.md file.
10:13:28 PM - info: Late Delivery and Penalty.
----

In case of delayed delivery<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C"/>
<variable id="seller" value="%22Dan%22"/> (the Seller) shall pay to <variable id="buyer" value="%22Steve%22"/> (the Buyer) for every <variable id="penaltyDuration" value="2%20days"/>
of delay penalty amounting to <variable id="penaltyPercentage" value="10.5"/>% of the total value of the Equipment
whose delivery has been delayed. Any fractional part of a <variable id="fractionalPart" value="days"/> is to be
considered a full <variable id="fractionalPart" value="days"/>. The total amount of penalty shall not however,
exceed <variable id="capPercentage" value="55.0"/>% of the total value of the Equipment involved in late delivery.
If the delay is more than <variable id="termination" value="15%20days"/>, the Buyer is entitled to terminate this Contract.