QUESTION: "Force" complex hierarchy within the crew

Hey there. Newly discovered this project and I am having fun with it. I looked at process=Process.hierarchical in Crew settings. I have a question about it.
Consider a case where there are four agents: Agent 1 - 5, and four tasks: Task 1 - 5.
There must be a specific hierarchy in the crew:
Agent 1
├── Agent 2
│ ├── Agent 3
│ └── Agent 4
└── Agent 5

When I want to build a crew like this, I can write my code in the following way:
class MYagents:

    def agent1(self):

        return Agent(
            role="Sample role 1",
            goal="Sample goal 1",
            backstory=dedent("""
                Sample backstory for Agent 1.
            """),
            verbose=False,
            llm=sample_llm,
            allow_delegation= True,
        )

    def agent2(self):

        return Agent(
            role="Sample role 2",
            goal="Sample goal 2",
            backstory=dedent("""
                Sample backstory for Agent 2
            """),
            verbose=False,
            llm=sample_llm,
            allow_delegation= True,
        )

    def agent3(self):
        return Agent(
            role="Sample role 3",
            goal="Sample goal 3",
            backstory=dedent("""
                Sample backstory for Agent 3
            """),
            verbose=False,
            llm=sample_llm,
        )

    def agent4(self):
        return Agent(
            role="Sample role 4",
            goal="Sample goal 4",
            backstory=dedent("""
                Sample backstory for Agent 4
            """),
            verbose=False,
            llm=sample_llm,
        )

    def agent5(self):
        return Agent(
            role="Sample role 5",
            goal="Sample goal 5",
            backstory=dedent("""
                Sample backstory for Agent 5
            """),
            verbose=False,
            llm=sample_llm,
        )
# Defining a class for tasks with generic placeholder methods
class MYtasks:

    def task1(self, agent, context):
        return Task(
            description=dedent("""
                Sample task 1 description for Agent 1.
            """),
            expected_output=dedent("""
                Sample expected output for Task 1.
            """),
            agent=agent,
            context = context
        )

    def task2(self, agent, context):
        return Task(
            description=dedent("""
                Sample task 2 description for Agent 2.
            """),
            expected_output=dedent("""
                Sample expected output for Task 2.
            """),
            agent=agent,
            context = context
        )

    def task3(self, agent):
        return Task(
            description=dedent("""
                Sample task 3 description for Agent 3.
            """),
            expected_output=dedent("""
                Sample expected output for Task 3.
            """),
            agent=agent,
        )

    def task4(self, agent):
        return Task(
            description=dedent("""
                Sample task 4 description for Agent 4.
            """),
            expected_output=dedent("""
                Sample expected output for Task 4.
            """),
            agent=agent,
        )

    def task5(self, agent):
        return Task(
            description=dedent("""
                Sample task 5 description for Agent 5.
            """),
            expected_output=dedent("""
                Sample expected output for Task 5.
            """),
            agent=agent,
        )

agents = MYagents()
tasks = MYtasks()

# Creating agents
agent_1 = agents.agent1()
agent_2 = agents.agent2()
agent_3 = agents.agent3()
agent_4 = agents.agent4()
agent_5 = agents.agent5()

# Assigning tasks to agents

task_3 = tasks.task3(agent_3)
task_4 = tasks.task4(agent_4)
task_5 = tasks.task5(agent_5)
task_2 = tasks.task2(agent_2, context = [task_3, task_4])
task_1 = tasks.task1(agent_1, context = [task_2, task_5])

crew = Crew(
    agents=[
        agent1,  # Assuming Agent 1 is the manager in this context
        agent2,
        agent3,
        agent4,
        agent_5
    ],
    tasks=[
        task1,
        task2,
        task3,
        task4
        task5
    ],
    verbose=False,
    process=Process.hierarchical,
    manager_llm=sample_llm
)

However, this brings a question. How can I make agent1 to be the manager. Because it has its own goals and instructions which manager_llm will not have. How can one achieve that? The labor division is made by specific agent. How do I need to change my definitions to achieve such outcome?
thank you for anyone who clarifies this for me.

Looking at a similar problem and I think the best way to achieve this would be to allow custom prompts to be passed to the "manager" agent in a hierarchical process.

@francisjervis I am working on an implementation for that. Basically, you pass in a manager_agent into your crew, and it will be used in .venv/lib/python3.11/site-packages/crewai/crew.py to create the manager. This allows an explicit manager, but not the explicit structure @emilmirzayev asked for out of the box. But you could go further. To explain, read this (you need to modify the lib for this to work):
def get_manager():
    return = Agent(
        role="Crew Manager",
        goal="Manage the team to complete the task in the best way possible.",
        backstory="""You are a seasoned [...]."""",
        allow_delegation=True, # has to be true
        tools=AgentTools(agents=get_agents(expertise=expertise)).tools(),
        llm=llm,
        max_iter=10,
        verbose=True,
    )

def get_crew():
    return Crew(
        agents = get_agents(),
        tasks = get_tasks(),
        manager_llm = llm,
        manager_agent = get_manager(),
        process = Process.hierarchical,
    )

As you can see, the tools of the manager agent takes in a list of tools. By default, these are Delegate work to co-worker, and Ask question to co-worker. The function  AgentTools takes in a list of agents, which are then accessible for the manager. So @emilmirzayev could then just make Agent1 to manager, and pass in only Agent2 and Agent5, so the manager can only delegate to them. This would get you at least half way there.
This works right now on my machine™ and tomorrow I will look into opening a PR to get the changes into the project. But I'll have to look into contribution guidelines first.

I did it another way - adding manager_goal etc parameters to the Crew class which (if present) are used instead of the strings file defaults. This may be more straightforward for most implementations, though being able to pass arbitrary Langchain agents would be useful...

@noggynoggy , interesting approach. How do you plan to add manager_agent to Crew? Overwrite _run_hierarchical_process 'sllm ?

@noggynoggy , interesting approach. How do you plan to add manager_agent to Crew? Overwrite _run_hierarchical_process 'sllm ?

#474

#474  Is merged, I like this idea! We will add some tests next before we cut a version with it, but should come out this week

@francisjervis I would love to have some more information about your solution. could you share some sample code?
Add three parameters to the Crew class in crew.py :

class Crew(BaseModel):
    """
    Represents a group of agents, defining how they should collaborate and the tasks they should perform.
    This class allows customization of the manager's role, goal, and backstory by optionally accepting these values upon initialization.

    Attributes:
        tasks: List of tasks assigned to the crew.
        agents: List of agents part of this crew.
        manager_llm: The language model that will run the manager agent.
        manager_role: Optional custom role for the manager.
        manager_goal: Optional custom goal for the manager.
        manager_backstory: Optional custom backstory for the manager.
        function_calling_llm: The language model that will run the tool calling for all the agents.
        process: The process flow that the crew will follow (e.g., sequential).
        verbose: Indicates the verbosity level for logging during execution.
        config: Configuration settings for the crew.
        max_rpm: Maximum number of requests per minute for the crew execution to be respected.
        id: A unique identifier for the crew instance.
        full_output: Whether the crew should return the full output with all tasks outputs or just the final output.
        step_callback: Callback to be executed after each step for every agents execution.
        share_crew: Whether you want to share the complete crew information and execution with crewAI to make the library better, and allow us to train models.
        language: Language used for the crew, defaults to English.
    """

    __hash__ = object.__hash__  # type: ignore
    _execution_span: Any = PrivateAttr()
    _rpm_controller: RPMController = PrivateAttr()
    _logger: Logger = PrivateAttr()
    _cache_handler: InstanceOf[CacheHandler] = PrivateAttr(default=CacheHandler())
    model_config = ConfigDict(arbitrary_types_allowed=True)
    tasks: List[Task] = Field(default_factory=list)
    agents: List[Agent] = Field(default_factory=list)
    process: Process = Field(default=Process.sequential)
    verbose: Union[int, bool] = Field(default=0)
    usage_metrics: Optional[dict] = Field(
        default=None,
        description="Metrics for the LLM usage during all tasks execution.",
    )
    full_output: Optional[bool] = Field(
        default=False,
        description="Whether the crew should return the full output with all tasks outputs or just the final output.",
    )
    manager_llm: Optional[Any] = Field(
        default=None,
        description="Language model that will run the manager agent.",
    )
    manager_role: Optional[str] = Field(
        default=None,
        description="Custom role for the manager agent."
    )
    manager_goal: Optional[str] = Field(
        default=None,
        description="Custom goal for the manager agent."
    )
    manager_backstory: Optional[str] = Field(
        default=None,
        description="Custom backstory for the manager agent."
    )

etc
Then further down change the start of _run_hierarchical_process:
    def _run_hierarchical_process(self) -> str:
        """Creates and assigns a manager agent to make sure the crew completes the tasks."""

        i18n = I18N(language=self.language)

        role = self.manager_role or i18n.retrieve("hierarchical_manager_agent", "role")
        goal = self.manager_goal or i18n.retrieve("hierarchical_manager_agent", "goal")
        backstory = self.manager_backstory or i18n.retrieve("hierarchical_manager_agent", "backstory")


Default to using multi-threading

For the sake of ergonomics and performance, IMO the default number of threads should be the number of CPU's. In my experience, the cases where single-threaded behavior is required are the exception, not the rule, and users can explicitly opt in for single-threaded behavior if needed.
This would indirectly solve a different issue: the only way to automatically peg the number of threads to the number of CPU's is to set --worker 0 --threads 0 even though the worker argument is listed as deprecated.

Hey @lotabout, I'm curious what you think about this issue and the linked PR. I think it's a great ergonomics improvement, as 99% (if not 100%) of my use cases for rargs/xargs are trivially parallel.


How is  -£1000.00 handled by bareNumber?

I proposed a currency pattern for table schema. I came across a comment in Specs Issue #258 highlighting the -£1000.00 edge case.
How is this handled by TableSchema.js?

It will not work in tableschema-js. We could fix it but it probably should be fixed on the spec level too

If false the contents of this field may contain leading and/or trailing non-numeric characters (which implementors MUST therefore strip).

because it clearly says about leading/trailing characters.

I'll close and leave this to be handled in specs first


Make documentation searchable/filter-able again?

I see the documentation site has been updated (I'm guessing in the last couple of days). Before it had one good feature: being able to filter to jump directly to an API call. It would be super grand to get that back.
Thanks, and great to see new releases (hopefully that don't blow up my code!) coming out <3

I'll see if jsdoc has a filter feature.


feat: add a search function in the treeview / improvement upload files and complete folders to chat from local

improved the folder upload from : https://github.com/coleam00/bolt.new-any-llm/pull/162
Thx to muzafferkadir
In progress :

Delete option / function
Upload progress bar
Exclude Node_Modules folder when uploading
Handling large files upload

Uploading folders fails all you get is blank files with
❯ cat index.css
[object Promise]

Ok, i will check the new script, as far i have tested the upload folder function it will upload the folder in to the /project/.
Thank you!
Br, Stijn


Accept variable number of parameters with FillCommand

Right now FillCommand strictly accepts callerNumber and Description only, thus preventing operator from independently filling these. Consider the pros and cons of allowing operator to fill in autofilled fields as well, which currently can only be changed after submitting the incident into the system. Work together with Mei An @hellopanda128 to deconflict the Edit and Fill command functions.

Decided not to implement this medium priority feature as it is a good practice to enforce filling all required fields in an incident report, considering the real-world application of our app.


Want to add "Particle Swarm Optimization" in Python and C++ in Optimization folder

Is your feature request related to a problem? Please describe.
This algorithm is not present in the File and works in allocation and transportation problems mainly.
Describe the solution you'd like
PSO stands for Particle Swarm Optimization. It is a population-based stochastic optimization algorithm that is inspired by the social behavior of bird flocking or fish schooling. PSO was originally proposed by Eberhart and Kennedy in 1995.
In PSO, a population of particles is used to explore the search space of an optimization problem. Each particle represents a potential solution and moves through the search space to find an optimal or near-optimal solution. The particles adjust their positions and velocities based on their own best-known position (local best) and the global best-known position among all particles.
Additional context
I will add the Python and C++ codes

Assigned!
@rayarka26 : C++ & Python


WFLY-18912 Fix capability name resolution issues in undertow subsystem

https://issues.redhat.com/browse/WFLY-18912
Includes additional commits removing usage of deprecated APIs.

@fl4via Please review.

Thanks so much for the review @fl4via.  I'll fix the commit message typo and rebase the branch against master so that we get another CI run.

Rebasing once more.


how to install on windows through composer

to install on windows
simply first install a laravel using composer then copy and replay the files from this zip into that newly installed laravel folder.
serve your app using PHP artisan serve
its good to go...


Exposing Error Messages

Hi
Currently the SDK returns messages as follows:
* azurerm_virtual_machine.test: autorest:DoErrorUnlessStatusCode 400 PUT https://management.azure.com/subscriptions/d81fd384-a96c-4197-b121-bf0006119534/resourceGroups/acctestrg/providers/Microsoft.Compute/virtualMachines/acctvm?api-version=2015-06-15 failed with 400 Bad Request

To debug this, I need to use charles proxy when my API calls are happening. This error was actually:
{
    "error": {
        "code": "InvalidParameter",
        "target": "computerName",
        "message": "Linux host name cannot exceed 64 characters in length or contain the following characters: ` ~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \\ | ; : ' \" , < > / ?."
    }
}

Using the SDK would be a lot easier if the error messages were exposed. IS this something that can be done?
Paul

I remember we fixed this but apparently there's a regression (assuming you're on tip of master). We should be returning a typed error struct containing those details included in the response. @garimakhulbe @brendandixon PTAL.

@ahmetalpbalkan
Was it a recent fix or quite a while ago? Thanks for the info
Paul

@stack72 that was like 2 months ago. https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md#v300 If your copy of the SDK uses go-autorest-3.0.0 (azure.WithErrorUnlessStatusCode() in SDK methods) then you probably have the fix.

@stack72 Is this working for you now?

@garimakhulbe / @ahmetalpbalkan
I am having to bump our version of the repo. We pinned the dep when master was broken for weeks and now there are a huge amount of changes needed since the change to the vendored packages and autorest
So having to trawl through those changes first
P.

@stack72 Ah, the joys of consuming beta code. Let us know how it goes!

@brendandixon for clarity here: is the Go client beta, or is the ARM API in its entirety considered beta?

@jen20 Just the Go SDK ARM packages. The ARM services are in varying states evident in the API version exposed (e.g., 2015-06-15-preview).

FYI, trying to use the newer version of the SDK is a complete nightmare. I have been trying to do this for 3 weeks now. The code has changes so much as the functionality has changed. the return types from the api are now autorest.Response - how can this be turned into an actual response?

@stack72 The APIs have returned autorest.Response objects for quite some time. autorest.Response wraps the http.Response object (see https://github.com/Azure/go-autorest/blob/master/autorest/client.go#L34).

So how do i get the ID of the resource?
Before I could do the following:
resp, err := cdnProfilesClient.Create(name, cdnProfile, resGroup)
	if err != nil {
		return err
	}

I could then access the ID by saying resp.ID
What's the new way? the examples folder have had this removed - https://github.com/Azure/azure-sdk-for-go/commit/9c6d88ffd9d12fac21805c33ad10b1716aabe355

@stack72 This operation is a long-polling operation, just like Create Virtual Machine. The response does not actually return the ID, but the status of the long running operation. So internally this method's requests go like:
PUT CDN Profile - GET status - GET status - GET status

The response of PUT contains ID, however it is an incomplete CDNProfile object, because the resource creation is still going on. With the breaking change, we started polling on the resource and returning the overall result of the Create operation.
It is exactly the same in .NET SDK as well, it's not going to return you ID either. We just made golang SDK do the polling correctly (before the breaking change, it wasn't polling until the creation was completed, so it had to be done) and consistent with .NET SDK (and other SDKs we have).
You just need to issue another cdnProfilesClient.Get()  to retrieve the ID.

@stack72 Got it. This change came because we had to completely rewrite handling of Azure asynchronous operations, of which cdn.ProfilesClient.Create is one (you can tell since it accepts a cancelation channel).
Azure asynchronous operations are not guaranteed to return the full state upon completion. For example, most of the ARM APIs poll against an OperationResource which conveys only completion / failure (vs. polling against the object itself). Since we could not reliably guarantee consistent results, we elected to no longer try and return them. You were getting lucky in the past. :)
Generally, to get what you need, follow up the Create with a Get. In this case, invoke cdn.ProfilesClient.Get(profileName, resourceGroupName). That should return what you need.
Ok?

Thank you both very much. I wasn't able to find anything about this in documentation and have been trying all sorts

@stack72 Ah, come on! We put a one line comment in the CHANGELOG! :P
We're hoping the SDK will begin stabilizing soon. We're actively working compatibility tests used by the other SDKs.


Change guzzle version to ~6.0

Just changed guzzle version to 6 due to project (my own) conflict. Seems to work fine :)

Hi, thanks for your contribution
But, just changing the dependency will break Daux.io.
According to https://github.com/guzzle/guzzle/blob/master/UPGRADING.md
The parameter base_url has been renamed base_uri
Can you please change the parameter here : https://github.com/justinwalsh/daux.io/blob/fc0581134c66be516d348b71092d595775ea711b/libs/Format/Confluence/Api.php#L30 ?
Once this is done, I will happily merge your change.

Hi, I'm really sorry! I have fixed this issue and added a test for that. I was enforced to make one method public to be able to test it.

No problem, I already crashed a project exactly because of this ;-)
Thank you


docs: Fix RabbitMQ link

Change-Id: I9ed68882624f65203ec0bb472a8729951a662d87
Signed-off-by: Philippe Coval<EMAIL_ADDRESS>Description
Please explain the changes you've made
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[x] Extended the documentation

Thank you for your contribution!


[Enhancement] when partition column is datetime, date should work in create table command

Search before asking

[X] I had searched in the issues and found no similar issues.

Description
CREATE TABLE t_user
(
id int,
name string,
pdate DATETIME
)
PARTITION BY RANGE(pdate)(
PARTITION pd20230418 VALUES less than ("2023-04-20")
)
DISTRIBUTED BY HASH(id) BUCKETS 1;
ERROR 1105 (HY000): errCode = 2, detailMessage = Invalid range value format： errCode = 2, detailMessage = date literal [2023-04-20] is invalid: errCode = 2, detailMessage = Invalid datetime value: 2023-04-20
Solution
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I want to try it.


Feature: The pretty first stable release

Codecov Report

Merging #1 (f91e21b) into main (acac9d0) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage   75.00%   75.00%
=======================================
  Files           4        4
  Lines          28       28
=======================================
  Hits           21       21
  Misses          7        7

Impacted Files
Coverage Δ

src/alloc_error.rs
73.33% <ø> (ø)

src/util/alloc.rs
62.50% <100.00%> (ø)

src/vec/mod.rs
100.00% <100.00%> (ø)

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 acac9d0...f91e21b. Read the comment docs.


adds short gulp installation details

I thought this project could do with a short line and command for people to see how to install the package. Lemme know if you want it somewhere else. Maybe below "Information"? Cheers.

Thanks!


CyberSecurity 3.9.6 Create your own Virus (Ex-2)

Added documentation for issue 3.9.6 (Ex-2)

Description 📜
Created step by step process for creating a virus to eject cd rom continiously.

Type of change 📝

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

Domain of Contribution 📊

[x] Cyber #Security

Checklist ✅

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

@Anant1711 created a pr for week 3 - issue 3.9.6


.gitignore file is ignored or non existent

The of a .gitignore is a minor inconvenience when creating PR's and forks.

Just put a global one somewhere (eg ~/.gitignore) that's tailored to your OS/IDE and save it with
git config --global core.excludesfile <path>

@SilverCory I'm not sure I fully understand what you're asking for.  Could you provide some more details?

A .gitignore file in the root directory masking the temp/unnecessary files that are common in most environments a few examples:

.idea (intellij)
Thumbs.db
.DS_Store
._*
Session.vim
vendor/
pkg/

Yeah you can create global ones, but they get in the way of when you need the files/folders.

@SilverCory
They don't simply "get in the way". That's the whole point of the global file. You can simply add a rule that starts with an exclamation-mark to "un-ignore" a global.
Maybe take a look at https://git-scm.com/docs/gitignore

@sn0w well aware that you can add an exclude ignores but that's an unnecessary step. If I added all the folders I want to ignore on one project, I'd have several lines of un-ignoring them on the other. It just seems more logical to have the ignore on a per-project basis.

Well, I'm open to hearing thoughts from our main contributors on what they think.  I've never had a problem not having a .gitignore file.  How would I know what items need to be in it, for all the people that might want to work on the lib?  How would we balance when some people want some items, and others do not want those items in the .gitignore? Sounds like a pain to me - but I'm open to it if there's a consensus among the existing contributors.

Personally I add all the common IDE's for the language as well as OS files. I opened this because a I nearly pushed the .idea folder.

[SilverCory]
I add all the common IDE's for the language as well as OS files

How does that apply to your they get in the way when you need the files/folders problem?

[bwmarrin]
How would I know what items need to be in it, for all the people that might want to work on the lib?

Exactly.
There's a myriad amount of os/ide/toolchain combinations out there.
Do we really want this project to have a huge gitignore that targets all of them?
With a PR/Issue each time a new combination/tool pops up?
Other big projects like docker also only use the file to ignore stuff that's directly related to the project and tell their contributors to use a global or nested ignore instead.

No comment.

I would like to say well we can use the default golang gitignore from github but it just cover golang files,
So if you would like to ignore things like .idea
I think that you should setup it globally or use your own gitignore which ignore itself.

Based on my own thoughts and the feedback here.  We will not attempt to add a .gitignore file hoping to cover all possible desires of anyone who uses this project.  If we were to add DiscordGo specific files that needed to be ignored, we would create a .gitignore at that time to cover those files.


Add PAC visualizations

utility functions for plotting:

plot the comodulogram
plot the amplitude of many high-frequency bins time-locked to the low-frequency peak or trough

If possible, I’d like these utilities to ONLY emit arrays for plotting rather than plot directly. For example it’d work something like

import matplotlib.pyploy as plt
plt.plot(*comodulogram(….))

This way lets the user easily plot PACs, but also allows for easy customization of those plots (for pub or whatever) without us having to reinvent or mask or **kwarg the matplotlib API. It also allows for other plotting libs in future. To me these to benefits outweigh the slight ‘typing cost’ of plt.plot(*comodulogram(….)) versus comodulogram(….).
Thoughts?
(e)

On Jan 2, 2016, at 3:57 PM, Scott Cole<EMAIL_ADDRESS>wrote:
utility functions for plotting:

plot the comodulogram
plot the amplitude of many high-frequency bins time-locked to the low-frequency peak or trough

—
Reply to this email directly or view it on GitHub https://github.com/voytekresearch/pacpy/issues/32.

Makes sense. Good call.

Just FYI the MNE PR incorporating pacpy now has a couple of quick viz functions built into it. Feel free to make any suggestions etc.


Grid classnames rewamp

Rename grid breakpoints same style as clothes style? Instead of havinh HD or 2K, which basically defines resolution by itself - grid can be customized, so HD can be whatever user wants, same with 2K, someone could use it for resolutions larget than 3K or lower...
Breakpoints names idea:
.col-xs
.col-s (now as sm)
.col-m (now as md)
.col-l (now as lg)
.col-xl
.col-xxl (now as hd)
or shorter variant:
.c-xs
.c-s (now as sm)
.c-m (now as md)
.c-l (now as lg)
.c-xl
.c-xxl (now as hd)
original classnames were same as Bootstrap's ones, becouse of compatibility that was needed when moving away from Bootstrap grid on our projects

Preview:
class="col-xs-12 col-md-6 col-lg-4"
class="c-xs-12 c-m-6 c-l-4

Approved version:
.col-xs
.col-s (now as sm)
.col-m (now as md)
.col-l (now as lg)
.col-xl
.col-xxl (now as hd)
.col-xxxl (now as 2k) - this one could be removed in future versions, as its not really used
.col-pnt stays same

implemented in https://github.com/Foreveryone-cz/LUI-2/commit/9f8d2d675038c82e69d6aaf6e3642f5ee9b81e56
final result: renamed HD to XXL and 2K into XXXL. Other breakpoints will remain same to have at least some sort of backwards compatibility, since those are the most used ones and HD and 2K are used only in extreme situations (full width pages etc)
i know xxxl is pretty long, but at least you won't have hard time remembering something new, and you wont probably use it that much anyway


IBKR 2FA Requirement

HI friends,
It would appear a lot of the hastle comes from re-authentication with the 2FA process. Does anyone know if its possible to open up a IBKR account without using 2FA?

Hey @kaykhan According to IBKR this is not possible. See: https://ibkrcampus.com/ibkr-api-page/cpapi-v1/#auth-faq

Q: Is it possible to authenticate a live brokerage session without the use of a Two Factor Authentication (2FA) device?
A: The login process to the Client Portal API Gateway is the same as to Client Portal. As the Client Portal has access to sensitive information and banking functionalities, two-factor authentication is mandatory for login.

Hey @kaykhan According to IBKR this is not possible. See: https://ibkrcampus.com/ibkr-api-page/cpapi-v1/#auth-faq

Q: Is it possible to authenticate a live brokerage session without the use of a Two Factor Authentication (2FA) device?
A: The login process to the Client Portal API Gateway is the same as to Client Portal. As the Client Portal has access to sensitive information and banking functionalities, two-factor authentication is mandatory for login.

Okay thats unfortunate. Thanks for getting back to me.
Just a follow up question. The reason we are using CPAPI API (With the AUTH limitation) and not the regular WEB API (I believe without the auth limitatino) is because you need to have an "Institutional Account".
Has anyone gone through the process of creating any institutional account, does anyone know what is required?

Has anyone gone through the process of creating any institutional account, does anyone know what is required?

Hi @kaykhan I have both, private ans institutional accounts. Well, you need to have an institution and provide way more documents of proof to IB, compared to a private person.
But also with this account, 2FA is required. And.. i wonder why somebody would not want to have it. It is a security layer that protects you.
I have multipple iBeam instances running in a docker 24/5 since weeks, I never get any re-authentication requests. (only happens to me on the weekend when IB do maintenance, but on the weekend I usually pause iBeam).

Has anyone gone through the process of creating any institutional account, does anyone know what is required?

Hi @kaykhan I have both, private ans institutional accounts. Well, you need to have an institution and provide way more documents of proof to IB, compared to a private person. But also with this account, 2FA is required. And.. i wonder why somebody would not want to have it. It is a security layer that protects you. I have multipple iBeam instances running in a docker 24/5 since weeks, I never get any re-authentication requests. (only happens to me on the weekend when IB do maintenance, but on the weekend I usually pause iBeam).

Hi @HaSiMiPa  My problem is not with 2FA in general, its the pain points that come with having to reauthenticate and relying on a 3rd party tool like IBeam having to use a headleses browser to get this working reliably. Again my gripe is with IBKR and appreciate that someone has made this effort. Before i go into this approach i just want to make sure ive exhausted my other options.

I appreciate you mentioning that you have IBeam running in a docker 24/5 and you never get reauthentication requests. (Is that with your institutional account or your individual private account) ?

Additionally what does your setup look like, are you using twillio with a seperate phone number?
Is your docker setup by any chance publicly available? :)

Can you go into a bit more detail what is required for an institutional account, is this just a business (LLC) you need have registered? Or is there something special about it?

I appreciate you mentioning that you have IBeam running in a docker 24/5 and you never get reauthentication requests. (Is that with your institutional account or your individual private account) ?

Both, there is no difference.

Additionally what does your setup look like, are you using twillio with a seperate phone number?

No. I use default IB 2FA app on my cell.

Is your docker setup by any chance publicly available? :)

iBeam supports Docker out of the box. Go into your Docker app and search iBeam.

Can you go into a bit more detail what is required for an institutional account, is this just a business (LLC) you need have registered? Or is there something special about it?

In my case it is a LLC-like business. You should talk to IB directly to get more information on different types of instituations and their requirements.

I understand i assumed you had this deployed on a linux machine, but it appears you have this running on your local machine which does make it easier to handle the 2fa process.


Error

Unhandled promise rejection: Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (/home/runner/Discord-Bot-3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
at async Client.login (/home/runner/Discord-Bot-3/node_modules/discord.js/src/client/Client.js:226:7) {
code: 'DisallowedIntents'

May i again redirect you to the discord?


chore: add stale action

Description
Changes proposed in this pull request:

add stale action

Related issue(s)

/override pull-eventing-auth-manager-integration-test


chore: Adds codeowners

Addresses: #35
Adding @ipfs/helia-dev as CODEOWNERS.

@whizzzkid : a few things here:

We need this for the other Helia projects (ipns, unixfs) and idelia helia-examples (although I know it's a different org)
You can actually declare CODEOWNERS in github-mgmt.  That will allow you to have one PR that has the codeowners in all the helia examples (rather than doing a PR per repo).  Here's an example PR where that was done: https://github.com/multiformats/github-mgmt/pull/67 (your call of course)


Some questions about getBalanceMessage() and verifyBalanceProof()

I have a question for the micro-raiden architecture.
I noticed you have this function getBalanceMessage(). This is the only place where addressToString() is used.
Looking at getBalanceMessage() it seems like you can do without it. It just turns some fields to string and concatenates them. That can very easily be done on the client side and does not need a smart contract function.
Same goes for uintToString(), apart from the fact that it's also used in verifyBalanceProof().
Looking further it seems you use getBalanceMessage() in verifyBalanceProof() and then use verifyBalanceProof() in the close() functions.
So here one thing to note. You should undo the constant keyword from both getBalanceMessage() and verifyBalanceProof() as you are not using them as constants. You call them from `close(). This is confusing to read.
Furthermore I don't see why you need to concatenate string, and have to do string manipulation which is expensive. Why not play with an array of bytes and encode/decode them?

@LefterisJP @loredanacirstea  are you happy with the reply? If yes, please close the issue :)


npm run crm-sync:sf:org:deploy is failing

-- deploying the base meta-data to the specified Salesforce Org; please standby
deployArguments { _rejectOnError: true, sourcepath: './src/sfdc/base' }
,----------------------------------------------------------------------.
|                                                                      |
|                                                                      |
|<PHONE_NUMBER>8                                                   88    |
|  88                                                            88    |
|  88                                                            88    |
|  88aaaaa      8b,dPPYba,  8b,dPPYba,   ,adPPYba,   8b,dPPYba,  88    |
|  88"""""      88P'   "Y8  88P'   "Y8  a8"     "8a  88P'   "Y8  88    |
|  88           88          88          8b       d8  88          ""    |
|  88           88          88          "8a,   ,a8"  88          aa    |
|<PHONE_NUMBER>8  88          88           "YbbdP"'   88          88    |   |                                                                      |   |                                                                      |   |                      Oh no! Not one of these :(                      |   |                                                                      |   |         It looks like you've run into an error or exception.         |   |                       Please log an issue via                        |   |   https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues.    |   |    That's the best way to engage us. Thank you for your support!     |   |                                                                      |   ----------------------------------------------------------------------'
[
{
"stack": "DeployFailed: Deploy failed.\n    at DeployResultFormatter.display (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/formatters/deployResultFormatter.js:61:19)\n    at Deploy.formatResult (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:127:23)\n    at Deploy.run (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:40:21)\n    at processTicksAndRejections (node:internal/process/task_queues:93:5)\n    at async Deploy._run (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)",
"message": "Deploy failed.",
"name": "DeployFailed",
"exitCode": 1,
"commandName": "Deploy",
"code": "Error"
}
]
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: END

Neeraj, were you able to get any solution? I am facing the same error.

Hi @ashusapient - No.  Not yet.

Hello @neeraj-jain01 ,
Thank you for opening an issue here.
Can you please provide more context?
Would you be able ot run  sfdx force:source:deploy -p "src/sfdc/base" and give the error output?
Thanks

If I run the comand you mentioned. here is the output
On trying to deploy manually using command: sfdx force:source:deploy -p src/sfdc/base I get following error
*** Deploying v52.0 metadata with SOAP API v53.0 connection ***
Deploy ID: 0Af5G00001PcnIoSAJ
DEPLOY PROGRESS | ████████████████████████████████████████ | 600/600 Components
=== Component Failures [4]
Type Name Problem
───── ────────────────────────────────────── ───────────────────────────────────────────────────────────────────────────────────────────────
Error Account.B2C_Commerce_Customer_Profiles In field: RecordType - no RecordType named Account.B2CBusinessAccount found (277:18)
Error B2C_CRM_SYNC In field: recordType - no RecordType named Account.B2CBusinessAccount found (1229:29)
Error Account.B2CBusinessAccount The label:B2C Business Account on record type:Account.B2CBusinessAccount is not unique (284:18)
Error Case ReadWriteTransfer is not a valid sharing model for Case when Account sharing model is Private

Having similar issue:
`[
{
"stack": "DeployFailed: Deploy failed.\n    at C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\lib\source\sourceApiCommand.js:71:31\n    at async SourceDeployCommand.execLegacyCommand (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\ToolbeltCommand.js:149:29)\n    at async SourceDeployCommand.run (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\commands\force\source\deploy.js:32:16)\n    at async SourceDeployCommand._run (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\@salesforce\command\lib\sfdxCommand.js:81:40)",
"message": "Deploy failed.",
"name": "DeployFailed",
"actions": [
"Check the order of your dependencies and ensure all metadata is included."
],
"exitCode": 1,
"columns": [
{
"key": "problemType",
"label": "TYPE"
},
{
"key": "filePath",
"label": "PROJECT PATH"
},
{
"key": "error",
"label": "PROBLEM"
}
],
"data": [
{
"columnNumber": "16",
"lineNumber": "770",
"error": "Could not resolve list view column: ACCOUNT.RECORDTYPE (770:16)",
"fullName": "Contact.Non_B2C_Commerce_Customer_Profiles",
"type": "ListView",
"filePath": "src\sfdc\base\main\default\objects\Contact\listViews\Non_B2C_Commerce_Customer_Profiles.listView-meta.xml",
"problemType": "Error",
"height": 1
},
{
"error": "lookupPhoneDialogsAdditionalFields ACCOUNT.PHONE1 not found",
"fullName": "Contact",
"type": "CustomObject",
"filePath": "src\sfdc\base\main\default\objects\Contact\Contact.object-meta.xml",
"problemType": "Error",
"height": 1
}
],
"commandName": "SourceDeployCommand",
"code": "Error"
}
]
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: END
----------------------------------------------------------------------------`

Not sure whether it is right solution or not, but when I was running sfdx force:source:deploy -p "./src/sfdc/base" command it showed me exact issue, I removed those fields in the Objects and it worked.
Removed fields:
ACCOUNT.PHONE1 from \src\sfdc\base\main\default\objects\Contact\Contact.object-meta.xml
ACCOUNT.RECORDTYPE, ACCOUNT.TYPE from \src\sfdc\base\main\default\objects\Contact\listViews\Non_B2C_Commerce_Customer_Profiles.listView-meta.xml


UPDATES fail intermittently

Error message:
sqlalchemy.orm.exc.StaleDataError: UPDATE statement on table 'mytable' expected to update 1 row(s); 0 were matched.

When I pip uninstalll sqlalchemy-sybase it works fine for some reason.
Version info:
sqlalchemy - 1.3.17
sqlalchemy-sybase - 1.0.3
More information to be added later as I have it.

Problem #2? To be investigated.

Not #2 - I tried with version 1.0.2 and it also failed.
it seems to occur when UPDATE is called.
Fail:
2020-06-11 20:30:45,369 INFO sqlalchemy.engine.Engine SELECT user_name() as user_name
2020-06-11 20:30:45,371 INFO sqlalchemy.engine.Engine ()
2020-06-11 20:30:45,467 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2020-06-11 20:30:45,473 INFO sqlalchemy.engine.Engine SELECT mytable.id AS mytable_id
FROM mytable
WHERE mytable.id = ?
2020-06-11 20:30:45,475 INFO sqlalchemy.engine.Engine (1,)
1799506.0
2020-06-11 20:30:45,579 INFO sqlalchemy.engine.Engine UPDATE mytable SET attr=? WHERE mytable.id = ?
2020-06-11 20:30:45,582 INFO sqlalchemy.engine.Engine (45, 1)
2020-06-11 20:30:45,679 INFO sqlalchemy.engine.Engine ROLLBACK

Succeeds when done the second time and no change in the value and UPDATE is not called.

Uninstalled and it works just fine - wonder what is different between the two :thinking:


Revert "Change store location parameter passing and pytest"

Reverts WaAaaAterfall/improv-shiyang#1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 9 (88.89%)  changed or added relevant lines in 3 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.3%) to 87.043%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

improv/actor.py
1
2
50.0%

Files with Coverage Reduction
New Missed Lines
%

improv/link.py
1
69.17%

improv/actor.py
5
75.94%

Totals

Change from base Build<PHONE_NUMBER>:
0.3%

Covered Lines:
1001

Relevant Lines:
1150

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 9 (88.89%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 86.535%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

improv/actor.py
1
2
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
919

Relevant Lines:
1062

💛  - Coveralls


chore: drop lerna

chore: use workspaces, fix deps
chore: install core-js@2 (required by babel)

I'll fix the conflicts whenever we're ready to give this a go.

It shouldn't change anything about deployment, no. I'm cautiously optimistic.
The main thing I'm curious about is how renovate handles workspaces.


support SRID parameter

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

10 of 12 (83.33%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 68.472%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

maker.go
9
11
81.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
708

Relevant Lines:
1034

💛  - Coveralls


Support isFocused and requestFocus for Window's

Something like this:
val windowInfo = LocalWindowInfo.current
LaunchedEffect(windowInfo) {
    snapshotFlow { windowInfo.isWindowFocused }
        .onEach { println(it) }
        .launchIn(this)
}

val windowFocusRequester = remember(::WindowFocusRequester)

Window(focusRequester = windowFocusRequester) ...

Window {
    Button(onClick = { windowFocusRequester.requestFocus() })
}

Currently (1.0.0-beta5) we can use Swing interop:
import androidx.compose.runtime.DisposableEffect
import androidx.compose.ui.window.singleWindowApplication
import java.awt.event.FocusEvent
import java.awt.event.FocusListener

fun main() = singleWindowApplication {
    DisposableEffect(Unit) {
        window.addWindowFocusListener(object : WindowFocusListener {
            override fun windowGainedFocus(e: WindowEvent) {
            }

            override fun windowLostFocus(e: WindowEvent) {
            }
        })
        onDispose {}
    }
}

WindowInfo.isWindowFocused seems to working fine for me. Was this implemented recently?


Improve contrast on Docsearch dark mode for selected item

What kind of changes does this PR include?

Minor content fixes (broken links, typos, etc.)

Description

Closes #1324
Algolia Docsearch highlighted item now has dark text for better contrast against orange compared to previous white color.

@charlesfrisbee This looks good! I did just compare it to the docs site live, and yes, I see an improvement! I'm going to ask @Yan-Thomas to review this one and take it from here. Thank you so much for this contribution!

LGTM, thanks @charlesfrisbee!


Installation error

I'm getting the following error:
ERROR: Package 'colmi-r02-client' requires a different Python: 3.9.2 not in '<3.13,>=3.11'

At the moment I've only tested with python 3.11, it looks like you have
python 3.9
On Mon, Oct 21, 2024, 13:48 Garry Hayne @.***> wrote:

I'm getting the following error:
ERROR: Package 'colmi-r02-client' requires a different Python: 3.9.2 not
in '<3.13,>=3.11'
—
Reply to this email directly, view it on GitHub
https://github.com/tahnok/colmi_r02_client/issues/8, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACYSEPNJ2C4TE6EYX5QKG3Z4U47XAVCNFSM6AAAAABQKWQIKGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDGMRWGMZDKOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Any way around the error?

Similar situation here, but with Python 3.13.0 (which is of course not less than 3.13)
Maybe only allowing installation on exactly two minor python versions is a bit too restrictive? Especially if pipx is the recommended installation method.

Fair, I just used whatever poetry defaulted to but an upper bound seems
dumb
On Tue, Oct 22, 2024, 20:26 Ben Haney @.***> wrote:

Similar situation here, but with Python 3.13.0 (which is of course not less
than 3.13)
Maybe only allowing installation on exactly two minor python versions is a
bit too restrictive? Especially if pipx is the recommended installation
method.
—
Reply to this email directly, view it on GitHub
https://github.com/tahnok/colmi_r02_client/issues/8#issuecomment-2430556169,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACYSEND45DVZ2LL6K3QYS3Z43UM5AVCNFSM6AAAAABQKWQIKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGU2TMMJWHE
.
You are receiving this because you commented.Message ID:
@.***>

Ok, I removed the upper bound if you want to try again

I'm open to lowering the python version but I'm gonna guess I used something that has been out since 3.9 was released and I'd have to consider if it's worth supporting. If someone does look, feel free to share


⚠ ClamAV has degraded performance

In b4a1163, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 166 ms

Resolved: ClamAV performance has improved in 228a32f.


Update readme and ui demo

Closes #3.

Problems:

[README.md] CI banners not pointing to own project
[_config.yml (if using Jekyll) or _markbind/layouts/default.md (if using MarkBind)] traces of AB-3 remain


Keyed  inside  updates during leave transition

Version
3.0.0-alpha.4
Reproduction link
https://codepen.io/21stCenturyJonas/pen/YzPoxZJ?editors=1010
Steps to reproduce

Add a <transition-group>
Wrap it in a <transition> with mode="out-in"
Key the <transition-group so changes destroy the old node and create a new one
Change the key

What is expected?
The previous <transition-group> is destroyed but kept alive until the leave transition is done, then the new <transition-group> appears
What is actually happening?
The leave transition is applied, but the new <transition-group> (or the old node, but new children?) is immediately shown

The triggered animation node should not follow the length of v-for to re render, only the new node

Is this fixed by 0764c33d3da8c06d472893a4e451e33394726a42?

This seems to be fixed in the latest release

Yep, seems like alpha.11 fixed this already 👍🏻


Exclude empty packages

Coverage remained the same at 100.0% when pulling 53ed980e1a4018b6c2397a178b0e5f065be7b1ba on ignore_empty_directories into 34b2acad2e01355b1770d287c4cca63ec9554652 on master.

Coverage remained the same at 100.0% when pulling 53ed980e1a4018b6c2397a178b0e5f065be7b1ba on ignore_empty_directories into 34b2acad2e01355b1770d287c4cca63ec9554652 on master.


Development

Turned all structure to a class

Turn wrapper.js from a procedural to an object-oriented approach.


New version: OnionShare.OnionShare version 2.6.1

Pull request has been created with komac v2.1.1 :rocket:
Microsoft Reviewers: Open in CodeFlow

For moderators
This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping Exorcism0666.

[!warning]
With the new version of Komac, numerous Pull Requests may contain bugs or unwanted elements. If such issues arise, please tag russellbanks so that these bugs can be addressed in future updates.

[!important]
Please carefully review these Pull Request before merging. If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly. (It is best to inform Exorcism0666 of the closure.)

良い一日をお過ごしください！

Automatic Validation ended with:   Installation failed with exit code -1978334957  > 2024-02-28 10:55:07.230 [CLI ] Installer [X64,wix,User,en-US] not applicable: Machine is not compatible with X64  > 2024-02-28 10:55:19.430 [CLI ] ShellExecute installer failed: 1633 > MSI (s) (D0:48) [10:55:19:324]: Product: OnionShare -- Installation failed.   (Automated response - build 846.)

Automatic Validation ended with:

Installation failed with exit code -1978334957
2024-02-28 10:55:19.430 [CLI ] ShellExecute installer failed: 1633
MSI (s) (D0:48) [10:55:19:324]: Product: OnionShare -- Installation failed.

(Automated response - build 849.)

Hi @Exorcism0666,

This PR's version number 2.6.1 has 3 parameters (sets of numbers between dots - major, minor, etc), which is greater than the current manifest's version 2.6, which has 2 parameters.

Does this PR's version number exactly match the version reported in the Apps & features Settings page? (Feel free to attach a screenshot.)
(Automated response - build 853)

Hi @Exorcism0666,
This manifest adds Apps and Features entries that aren't present in previous PR versions. These entries should be added to the previous versions, or removed from this version.
(Automated response - build 853.)

Hi @Exorcism0666,
This manifest adds Apps and Features entries that aren't present in previous PR versions. These entries should be added to the previous versions, or removed from this version.
(Automated response - build 853.)

These entries should be added to the previous versions.

I'm not completely sure, but I believe I was in error about these specific Apps and Features entries being required in all manifests for the PackageIdentifier.


minor dark theme related fix

tomorrow i have a meeting with marketing to confirm the new colors, i will push the final commit after that


Roll Packages from 881c1f552d0f to 8248ef23b29a (3 revisions)

https://github.com/flutter/packages/compare/881c1f552d0f...8248ef23b29a
2023-08-10<EMAIL_ADDRESS>Bump github/codeql-action from 2.21.2 to 2.21.3 (flutter/packages#4664)
2023-08-09<EMAIL_ADDRESS>go_router should allow setting requestFocus (flutter/packages#4636)
2023-08-09<EMAIL_ADDRESS>[webview_flutter_android][webview_flutter_wkwebview] Fixes widget rebuild bug caused by key type (flutter/packages#4667)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Pointer class missing from link upvote

              {voteMutation => (

                  ▲

              )}

within the Link.js should probably be set to
              {voteMutation => (

                  ▲

              )}

This will allow the user to see that the upvote icon is clickable prior to setting up the subscription.

Good improvement.


Use for 16 bit images

Hello,
I would like to use the architecture for 16 bit input/output images. But when I do so, the images are converted internally to 8bit images. Can I know what changes to make to make it compatible with 16 bit images.
Thanks,
Tanvir

Hi @parhartanvir  Did you solve your problem? I would like to maintain the 16 bit image depth for my usecase aswell.
Thanks,
Akhil


I can't parse objects in square brackets: Select [a] from [b]

no sql can't be parsed if square brackets are used (which is normal in mssqlserver)
SELECT DISTINCT
CurrentDate = T1.CurrentDate,
CurrentDate_i = A
FROM
config.[Calendar_T] T1 (NOLOCK)
WHERE
1 = 1

I see, there is --ms option to indicate the dialect, this will work


Refactor private fields of TerarangerOne

Do you guys agree with this change?

Seems good to me

Thanks Mateusz, sorry for late response :(


⚠ Bofrost.fr has degraded performance

In 0390d87, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1239 ms

Resolved: Bofrost.fr performance has improved in 08997c6 after 7 minutes.


Updating dependencies during development

The readme states that I need to execute "./run pip3:install" to update dependencies during development.
Should this only be run when you want to "lock in" your dependencies to your docker container?  i.e. if I'm working in my pycharm IDE and adding new python modules via pip3 , running the "./run pip3:install" command takes time to rebuild everything (3-4mins).   I assume there's no need to rebuild after each module install as this would be impractical.
Just want to understand this process as a docker noob.

Hi,
Since all of our dependencies live in the Docker image (not our dev box) that command will install our dependencies in the Docker image, start things up and copy out the lock file to our dev box so we can commit it to version control.
I don't use PyCharm but if it's installing dependencies locally and not remotely in the Docker image then you're not really running the app in Docker which is going to cause other issues down the road like having to configure connection strings to connect to Redis and Postgres from localhost instead of their Docker Compose service name.
But the takeaway here is yes it's time consuming and inconvenient to do this with Docker but it's a necessary evil to get our dependencies installed into a Docker image in a persistent way.

Going to close this. There's not much that can be done here. It's how Docker works and I think the above comment covers it.


Can not link to my account in Alexa app

I have the same issue of #62. Could you remove the tokens of my account? Username is Johnny. Another name is Johnny_R.

Should be done


The title of NW.js creator in the README is incorrect

The title of NW.js creator in the README is incorrect. node-webkit and NW.js creator Roger wrote a statement about this. See the full story here: https://groups.google.com/d/msg/nwjs-general/LIrC7zHtQdo/6Gd5MXVsCAAJ

Thanks for pointing this out. I only read Zhao Cheng's posts yesterday for the first time. I know Roger Wang continues to work diligently on NW.js, and this new post explains the prior involvement of himself and others quite well.
I could change it to co-creator, but for now it's probably enough to remove mention of NW.js, though it was mainly my intention of letting people know there was prior connection between both projects from the beginning.


python3Packages.add-trailing-comma: 2.2.1 -> 2.2.3

Update to current version
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 169217 run on x86_64-linux 1

2 packages built:

python310Packages.add-trailing-comma
python39Packages.add-trailing-comma


[stable/mongodb-replicaset] Update maintainers

Add @steven-sheehy
Remove @foxish

Signed-off-by: Reinhard Nägele<EMAIL_ADDRESS>Checklist

[x] DCO signed
[x] Chart Version bumped

/lgtm
/approve
Thanks!

Pushing manually. The CI failure is unrelated an will be fixed separately.


Nested Component Projects: Component-preload.js files are not generated

Expected Behavior
When running a preload-build, Component-preload.js files should be generated for each Component.js file within an ui5 app project.
Current Behavior
In UI5 App Projects that contain component files, a Component-preload.js file is only generated for the root level Component.js files. For any other Component.js files that are placed in subfolders within the project, debug sources – yet no preload files - are currently being generated. This leads to 404 requests during runtime such as:
ui5loader-dbg.js GET https://**/Component-preload.js 404

Steps to reproduce the issue

Clone the openui5-sample app

Within the webapp directory, create a sub folder and add a Component.js file and some basic content

Build the projects
 ui5 build --a

A preload file has only been generated for the top-level Component.js file

Affected components

[X] ui5-builder
[ ] ui5-server
[ ] ui5-cli
[ ] ui5-fs
[ ] ui5-project
[ ] ui5-logger

A feature for this has already been implemented with https://github.com/SAP/ui5-builder/pull/6. Yet we still have to add documentation for this 😑
Closing as duplicate of https://github.com/SAP/ui5-builder/issues/202

@RandomByte  thanks for elaborating. I think my question refers more to the current default behavior of the ui5-builder rather than any custom configuration of it.
I now understood that by default only a single Component-preload.js file will be created that will include any nested component within the application project. Still in this case two questions come to my mind:

Why are still Component-dbg.js files created for each nested Component file?

Since the root Component-preload.js file includes nested Component files, those should be known to the UI5 instance after an initial load of a project’s root Component-preload.js file.
Therefore, when such a Component is being loaded at run time (e.g. through
sap.ui.core.ComponentContainer) I would expect that no further network calls are made to retrieve a nested component. However, it seems that UI5 does still try to request preload files for such nested Component, which then result in a 404 response.

This indeed should not be the case. The runtime checks whether the corresponding Component.js module has been loaded (or preloaded) before requesting the Component-preload.js.
If you still see requests, then something goes wrong with the check here.
Is there anything special about the namespace of the nested component?

@codeworrior Thanks for the info. I’ll see if I can create a nested component sample where the described behavior occurs.

Reopened to clarify whether the expected behavior is not met.

Hello, I believe the issue to arise when a resource mapping is being used.
I have created an example where the issue can be reproduced:
https://github.com/BenReim/UI5Lab-app-simple/tree/component-load-issue

Hi! I have absolutely same issue. I have an app which is in fact a set of 3 different Components.
I see in the comment that the issue was resolved by builder configuration but even that is quite difficult to understand. @codeworrior @matz3  Do you guys have some example how we can build preload modules for subcomponents? Thank you!

@BenReim  could you please clone this
https://github.com/ThePlenkov/UI5Lab-app-simple/tree/component-load-issue
and try
grunt build


LFS-25: As a bioinformatician, I can upload somatic variant files as CSVs in bulk

LFS-449: New questionnaire: SomaticVariants
LFS-450: Page for bulk variants upload
LFS-451: New answer type: SomaticVariantsAnswer
LFS-452: New answer component: SomaticVariantsQuestion

When I try to associate tumour region with tumour, I get the blank screen.
Also, if there is no tumour to choose, I should be able to create a new one. Perhaps this functionality is in PR for LFS-426/LFS-458
https://github.com/ccmbioinfo/lfs/pull/226#pullrequestreview-437578940 ?

Is there any test file that I can use to test upload?

@sashaandjic  >> When I try to associate tumour region with tumour, I get a blank screen.
I am not sure which place are you talking about. In my PR there was just a file upload and a SomaticVariants questionnaire with static display of uploaded file.

@sashaandjic I used arbitrary files to test, like those you can download from here https://support.spatialkey.com/spatialkey-sample-csv-data/

@sashaandjic >> When I try to associate tumour region with tumour, I get a blank screen.
I am not sure which place are you talking about. In my PR there was just a file upload and a SomaticVariants questionnaire with static display of uploaded file.

I was trying to create a new Somantic Variants Data form. As soon as I chose the subject the form goes white. The same happens when I click on any existing Somantic Variants Data forms.

As per LFS-452 for a start  this form is only auto-created when file is uploaded. The actual UI will be detailed later, we do not create the form itself yet as far as I understood. Main focus of the PR was LFS-450, the bulk file upload.

@marta- Added Drag&drop area

Small complaint: "tumor" should be spelled as "tumour" ( I make this mistake all the time too)

Also, the error does not seem to clear up once properly named file is uploaded.

After successful upload of file called qwerty_asdfg tt.csv, the subject qwerty gets created.

However subject is not displayed when I open the form.

I uploaded file phenomecentral_telethon_measurements_2020-07-22_17-15.csv and got the follwing:

pheneomecentral- subject type of patient
telethon - subject type of tumor associated with phenomecentral
measurements - subject type of tumor region associated with telethon

somatic variants data form associated with newly created tumor region

Problem: importing file a_bcd.csv created blank tumor region that I cannot access:

I was expecting an error stating :File name test.csv does not follow the name convention _.csv*

@sdumitriu  Question: Importing identical file twice, results in a new Somatic variant data form. Is this correct?

Sometimes I can select and upload multiple files with success. However sometimes I can't even select the multiple files.

@sdumitriu reported problems with concurrency when uploading multiple files. It is logged in a separate task https://phenotips.atlassian.net/browse/LFS-535?filter=16096

Yes.
On Fri, Aug 28, 2020, 11:53 Sasha<EMAIL_ADDRESS>wrote:

@sdumitriu https://github.com/sdumitriu Question: Importing identical
file twice, results in a new Somatic variant data form. Is this correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ccmbioinfo/lfs/pull/240#issuecomment-682759711, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAVUV3VGVY2AXASU5YNPRDSC7HIZANCNFSM4OJBVEPQ
.

Should the required name convention be .csv_ or _.csv? (underscore after tumor)
I am stil able to import files like 1_2.csv, which result in blank tumor region subject being created.
Everything else is working as expected.

@sashaandjic I'm not sure too. By LFS-449 specs TumorRegion subject type is required. By the codereview comments - not required.

@marta- If I upload file named abc_123.csv, I get 2 subject created: patient abc and tumor 123.

Since there is no tumor region the Somatic Variants Data file gets associated with the tumor. Is this correct?

Since there is no tumor region the Somatic Variants Data file gets associated with the tumor. Is this correct?

Yep, it's perfect.


SCDLPComplianceRule: NotifyAllowOverride multiple values powershell error

Details of the scenario you tried and the problem that is occurring
When running the resulting Office365TenantConfig.ps1 to generate the .mof file it throws an error related to NotifyAllowOverride of a SCDLPComplianceRule.
Verbose logs showing the problem
The error in question:

Office365DSC\SCDLPComplianceRule : At least one of the values 'FalsePositive, WithJustification' >is not supported or
valid for property 'NotifyAllowOverride' on class 'SCDLPComplianceRule'. Please specify only >supported values:
FalsePositive, WithoutJustification, WithJustification.

Suggested solution to the issue
NotifyAllowOverride should be generated as an array and not a concatenated string.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
SCDLPComplianceRule 81a38893-c3c2-45a3-a475-50f85d1716f7
        {
            ReportSeverityLevel                 = "Medium";
            NotifyUser                          = @("SiteAdmin","LastModifier","Owner");
            Disabled                            = $False;
            BlockAccessScope                    = "All";
            IncidentReportContent               = @("DocumentLastModifier","Detections","Severity","DetectionDetails","OriginalContent");
            GenerateIncidentReport              = @("SiteAdmin");
            Ensure                              = "Present";
            GlobalAdminAccount                  = $Credsglobaladmin;
            ContentContainsSensitiveInformation = MSFT_SCDLPSensitiveInformation
            {
                name = 'EU Debit Card Number'
                id = '0e9b3178-9678-47dd-a509-37222ca96b42'
                maxconfidence = '100'
                minconfidence = '75'
                classifiertype = 'Content'
                mincount = '10'
                maxcount = '-1'
            };
            BlockAccess                         = $True;
            Name                                = "High volume of EU Sensitive content found";
            AccessScope                         = "NotInOrganization";
            Policy                              = "General Data Protection Regulation (GDPR)";
            NotifyAllowOverride                 = "FalsePositive, WithJustification";
        }

Windows 10
Powershell 5.1
Version of the DSC module that was used ('dev' if using current dev branch)
Office365DCS <IP_ADDRESS>8
ReverseDSC <IP_ADDRESS>

@vinkobedek The issue has been fixed. Please validate that the latest Dev branch works


java multiline comments

(Original issue 299 created by None on 2007-10-05T21:13:55+00:00)
I would like to see a sample to set up multilinecomments in java a single token (or token per line). Currently my lexer keeps on resetting per newline, starting with regular parsing again. I did follow the multiline example currently with no success.
    'root': [
        (r'/\\*', Comment.Multiline, 'comment'),
        (r'//.*?\\n', Comment),

    'comment': [
        (r'[^\\*/]|\\n', Comment.Multiline),
        (r'/\\*', Comment.Multiline, '#push'),
        (r'\\*/', Comment.Multiline, '#pop'),
        (r'[\\*/]', Comment.Multiline)
    ]

btw: version 0.8.1
Reported by guest

(Original issue was assigned to gbrandl)
(Original issue 299 last updated on 2007-10-14T16:55:28+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by gbrandl on 2007-10-14T16:55:28+00:00)
I don't see what you're trying to do here - I'm told that Java's /* ... */ comments do not nest, so after /* /* a single */ ends the comment.


mtime comparison between remote and local storage incompatible

This exception is thrown when the the DAG solver tries to compare the mtime of a local file and one from a remote storage provider (iRODS in my case).
Snakemake version
snakemake 8.5.3
snakemake-storage-plugin-irods 0.1.1
python 3.12.2

Describe the bug
This line may compare incompatible types (datetime.datetime vs. float), throwing a TypeError:
https://github.com/snakemake/snakemake/blob/b6b16a7e735869343a094a5e5d475a3eac14afe3/snakemake/io.py#L617
AFAIK this is due to the mtime of a storage plugin returning a float, as defined in the ABC here:
snakemake/snakemake-interface-storage-plugins/snakemake_interface_storage_plugins/storage_object.py#L135
While the local storage returns Mtime, I think? And then does something else that produces a datetime.datetime?
Logs
. . .

Building DAG of jobs...
WARNING:snakemake.logging:Building DAG of jobs...
Traceback (most recent call last):
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/cli.py", line 2010, in args_to_api
    dag_api.execute_workflow(
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/api.py", line 590, in execute_workflow
    workflow.execute(
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 1068, in execute
    self._build_dag()
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/workflow.py", line 1024, in _build_dag
    async_run(self.dag.init())
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/common/__init__.py", line 89, in async_run
    return asyncio.run(coroutine)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/dag.py", line 210, in init
    await self.update_needrun(create_inventory=True)
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/dag.py", line 1289, in update_needrun
    if await update_needrun(job):
       ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/dag.py", line 1190, in update_needrun
    and await f.is_newer(output_mintime_)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "$CONDA_ROOT/envs/snakemake/lib/python3.12/site-packages/snakemake/io.py", line 617, in is_newer
    return (await self.mtime()).local_or_storage(follow_symlinks=True) > time
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'datetime.datetime' and 'float'

Minimal example

Have a rule with a remote input file.
Execute the workflow so the file stats get cached.
Rerun the workflow.
:tada:

storage:
    provider = "irods"

rule all:
    message: "All target files have been generated/updated"
    default_target: True
    threads: 1
    input:
        expand("{project}/from_remote.txt", project=OUTPUT_DIR)

rule download_samples:
    message: "[IRODS] Copying {input} to local storage"
    input:
        storage.irods("irods://zone/file.txt")
    output:
        "{project}/from_remote.txt"
    threads: 1
    resources:
        mem_mb = 100,
        runtime_max = 3600
    shell:
        "cp --preserve=timestamps --no-target-directory --verbose --dereference"
        " {input:q}"
        " {output:q}"

Additional context

I am using this small hack to work around this issue for now. The actual fix should fix the root cause as otherwise it'll probably cause issues elsewhere where mtime is expected to be a datetime.datetime.
diff --git a/snakemake/io.py b/snakemake/io.py
index 5f1f5eed..1652abef 100755
--- a/snakemake/io.py
+++ b/snakemake/io.py
@@ -614,6 +614,9 @@ class _IOFile(str, AnnotatedStringInterface):
         if self.is_ancient:
             return False

+        if isinstance(time, (float, int)):
+            time = datetime.datetime.fromtimestamp(time)
+
         return (await self.mtime()).local_or_storage(follow_symlinks=True) > time

     async def retrieve_from_storage(self):

This has to be fixed in the irods plugin. Basically we have to ensure that it does not return datetime but the timestamp in its mtime methods.

https://github.com/snakemake/snakemake-storage-plugin-irods/pull/5
https://github.com/snakemake/snakemake-interface-storage-plugins/pull/38

@johanneskoester Great! It looks like it's working now. Thanks for the patch


Add Taipan Bounties

About the PR

Why / Balance

Technical details

Media

Requirements

[ ] I have read and am following the Pull Request and Changelog Guidelines.
[ ] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

Wtf is this


Ensure that all shared-libs are measured and accounted-for in the measurement of Python applications.

PR #144 is introducing two shared libraries that are SWIG-generated Python wrappers around the Certifier Framework. These are:

libcertifier_framework.so
libcertifier_tests.so

(1) will be used to develop simple_app written in Python.
We need a mechanism to ensure that all such shared libraries used for Python (or other language) bindings are included when generating the measurement of Python-based applications using the Certifier Framework. Investigate and figure out how to do this work.

30.Oct.2023: Update from John:

Shared library that is in initram is already measured, so there should be nothing to be done for measurement.
If it comes from an untrusted disk, we have to do something.

HI, @jlmucb [ cc: @yelvmw, @rgerganov  ] -- before implementing anything, I want to run a proposal by you.
Currently, the measurement_utility.exe has been extended to include the contents of the generated policy_key.py file in the measurement.
The usage of this tool is:
measurement_utility.exe     -input (input file) type: string default: "measurement_utility.exe"
                        -output (output file) type: string
                       -policy_key (policy key file, e.g., policy_key.py) type: string default: ""

The -policy_key <policy key file> argument was added in previous round of support for Python simple_app.
For the Python simple_app, at run-time, we need (and access) these two pieces of s/w lying in the build-area:

certifier_framework.py
libcertifier_framework.so

The Python bindings will not work if either of these is missing. Hence, I think these should be included in the sample programs "measurement".
We could extend the command-line flags to include a new --cmd-line-flag for each new file that has to be included in the measurement.
Alternatively, how about we just add one single --other-files=<comma separated list of files to include> argument.
Then, for Python apps, the tool will be invoked as:
measurement_utility.exe -input=example_app.py \
                    -other-files=policy_key.cc,certifier_framework.py,libcertifier_framework.so

The -other-files is a catch-all argument which can be used for other programs, applications that need more s/w artifacts to be included in the measurement. If any of the files listed by this argument are missing, then the utility will fail with an error.
This argument could become useful in future, too, as we discover the need to include more s/w components in the overall measurement of some running sample / application-program.
Rado -- when you ported the use of CF to Trezor demo-kit, did you find the need to include more s/w components in the measurement? Perhaps, we could learn from your experience while designing this command's interfaces.
What is your preference? A single command-line argument for each file?
Or the -other-files catch-all argument.
I prefer the -other-files argument as it is extensible. It will involve a bit more parsing work inside the tool, but is easier for the user to invoke (I think).


Fix DynamicPartitionOpGPU when running on multiple GPUs

Previously, a callback in DynamicPartitionOpGPU was running outside the correct GPU context and crashed when using a non-default GPU device. This adds a reactivation of the correct context when the callback runs.
Fixes #42500

@drebain can you please fix Ubuntu Sanity build failures ?


Convert script based in game brief to module

Take the in-game briefing/start script and convert it into a module.

This will only be implemented for the new framework, I won't be supporting this in the old framework too.

Done: https://github.com/Global-Conflicts-ArmA/Olsen-Framework-Arma-3/pull/98


Support serialization option to ignore nulls in EventGridPublisherClient

It would be useful to allow some serialization options such as ignoring nulls. This can significantly reduce the payload size in many cases.
https://github.com/Azure/azure-sdk-for-net/blob/3b0d98e1f079989fc6e5bca40a42ad5f26ff2a06/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridPublisherClient.cs#L180

Hi @Elip-tdlr, I assume you are wanting to ignore nulls from your Data payload. This is achievable today by using the constructor for EventGridEvent that takes a BinaryData instance for the data:
var customSerializer = new JsonObjectSerializer(
    new JsonSerializerOptions()
    {
        IgnoreNullValues = true
    });
var evt = new EventGridEvent(
    "ExampleEventSubject",
    "Example.EventType",
    "1.0",
    myCustomDataSerializer.Serialize(new CustomModel() { A = 5, B = true }));


Unable to adjust image center using CSS

I attempted to adjust the centering of the images in the slider using css, and it nearly worked, but only while adjusting the browser size and during the fade-aways, not during the main image display.
.nivoSlider img{
left:-75%;
max-width: none;
width: 225% !important;
max-width: 225% !important;
}
It seems perhaps the script's inserted "inline" overwrites the block formatting applied via CSS. It'd be nice to be able to adjust things via css.
Alternatively, some way to adjust image centering easily through settings would make this possible
PS. I'm actually using the plugin included via the Optmizer Pro Wordpress theme.

Figured it out, also neeed to add similar code to the nivo-slices


RunTimeErrorWarning in output files

Hello, I have a set of particle release output files for each year of data (from 2008 to 2022). In the midst of running the code for particle release, I usually encounter this warning/error: 'C:\Users\55859\anaconda3\envs\py3_parcels\lib\site-packages\xarray\coding\times.py:251: RuntimeWarning: invalid value encountered in cast flat_num_dates_ns_int = (flat_num_dates * _NS_PER_TIME_DELTA[delta]).astype'.
However, this error has never been a problem for plotting the trajectory results.
The issue is that I'm currently trying to create probability maps using my current grid of the global circulation model data along with trajectory data. When attempting to plot the probability maps, it seems that in some years of the trajectory, there are no positions that align with the original grid (which doesn't make sense).
I'm releasing particles in the same location for all years, but when trying to calculate the probability map, the only years that align with the original grid are the ones that, during execution, show the warning/error described above. The ones that don't show the error always yield zero in the position count.
However, I've checked all the trajectory files, and none of them are empty; all contain positions that match the original grid. But within this script, only a few years can be computed.
I've always used this same Python script for probability calculations, and it has always worked. In this case, I don't understand what might be happening. I'm not entirely sure if this is related to the warning/error during execution or if it's just a coincidence that the code is only working for the years when the error occurs.
The following Python script for calculating the probability:
data = xr.open_dataset('D:/dados/moi_glo12/daily_mean/psy4v3r1-U-2007-01-01.nc')
glo_lat = data['nav_lat'][:,0]
glo_lon = data['nav_lon'][0,:]
def carregar_dados_particulas(arquivo_zarr):
particulas = xr.open_dataset(arquivo_zarr, engine='zarr')
return particulas['lat'].values, particulas['lon'].values
visitados = {}
count_djf = np.zeros((240, 959), dtype=int)
years = range(2008,2022)
for ano in years:
arquivo_zarr = f'/Users/55859/Documents/USP/Mestrado/parcels/outputs/currents/nbc/DJF/nbc_DJF_{ano}.zarr'  # .zarr de cada ano
lat, lon = carregar_dados_particulas(arquivo_zarr)
visitados_ano = np.zeros((240, 959), dtype=int)
for trajetoria in range(lat.shape[0]):  # iterando sobre todas as trajetórias (dimension 'trajectory')
    for ponto_obs in range(lat.shape[1]):  # iterando sobre todos os pontos de observação (dimension 'obs')
        lat_idx = np.argmin(np.abs(glo_lat.values - lat[trajetoria, ponto_obs]))
        lon_idx = np.argmin(np.abs(glo_lon.values - lon[trajetoria, ponto_obs]))

        # marcando o ponto de grade como visitado na matriz de visitados
        visitados_ano[lat_idx, lon_idx] = 1

# armazenando a matriz de visitados para o ano atual no dicionário
visitados[f'visitados_{ano}'] = visitados_ano

count_djf += visitados[f'visitados_{ano}'] # rodar uma de cada vez para cada estação

count_djf = (count_djf / 14) * 100

Dear @imariaguiar, thanks for reporting this issue. However, I'm not sure I can help. What do you mean with the sentence below? What is in the files/ What if you simply plot the lons and lats?

none of them are empty

The RuntimeWarning you get is related to xarray, not Parcels. The fact that you only get it for some of your hydrodynamic files and not others, suggests that there are differences in the way the dates are stored in these files. You could check out more carefully (using xarray.open_dataset()) what the differences are between the files? That might give you a clue?


[Enhancement] Make insert timeout accurate in show load statistics

Search before asking

[X] I had searched in the issues and found no similar issues.

Description
Run an insert, and then execute show load command, we could find that in TaskInfo, timeout(s) would always be 3600, regardless of the real timeout val.
mysql> show load\G;
*************************** 1. row ***************************
         JobId: 13003
         Label: orc_s32
         State: FINISHED
      Progress: Unknown id: 13003
          Type: INSERT
       EtlInfo: NULL
      TaskInfo: cluster:N/A; timeout(s):3600; max_filter_ratio:0.0
      ErrorMsg: NULL
    CreateTime: 2023-05-22 18:41:27
  EtlStartTime: 2023-05-22 18:41:27
 EtlFinishTime: 2023-05-22 18:41:27
 LoadStartTime: 2023-05-22 18:41:27
LoadFinishTime: 2023-05-22 18:45:54
           URL:
    JobDetails: {"Unfinished backends":{},"ScannedRows":0,"TaskNumber":0,"LoadBytes":0,"All backends":{},"FileNumber":0,"FileSize":0}
 TransactionId: 2003
  ErrorTablets: {}
          User: root
       Comment:

Solution
Actually, there are two problems to be resolved:

The insert_load_default_timeout_second should be consistent to the default val of insert_timeout session var.
The InsertLoadJob is created to record the finish state of an insert stmt. Set the timeout property correctly when created.

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'm new in here, could I have a try?


UC 10: As a developer, I want to get a full description of my application and components

As a developer, I want to be able to get a full description of my application and what components constitutes my application including storage, URLs, etc.
$ ocd app describe [--app=name]
Application XYZ has:
Component ABC with source in https://git and scaled to 2 instances, exposed via http://blabla and connected to component DB1, and component DB2
Component DB1, based of PostgreSQL and scaled to 1 connected by Component ABC
Component DB2, based of MongoDB and scaled to 1 connected by Component ABC
------------
$ ocd describe [name]
Component ABC with source in https://git and scaled to 2 instances, exposed via http://blabla and connected to component DB1, and component DB2
Application context
Parameters were …
Env vars ...

[x]  #196 Get full description of a component

[x]  #197 Get a full description of my application

[ ] #199 Get full description of what is part of a component given as argument

[ ]  #198 Get a full description of an application provided

@jorgemoralespou has our odo describe implementation fulfilled this requirement?

The information it provides is too scarce. We need to define what needs to be shown. As can be seen in #196 and #197 and in the description of this issue.
e.g.:
odo app describe
Application wwgame has:
Component backend of type wildfly with source in file:///Users/jmorales/repositories/jorgemoralespou/openshift-evangelists/WW-Game/Wild-West-Backend/target/ROOT.war
Component frontend of type nodejs with source in file:///Users/jmorales/repositories/jorgemoralespou/openshift-evangelists/WW-Game/Wild-West-Frontend
Externally exposed via frontend-wwgame-odo-demo.apps.osevg.openshiftworkshop.com

We should probably need to have a --full or --short flags that show more detail/concise output. What do you think, @kadel.


Not able to use JSON Path for json attributes having space

From<EMAIL_ADDRESS>on November 28, 2014 10:51:52
What steps will reproduce the problem? I have a json in following format where the json property 'All Categories' has a space in the middle:
{
"All Categories": {
"color": "#0adc00",
"name": "Category Main",
"data": [
  {

    "color": "#00dc00",
    "name": "Sub Category 1",
    "comments": 13,
    "data": [
      {

        "color": "#00dc00",
        "name": "Sub Sub Category",
        "comments": 8,

      },

],
    "tagColor": "0X00dc00"
  },

],
"comments": 59,
"tagColor": "0X0adc00"
},
}
}
When i use the following json path expression in my code to get the data nodes
[All Categories].data
Following exception is shown:
java.lang.IllegalArgumentException: Invalid JSON expression:
Script1.groovy: 1: unexpected token: [ @ line 1, column 27.
[All Categories].data
^
1 error
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
at com.jayway.restassured.internal.path.json.JSONAssertion.getAsJsonObject(JSONAssertion.groovy:57)
at com.jayway.restassured.internal.path.json.JSONAssertion$getAsJsonObject.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at com.jayway.restassured.internal.path.json.JSONAssertion.getResult(JSONAssertion.groovy:32)
at com.jayway.restassured.path.json.JsonPath.get(JsonPath.java:202)
at com.jayway.restassured.path.json.JsonPath.getList(JsonPath.java:363)

I also tried with following JSON Path expression which also didn't work:
All Categories.data
Exception thrown for this instance is
java.lang.IllegalArgumentException: The parameter "Categories" was used but not defined. Define parameters using the JsonPath.params(...) function
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194)
at com.jayway.restassured.internal.path.json.JSONAssertion.getAsJsonObject(JSONAssertion.groovy:54)
at com.jayway.restassured.internal.path.json.JSONAssertion$getAsJsonObject.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at com.jayway.restassured.internal.path.json.JSONAssertion.getResult(JSONAssertion.groovy:32)
at com.jayway.restassured.path.json.JsonPath.get(JsonPath.java:202)
at com.jayway.restassured.path.json.JsonPath.getList(JsonPath.java:363)
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=376

From<EMAIL_ADDRESS>on November 28, 2014 01:57:34
By using ""All Categories".data" i am able to get the nodes. This solution was given in https://code.google.com/p/rest-assured/issues/detail?id=318

From<EMAIL_ADDRESS>on November 29, 2014 00:54:52
Yeah you need to escape the path if they contains space. It's a bit more readable if you use single quotes:
"'All Categories'.data"
Status: Invalid

@johanhaleby the single quote trick was very helpful to find. I just looked at https://github.com/rest-assured/rest-assured/wiki/Usage and didn't see it. Is it documented somewhere? Thanks!

It's a part of the GPath "specification". You can read more about it here.

@johanhaleby ok. I don't see anything in there about the single quote trick but thanks.

Ok. Maybe you could help out improving the docs? If you write something here in the comment I can include in the docs.

Case: String result = response.then().extract().path("CourseList[*].CourseName");
Error2: nvalid JSON expression: Script1.groovy: 1: unexpected token: ] @ line 1, column 39. CourseList[*].CourseName ^
1 error
When using "*", "?"<EMAIL_ADDRESS>etc then getting same error. Please let me help to solve it.

Did you get any solution for this, When I manually verified using JSONPath expression tester tool, it's giving me proper output however when I am using XPath with a wildcard character, it's giving me same error what you are getting.

Case: String result = response.then().extract().path("CourseList[].CourseName");
Error2: nvalid JSON expression: Script1.groovy: 1: unexpected token: ] @ line 1, column 39. CourseList[].CourseName ^
1 error
When using "*", "?"<EMAIL_ADDRESS>etc then getting same error. Please let me help to solve it.

Did you get any solution for this, When I manually verified using JSONPath expression tester tool, it's giving me proper output however when I am using XPath with a wildcard character, it's giving me same error what you are getting.

Case: String result = response.then().extract().path("CourseList[*].CourseName");
Error2: nvalid JSON expression: Script1.groovy: 1: unexpected token: ] @ line 1, column 39. CourseList[*].CourseName ^
1 error
When using "*", "?"<EMAIL_ADDRESS>etc then getting same error. Please let me help to solve it.

Did you get any solution for this, When I manually verified using JSONPath expression tester tool, it's giving me proper output however when I am using XPath with a wildcard character, it's giving me same error what you are getting.

Case: String result = response.then().extract().path("CourseList[*].CourseName");
Error2: nvalid JSON expression: Script1.groovy: 1: unexpected token: ] @ line 1, column 39. CourseList[*].CourseName ^
1 error
When using "*", "?"<EMAIL_ADDRESS>etc then getting same error. Please let me help to solve it.

Did you get any solution for this, When I manually verified using JSONPath expression tester tool, it's giving me proper output however when I am using XPath with a wildcard character, it's giving me same error what you are getting.

JsonPath in REST Assured is not using the json-path syntax. JsonPath in rest assured was created before the json-path "standard" (at least before an implementation was available in Java) and is using GPath. See examples here.

JsonPath in REST Assured is not using the json-path syntax. JsonPath in rest assured was created before the json-path "standard" (at least before an implementation was available in Java) and is using GPath. See examples here.

I am trying to validate JSON response by using RestAssured with wildcard character, however, getting below error
+++++++++++++++++++++++++++
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: unexpected token: . @ line 1, column 44.
onRootObject.ApplicationData..Id
+++++++++++++++++++++++++++
JSON Response data -
{
"ApplicationData" :
{
"Tag1": {
"Id": "Tag1Value",
"Rate": 4.682119205298013,
"Name": "Room"
},
"Tag2": {
"Id": "Tag2Value",
"Rate": 4.504854368932039,
"Label": "Car"
},
"Tag3": {
"Id": "Tag3Value",
"Rate": 4.816326530612245,
"Label": "Hotel"
}
}
}
=========================
Submitted request with GET method: and saved response in response variable
List getTagValue = response.getBody().path("ApplicationData.*.Rate");
double Rate = Double.parseDouble(getTagValue.get(0).toString());
Assert.assertEquals(Rate, 4.682119205298013);
Could you please help me to resolve this to get "Rate" tag value for all Tag ( Tag1, Tag2, and Tag3)
Thanks,
Rakesh Mishra

Just use "ApplicationData.Rate" to get a list of all rate's.