Coreclr

To make it compile and run against CoreCLR

Hi @manu-silicon
Closing this issue as the PR #868 has partially solved the generation of compatible CoreCLR assemblies.
There could be some remaining issues related to some API that could be used on CoreCLR but are not compatible. We can address them later if it is necessary.


ci: remove ssh and git config from ci gh-pages site deploy config

Fixes gh-pages deploys (again)

I've set up CircleCI to perform deploys with a machine user (hi @ReactHoverVideoPlayer-DeployBot  👋 ), so this should mean that all of the ssh key and git config shenanigans I set up initially will no longer be necessary.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Is preview version of .net code required to run CustomPolicyProvider sample?

The sample from github requires .net core 2.2.0 preview but the doc's date is from May. It would be nice if the sample either worked with the current released version of .net (instead of preview) or the doc stated at the top that a preview version of .net is required to use the authorization policy providers (which is the implication).
PS C:\Users\diberry\repos\CsharpCoreAuthSamples\samples\CustomPolicyProvider> dotnet run
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.2.0-preview2-26905-02' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\
  - Installing .NET Core prerequisites might help resolve this problem:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

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

ID: 150023ea-e35a-4a06-6f71-7ab63994b07f
Version Independent ID: 7b5c3832-a5a3-a27a-eed3-3ecfc3e8dbe2
Content: Custom Authorization Policy Providers in ASP.NET Core
Content Source: aspnetcore/security/authorization/iauthorizationpolicyprovider.md
Product: aspnet-core
GitHub Login: @mjrousos
Microsoft Alias: riande

Hello @diberry ... Thanks for commenting. IMO, we should have a docs sample for this wired up to the current release. We do that (guessing) >95% of the time.
The topic links directly to the AuthSamples sample. Usually, we don't link to engineering samples because they often don't work well for teaching concepts alongside the topic. Plus, you pointed out correctly that versioning can be an issue. If we link to engineering master, we're often not providing current release code.
There may have been a good reason at the time the sample was set up this way ... not sure about that. The original issue that generated the PR (and the PR) doesn't speak to the choice. If management decides to keep the engineering sample linked, then they'll close this in a bit.
If we proceed tho, let's use your issue here to track the work. I'm going to update the title. I've added this to the sample update tracking issue, and we'll get to it as soon as we can. 🏃🏃🏃🏃😅


Add client program distribution and compilation system

Partially implemented, but need to separate out files for individual component pieces. Will require program object model to be implemented first.


how to add extra attribute on NzTreeNode

What problem does this feature solve?
例如我可以增加一个nodeType,根据节点类型的不同展示/处理不同逻辑
What does the proposed API look like?
nzTreeData能够支持绑定任意属性

#1277 will add origin to store customized data


Fix file imports

Follow-up to #18, importing without .js is causing the module resolution to fail in some cases.

Thanks! Released as v0.2.6.


Menu Missalignment

the menu is still not aligned but is up by -1px
http://www.elkarte.net/community/index.php?topic=2311.msg15026#msg15026

It's kind of difficult track closed issues when github automatically closes issues only when the branch is merged to master... :-\


Docs release 1.11.0 csi 4967 vol grp

I think we should mention 2 important things:

PVCs that belong to a volume group cannot be deleted unless removing them from the volume group first.
2)volume group cannot be deleted while it is not empty.


perf(parser): lazily build trivia map instead of build in-place

closes #898

Data oriented design tells us that loading the btreemap busts the cpu cache while tokenizing, so hopefully this'll improve things a little bit.

We observe 1 - 5% improvements from the parser benchmarks.


Default value for embed_dim in MultiHeadAttention class will cause an error.

@wouterkool
if you don't provide the embed_dim parameter when instantiating a MultiHeadAttention object, you will get the following error when trying to invoke its forward method:
AttributeError: 'MultiHeadAttention' object has no attribute 'W_out'.
This is due to this piece of code in the constructor:
if embed_dim is not None:
    self.W_out = nn.Parameter(torch.Tensor(n_heads, key_dim, embed_dim))

which will mean you have no W_out if embed_dim was None.

Thanks! I figured it was best to not make embed_dim optional in the end.


uninitialized variables in tsl2561.c

I got the following error while building the sensors test with the TSL2561 light sensor:
Error: repos/apache-mynewt-core/hw/drivers/sensors/tsl2561/src/tsl2561.c: In function 'tsl2561_calculate_lux':
repos/apache-mynewt-core/hw/drivers/sensors/tsl2561/src/tsl2561.c:724:40: error: 'm' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     temp = ((channel0 * b) - (channel1 * m));
                                        ^
repos/apache-mynewt-core/hw/drivers/sensors/tsl2561/src/tsl2561.c:724:23: error: 'b' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     temp = ((channel0 * b) - (channel1 * m));
                       ^

Changing the initialization in tsl2561_calculate_lux from int64_t b,m to int64_t b = 0, m = 0 fixed the error.

fixed


Sema: Refactor superfluous public import tracking

In anticipation of reusing minimum access level information for diagnostics related to the MemberImportVisibility feature, refactor the way the type checker tracks the modules which must be imported publicly. Recording minimum access levels is no longer restricted to modules that are already imported in a source file since MemberImportVisibility diagnostics will need this information when emitting fix-its for modules that are not already imported.
Unblocks rdar://126637855.

@swift-ci please smoke test

@swift-ci please smoke test Linux


CSS Modules with SCSS support

Hi guys, I would like to use CSS modules with SCSS files. However, I can't seem to get the configuration to work. I managed to get SCSS up by referencing from jared's gist, but can't seem to get the CSS Module functionality up.

All good, managed to figure out what to change in the razzle config files.


Caching

Dears, this is more of a question than issue.
Current functionality maps the query to react component. This, whenever is displayed fetches new data from the server. While this is OK for many cases, it would be great to have a decision mechanism to use cached data. For example, I can cache data in the store and then in the container I can decide whether to use cached data or get fresh data.
Do you have any advice on implementation?
In the core I've found a way of how to perform a query, but there are just too many possibilities on how to approach this. Would love to hear from you guys.

@tomitrescak react-apollo does the caching behind the scenes. As long as you aren't specifically adding in forceFetch: true to your query object, the wrapper component will pull cached data from the store if it exists

Thanks for the reply. That's fantastic news! Is this process described somewhere? I just want to understand how it works. Does it cache  data per text of the query? Where in store are the data stored? I'll try to look I to sources.

@tomitrescak yep! React-apollo uses the core's watchQuery method under the hood. The section about query diffing (the caching mechanism we use) is here. It is stored under the apollo redux key (default is apollo) then under a data key.


preprocess_E_N_for_activities - Error in hist.default(log_tpm) : invalid number of 'breaks'

Hi Cyril,
I'm trying to use craTEs on my RNA-seq data, and I am having some issues with the function preprocess_E_N_for_activities() - seems like, when it tries to call internally for hist(), the number of breaks does not seem appropriate. By looking in other pages (https://github.com/hafen/trelliscopejs/issues/55) seems like hist struggles when that value is <1. How can I solve this? Thanks!
> countTable = readRDS(paste0(getwd(),"/Raw_counts.rds")) %>% assay()
> N = craTEs::N_from_tsv('/g/noh/Victor/Projects/mRNAseq_hGNs_50DIV_KCl_timecourse/craTEs/N_weighted_2.5e5.tsv')
> preprocessed = craTEs::preprocess_E_N_for_activities(countTable, N, log_tpm_plot_path = paste0(getwd(),'/craTEs/qc_file.pdf'))
Error in hist.default(log_tpm) : invalid number of 'breaks'
In addition: Warning message:
In dir.create(dirname(log_tpm_plot_path)) :
  '/g/noh/Victor/Projects/mRNAseq_hGNs_50DIV_KCl_timecourse/craTEs' already exists

Forgot to add my session info, it is here below:
`> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Rocky Linux 8.8 (Green Obsidian)
Matrix products: default
BLAS/LAPACK: /g/easybuild/x86_64/Rocky/8/haswell/software/FlexiBLAS/3.0.4-GCC-11.2.0/lib64/libflexiblas.so.3.0
locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C
[9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods
[8] base
other attached packages:
[1] DESeq2_1.38.3               SummarizedExperiment_1.28.0
[3] Biobase_2.58.0              MatrixGenerics_1.10.0
[5] matrixStats_1.2.0           GenomicRanges_1.50.2
[7] GenomeInfoDb_1.34.9         IRanges_2.32.0
[9] S4Vectors_0.36.2            BiocGenerics_0.44.0
[11] forcats_1.0.0               stringr_1.5.1
[13] dplyr_1.1.4                 purrr_1.0.2
[15] readr_2.1.5                 tidyr_1.3.1
[17] tibble_3.2.1                ggplot2_3.4.4
[19] tidyverse_1.3.1             craTEs_<IP_ADDRESS>00
loaded via a namespace (and not attached):
[1] httr_1.4.7             bit64_4.5.2            jsonlite_1.8.8
[4] modelr_0.1.11          assertthat_0.2.1       blob_1.2.4
[7] GenomeInfoDbData_1.2.9 cellranger_1.1.0       pillar_1.9.0
[10] RSQLite_2.2.12         backports_1.4.1        lattice_0.20-45
[13] glue_1.8.0             RColorBrewer_1.1-3     XVector_0.38.0
[16] rvest_1.0.3            colorspace_2.0-3       Matrix_1.4-1
[19] XML_3.99-0.9           pkgconfig_2.0.3        broom_0.8.0
[22] haven_2.5.4            zlibbioc_1.44.0        xtable_1.8-4
[25] scales_1.2.0           tzdb_0.3.0             BiocParallel_1.30.0
[28] timechange_0.3.0       annotate_1.74.0        KEGGREST_1.36.0
[31] generics_0.1.3         cachem_1.0.6           withr_2.5.0
[34] cli_3.6.2              magrittr_2.0.3         crayon_1.5.1
[37] readxl_1.4.3           memoise_2.0.1          fs_1.5.2
[40] fansi_1.0.3            xml2_1.3.3             data.table_1.16.2
[43] tools_4.2.0            hms_1.1.3              lifecycle_1.0.4
[46] locfit_1.5-9.5         munsell_0.5.0          reprex_2.1.0
[49] DelayedArray_0.24.0    AnnotationDbi_1.58.0   Biostrings_2.64.0
[52] compiler_4.2.0         rlang_1.1.3            grid_4.2.0
[55] RCurl_1.98-1.16        rstudioapi_0.15.0      bitops_1.0-7
[58] gtable_0.3.0           DBI_<IP_ADDRESS>14         R6_2.5.1
[61] lubridate_1.9.3        fastmap_1.1.0          bit_4.5.0
[64] utf8_1.2.2             stringi_1.8.4          parallel_4.2.0
[67] Rcpp_1.0.13            png_0.1-7              vctrs_0.6.5
[70] geneplotter_1.76.0     dbplyr_2.1.1           tidyselect_1.2.0  `

Hello,
This error is usually caused by zero overlap between the rownames (genes) in N and the rownames (genes) in your expression matrix. Are you using ENSEMBL gene ID? If so, do they include the ensembl gene version (.VERSION_NUMBER, they shouldn't)?
The easiest way for me to help you would be for you to send me a header on what you're using as a count table by doing:
readRDS(paste0(getwd(),"/Raw_counts.rds")) %>% assay() %>% head()
Hope it helps,
Best,
Cyril

De : VCF1995 @.***>
Envoyé : jeudi, 31 octobre 2024 11:38:17
À : PulverCyril/craTEs
Cc : Subscribed
Objet : [PulverCyril/craTEs] preprocess_E_N_for_activities - Error in hist.default(log_tpm) : invalid number of 'breaks' (Issue #1)
Hi Cyril,
I'm trying to use craTEs on my RNA-seq data, and I am having some issues with the function preprocess_E_N_for_activities() - seems like, when it tries to call internally for hist(), the number of breaks does not seem appropriate. By looking in other pages (hafen/trelliscopejs#55https://github.com/hafen/trelliscopejs/issues/55) seems like hist struggles when that value is <1. How can I solve this? Thanks!

countTable = readRDS(paste0(getwd(),"/Raw_counts.rds")) %>% assay()
N = craTEs::N_from_tsv('/g/noh/Victor/Projects/mRNAseq_hGNs_50DIV_KCl_timecourse/craTEs/N_weighted_2.5e5.tsv')
preprocessed = craTEs::preprocess_E_N_for_activities(countTable, N, log_tpm_plot_path = paste0(getwd(),'/craTEs/qc_file.pdf'))
Error in hist.default(log_tpm) : invalid number of 'breaks'
In addition: Warning message:
In dir.create(dirname(log_tpm_plot_path)) :
'/g/noh/Victor/Projects/mRNAseq_hGNs_50DIV_KCl_timecourse/craTEs' already exists

—
Reply to this email directly, view it on GitHubhttps://github.com/PulverCyril/craTEs/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKQD4GIKTRS4ZG43ZH5C3QLZ6ICBTAVCNFSM6AAAAABQ577S62VHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDMNJSGQ4TOMY.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hi Cyril,
I was using the ENSEMBL gene ID with the gene version (.VERSION_NUMBER). I removed the extension and now it works with the regular ENSEMBL ID. Thanks!


Conflict with Exllama error?

Hi folks, I was literally running autogptq all fine few days ago, cloned the updated repo again today and this happened. Any idea? Do I need to install Exllama too? Sorry but I have 0 experience with Exllama. Thanks in advance.
Traceback (most recent call last):
File "/home/jaasdev/Desktop/llama2/main.py", line 62, in
model=AutoGPTQForCausalLM.from_quantized(
File "/home/jaasdev/Desktop/llama2/venv/lib/python3.10/site-packages/auto_gptq/modeling/auto.py", line 108, in from_quantized
return quant_func(
File "/home/jaasdev/Desktop/llama2/venv/lib/python3.10/site-packages/auto_gptq/modeling/_base.py", line 902, in from_quantized
cls.fused_attn_module_type.inject_to_model(
File "/home/jaasdev/Desktop/llama2/venv/lib/python3.10/site-packages/auto_gptq/nn_modules/fused_llama_attn.py", line 163, in inject_to_model
raise ValueError("Exllama kernel does not support query/key/value fusion with act-order. Please either use inject_fused_attention=False or disable_exllama=True.")
ValueError: Exllama kernel does not support query/key/value fusion with act-order. Please either use inject_fused_attention=False or disable_exllama=True.

Hi, I noticed disable_exllama=True made my inference time from 5 seconds(previously) to 100~ seconds. My auto-gptq version is 0.4.1+cu118. The previous update can do really fast inference, but its a huge slowdown on this new build. Is there anyone reporting similar issue as well?

Exllama has it's own fused attention.

Especially now this is in AutoModelForCausalLM it would be nice if this error changed in to either nothing if there was no downside to disabling inject_fused_attention or a warning it got automatically turned off.
Right now I had to implement a fallback that if the model fails to load we try again with changed settings, but this is not a nice experience when its used without additional options. Ideally just default to whatever works best for that specific model.

Hi, closing as answered.
@cringelord000222 It is simply due to the fact that the Triton / cuda_old / cuda kernels are rather bad compared to the exllama one (especially when using act-order). For reference: https://github.com/fxmarty/optimum/tree/add-benchmark-gptq/tests/benchmark#gptq-benchmark & https://github.com/fxmarty/q4f16-gemm-gemv-benchmark

Hi all, sorry for the late reply, and yea I understand this issue now, thank you for the support.

install exllama

how can we resolve? what are the steps?


[Bug] the "snap" property of axisPointer display wrong on stacked chart

Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQEQCGAHhAM70A0x6L7ACsAjQwtQqhIkwATxDUGbABaMAJsADu9HrAC-xHd3TMAgqzaEA2hKmz5segGNGoisFLSu2lc8aX6AWRguewAVAFdqYPoAdWoVegBdQ10k4mlTdktrdBk5BgA3RmwIz0k-NkFhUToiSXQlDUIwUgjkyWbKGlIQrFwIAlgAMyK2ajaSNmhGAeaI7T10HVT62ghqc1grbSmAWzsmUps8-wAjRlJD-rBGBwBrJpaxrx9LAEYABk5YAFYAJi_fu93gl9MlsrBdvsTpcMLYGGcLuM2Nc7g9Ws9rpZAV8Pp9YABmIEgxbEEE6IA&_source=echarts-doc-preview
Steps to Reproduce
just see the link
Current Behavior
On the Mon column, it can only snap vertically at coordinates 10 and 20.
Expected Behavior
On the Mon column, it should snap vertically at coordinates 10 and 30.
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

On the Mon column, it should snap vertically at coordinates 10 and 30.

not-a-bug, this is a personal preference/expectation
snap API says The default value is auto determined. And it snaps at values of the individual stacked bars, which is another valid, logical algorithm.


fix: throw document build error

In the previous version, if an error was reported during document construction, the construction task would not be interrupted.
Now fixed it.

Codecov Report

Merging #787 (b91cfaf) into release-next (15c6641) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           release-next     #787   +/-   ##
=============================================
  Coverage         52.12%   52.12%
=============================================
  Files                46       46
  Lines              1224     1224
  Branches            257      257
=============================================
  Hits                638      638
  Misses              586      586


Auto save messes with timesheets that has rejected work orders

On timesheets with rejected work orders the save action will lock all rejected work orders

Autosave should probably be disabled when rejected work orders are present in a timesheet


Use here-strings for JSON in Compile.ps1

NOTE: I recommend going through my commits to see the changes I made over time, to better understand why I coded things the way I did.
Change Compile.ps1 to use here-strings with JSON.
Type of Change

[x] Refactoring

Description
This modifies the Compile.ps1 script's handling of JSON to use here-strings and -Raw, similar to what we do with Xaml. This allows us to forego the replace when we ConvertTo-Json -Depth 3.
There are a couple formatting to CamelCasing changes for consistency, as well.
Testing
Tested the Compile in pwsh and powershell (pulled in changes from @og-mrk for Pre-processing for testing in PS5.)
Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] My changes generate no errors/warnings/merge conflicts.

@ChrisTitusTech I had to refactor my code where I used here-strings for the Xaml stuff because of the changes to Compile.ps1 and Preprocessing around the same time, which hasn't been causing issues, and hasn't been rolled back. JSON was a little more work to do.
The rollback you are thinking of, was related to -Force being used in Preprocessing when dealing with ignoring files/directories, because it was causing compile issues on Powershell 5. I believe OG rewrote all that algorithm to fix the issue and restore functionality. Unrelated to JSON and Xaml using here-strings.


jsonschema2pojo.org: refs within definitions to other definitions fails

This schema fails with "URI is not absolute":
{
  "definitions": {

    "RefA": {
      "properties": {
        "something": {
          "type": "string"
        }
      }
    },

    "RefB": {
      "properties": {
        "b2a": {
          "$ref": "#/definitions/RefA"
        }
      }
    }
  },

  "type": "object",
  "properties": {
    "root2RefB": {
      "$ref": "#/definitions/RefB"
    }
  }
}

Hi, which version are you using? (or are you using the web app?) There was an issue like this fixed recently.

This is the web site

I think you're hitting #250. This should be fixed when I update the site to the latest version. Thanks for reporting this.

Ok - I'll keep my eye out for it.  Thanks!

I've updated the site to the latest plugin version (0.4.16) so you should be good to go. I've tested your schema and seen some generated output.

Ok, it seems that while it does seem to generate types for the schema above, it runs into a different (?) problem with the schema below.
The error I'm getting from the site is: There's a problem: Path not present: definitions. Should I open a separate issue?
{
   "$schema": "http://json-schema.org/draft-04/schema#",

   "definitions": {
     "NameValuePair": {
       "properties": {
         "name": {
           "type": "string"
          },
          "value": {
            "type": "string"
          }
       },
       "required": ["name", "value"]
     },
     "Namespace": {
       "type": "string",
       "pattern": "^[a-zA-Z_]([0-9a-zA-Z-_.])+[a-zA-Z0-9_]$"
     },
     "Name": {
       "type": "string",
       "pattern": "^[a-zA-Z_]([0-9a-zA-Z-_])+[a-zA-Z0-9_]$"
     },
     "Version": {
       "type": "string",
       "pattern": "^\\d+\\.\\d+\\.\\d+(-([0-9A-Za-z-.]*[0-9a-zA-Z])+)*$"
     },
     "Thing": {
       "properties": {
         "namespace": { "$ref": "#/definitions/Namespace" },
         "name": { "$ref": "#/definitions/Name" },
         "version": { "$ref": "#/definitions/Version"}
       },
       "required": ["namespace", "name", "version"]
     },
     "ThingList": {
       "type": "array",
       "items": { "$ref": "#/definitions/Thing" },
       "minItems": 1
     }
   },
  "type": "object",
  "properties": {
    "things": { "$ref": "#/definitions/ThingList" }
  },
  "required": ["things"]
}

For reference, I can drop that schema here with the object below, and it parses the schema and validates the object without error, so I don't think the problem is in the schema definition itself:
{
  "things": [
    {
       "namespace": "wonky.butt-nugget",
       "name": "bubbly",
       "version": "1.2.3-rc.1"
    }
  ]
}

Thanks for the update. I've had a look into this and I can definitely see a problem. It relates to how nested refs are resolved when there is no file but just a string given directly to the plugin (this is how the website works).
I've resolved this using your example so it will be released in the next version. Cheers

ok - thanks!


Thinking Loop because the prompt is not fully transmitted to Local OpenAI API Server

⚠ Check for existing issues before proceeding. ⚠

[X] I have searched the existing issues, and there is no existing issue for my problem

Where are you using SuperAGI?
Windows
Which branch of SuperAGI are you using?
Main
Do you use OpenAI GPT-3.5 or GPT-4?
GPT-3.5
Which area covers your issue best?
Installation and setup
Describe your issue.
My locally hosted OpenAI api server won't receive the prompt message.
However using offical OpenAI Inference with gpt-3.5-turbo works as expected.
Server Log:
Prompt=
The current time and date is ...

Determine which next tool to use, and respond using the format specified above

How to replicate your Issue?
Replicate the Issue

I've downloaded the main branch several times and ran multiple releases.

Added OPENAI_API_BASE in the config: http://host.docker.internal:8080/v1

Set up text-generation-webui and run the server like this:
text-generation-webui\server.py --verbose --api --model-menu --nowebui
(Lama.cpp and llama.cpp.python showed similar Agent behaviour but those offer no debugging option)

Test models using custom and Alpaca jinja templates:
SuperAGI/SAM, TheBloke/yarn-mistral-7b-128k

Attempt to fix and observations

I've tried deleting everything from docker and also rearranged the code.

If i append the prompt variable to the message array again and add some test messages,
there are always some messages missing in the final prompt received by the API Server.

Changing the messages.append order somehow affects which messages are received.

If the model doesn't respond in correct format, the prompt variable wont change to the tool output even if a tool is triggered!

agent_message_builder.py
        if history_enabled:
            messages = [{"role": "system", "content": f"test1"}]
            messages.append({"role": "system", "content": "test2"})
            messages.append({"role": "system", "content": prompt})
            messages.append({"role": "system", "content": f"The current time and date is {time.strftime('%c')}"})
            messages.append({"role": "system", "content": "test3"})

Agent Config
Agent Name: offline
Agent Description: an agent for offline tasks
Agent Goals:

make a list of 5 animals you already know
write the results to a new .txt file or paste them in the chat

Instructions:

dont use the internet or any other source except your memory
ALWAYS RESPOND USING THE JSON SCHEMA OR YOU WILL RECEIVE THE SAME PROMPT AGAIN
(The second Instruction sometimes helped to get a valid response conforming the JSON schema.)

Jinja Templates
used with SAM (made for SAM example prompt)
instruction_template: |-
  <s> {{ (messages|selectattr('role', 'equalto', 'system')|list|last).content|trim if (messages|selectattr('role', 'equalto', 'system')|list) else '' }}

  {% for message in messages %}
  {% if message['role'] == 'user' %}
  [INST]
  {{ message['content']|trim -}}
  [/INST]
  {% if not loop.last %}

  {% endif %}
  {% elif message['role'] == 'assistant' %}
  {{ message['content']|trim -}}
  </s>
  {% if not loop.last %}

  {% endif %}
  {% elif message['role'] == 'user_context' %}
  [INST]
  {{ message['content']|trim -}}
  [/INST]
  {% if not loop.last %}

  {% endif %}
  {% endif %}
  {% endfor %}

used with SAM (made for SAM example prompt)
 instruction_template: |-
  {{- '<s> [INST] ' -}}
  {%- for message in messages %}
      {%- if message.get('role') != 'assistant' -%}
              {{- message['content']  + '\n\n'-}}
          {%- else -%}
              {{- '[/INST] ' -}}
              {{- message['content'] + '\n\n' -}}
      {%- endif -%}
  {%- endfor -%}

used with SAM (only message content with new lines)
instruction_template: |-
 {%- for message in messages %}
    {{- message['content'] + '\n\n' -}}
 {%- endfor -%}

used with yarn-mistral-7b-128k (only message content with new lines)
{%- for message in messages %}
    {%- if  message['role']!= '' -%}
        {{- message['content'] + '\n\n' -}}
    {%- else -%}
        {{-'' + message['content'] + '\n\n' -}}
    {%- endif -%}
{%- endfor -%}

used with yarn-mistral-7b-128k (trying to catch the missing prompt)
instruction_template: |-
  {%- if messages -%}
    {%- if messages[0]['role'] != '' -%}
        {{- messages[0]['content'] + '\n\n' -}}
    {%- else -%}
        {{- '' + messages[0]['content'] + '\n\n' -}}
    {%- endif -%}
    {%- for message in messages[1:] %}
        {%- if message['role'] != '' -%}
            {{- message['content'] + '\n\n' -}}
        {%- else -%}
            {{- '' + message['content'] + '\n\n' -}}
        {%- endif -%}
    {%- endfor -%}
  {%- endif -%}

used with both (default text-generation-webui Alpaca.yaml)
instruction_template: |-
  {%- set ns = namespace(found=false) -%}
  {%- for message in messages -%}
      {%- if message['role'] == 'system' -%}
          {%- set ns.found = true -%}
      {%- endif -%}
  {%- endfor -%}
  {%- if not ns.found -%}
      {{- '' + 'Below is an instruction that describes a task. Write a response that appropriately completes the request.' + '\n\n' -}}
  {%- endif %}
  {%- for message in messages %}
      {%- if message['role'] == 'system' -%}
          {{- '' + message['content'] + '\n\n' -}}
      {%- else -%}
          {%- if message['role'] == 'user' -%}
              {{-'### Instruction:\n' + message['content'] + '\n\n'-}}
          {%- else -%}
              {{-'### Response:\n' + message['content'] + '\n\n' -}}
          {%- endif -%}
      {%- endif -%}
  {%- endfor -%}
  {%- if add_generation_prompt -%}
      {{-'### Response:\n'-}}
  {%- endif -%}

Upload Error Log Content
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - INFO - [/app/superagi/vector_store/redis.py:132] - {'index_name': 'super-agent-index1', 'index_options': [], 'index_definition': ['key_type', 'HASH', 'prefixes', ['doc:'], 'default_score', '1'], 'attributes': [['identifier', 'tag', 'attribute', 'tag', 'type', 'TAG', 'SEPARATOR', ','], ['identifier', 'content_vector', 'attribute', 'content_vector', 'type', 'VECTOR', 'algorithm', 'FLAT', 'data_type', 'FLOAT32', 'dim', 1, 'distance_metric', 'COSINE']], 'num_docs': '0', 'max_doc_id': '0', 'num_terms': '0', 'num_records': '0', 'inverted_sz_mb': '0', 'vector_index_sz_mb': '0.00818634033203125', 'total_inverted_index_blocks': '0', 'offset_vectors_sz_mb': '0', 'doc_table_size_mb': '0', 'sortable_values_size_mb': '0', 'key_table_size_mb': '0', 'geoshapes_sz_mb': '0', 'records_per_doc_avg': 'nan', 'bytes_per_record_avg': 'nan', 'offsets_per_term_avg': 'nan', 'offset_bits_per_record_avg': 'nan', 'hash_indexing_failures': '0', 'total_indexing_time': '0', 'indexing': '0', 'percent_indexed': '1', 'number_of_uses': 2, 'cleaning': 0, 'gc_stats': ['bytes_collected', '0', 'total_ms_run', '0', 'total_cycles', '0', 'average_cycle_time_ms', 'nan', 'last_run_time_ms', '0', 'gc_numeric_trees_missed', '0', 'gc_blocks_denied', '0'], 'cursor_stats': ['global_idle', 0, 'global_total', 0, 'index_capacity', 128, 'index_total', 0], 'dialect_stats': ['dialect_1', 0, 'dialect_2', 0, 'dialect_3', 0, 'dialect_4', 0], 'Index Errors': ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A'], 'field statistics': [['identifier', 'tag', 'attribute', 'tag', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']], ['identifier', 'content_vector', 'attribute', 'content_vector', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']]]}
superagi-celery-1           | [2024-05-05 01:57:16,598: INFO/ForkPoolWorker-8] {'index_name': 'super-agent-index1', 'index_options': [], 'index_definition': ['key_type', 'HASH', 'prefixes', ['doc:'], 'default_score', '1'], 'attributes': [['identifier', 'tag', 'attribute', 'tag', 'type', 'TAG', 'SEPARATOR', ','], ['identifier', 'content_vector', 'attribute', 'content_vector', 'type', 'VECTOR', 'algorithm', 'FLAT', 'data_type', 'FLOAT32', 'dim', 1, 'distance_metric', 'COSINE']], 'num_docs': '0', 'max_doc_id': '0', 'num_terms': '0', 'num_records': '0', 'inverted_sz_mb': '0', 'vector_index_sz_mb': '0.00818634033203125', 'total_inverted_index_blocks': '0', 'offset_vectors_sz_mb': '0', 'doc_table_size_mb': '0', 'sortable_values_size_mb': '0', 'key_table_size_mb': '0', 'geoshapes_sz_mb': '0', 'records_per_doc_avg': 'nan', 'bytes_per_record_avg': 'nan', 'offsets_per_term_avg': 'nan', 'offset_bits_per_record_avg': 'nan', 'hash_indexing_failures': '0', 'total_indexing_time': '0', 'indexing': '0', 'percent_indexed': '1', 'number_of_uses': 2, 'cleaning': 0, 'gc_stats': ['bytes_collected', '0', 'total_ms_run', '0', 'total_cycles', '0', 'average_cycle_time_ms', 'nan', 'last_run_time_ms', '0', 'gc_numeric_trees_missed', '0', 'gc_blocks_denied', '0'], 'cursor_stats': ['global_idle', 0, 'global_total', 0, 'index_capacity', 128, 'index_total', 0], 'dialect_stats': ['dialect_1', 0, 'dialect_2', 0, 'dialect_3', 0, 'dialect_4', 0], 'Index Errors': ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A'], 'field statistics': [['identifier', 'tag', 'attribute', 'tag', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']], ['identifier', 'content_vector', 'attribute', 'content_vector', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']]]}
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - INFO - [/app/superagi/vector_store/redis.py:133] - Index already exists!
superagi-celery-1           | [2024-05-05 01:57:16,599: INFO/ForkPoolWorker-8] Index already exists!
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:107] - Executing Workflow step :
superagi-celery-1           | [2024-05-05 01:57:16,600: INFO/ForkPoolWorker-8] Executing Workflow step :
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:107] - ITERATION_WORKFLOW
superagi-celery-1           | [2024-05-05 01:57:16,600: INFO/ForkPoolWorker-8] ITERATION_WORKFLOW
superagi-celery-1           | [2024-05-05 01:57:16,600: WARNING/ForkPoolWorker-8] Fetching model details from database...
superagi-celery-1           | [2024-05-05 01:57:16,607: WARNING/ForkPoolWorker-8] Provider is OpenAI
superagi-celery-1           | [2024-05-05 01:57:16,609: WARNING/ForkPoolWorker-8] Fetching model details from database...
superagi-celery-1           | [2024-05-05 01:57:16,612: WARNING/ForkPoolWorker-8] Provider is OpenAI
superagi-celery-1           | [2024-05-05 01:57:16,612: WARNING/ForkPoolWorker-8] <superagi.llms.openai.OpenAi object at 0x7fe1527395a0>
superagi-celery-1           | [2024-05-05 01:57:16,626: WARNING/ForkPoolWorker-8] OpenAI
superagi-celery-1           | [2024-05-05 01:57:16,635: WARNING/ForkPoolWorker-8] Fetching model details from database...
superagi-celery-1           | [2024-05-05 01:57:16,638: WARNING/ForkPoolWorker-8] Provider is OpenAI
superagi-celery-1           | [2024-05-05 01:57:16,641: WARNING/ForkPoolWorker-8] [ThinkingTool(name='ThinkingTool', description='Intelligent problem-solving assistant that comprehends tasks, identifies key variables, and makes efficient decisions, all while providing detailed, self-driven reasoning for its choices. Do not assume anything, take the details from given data only.', args_schema=<class 'superagi.tools.thinking.tools.ThinkingSchema'>, permission_required=False, toolkit_config=<superagi.tools.base_tool.BaseToolkitConfiguration object at 0x7fe152b23190>, llm=<superagi.llms.openai.OpenAi object at 0x7fe152b23a00>, goals=['make a list of 5 animals you already know'], agent_execution_id=2, agent_id=1, tool_response_manager=<superagi.tools.tool_response_query_manager.ToolResponseQueryManager object at 0x7fe152b212a0>), ReadFileTool(name='Read File', description='Reads the file content in a specified location', args_schema=<class 'superagi.tools.file.read_file.ReadFileSchema'>, permission_required=True, toolkit_config=<superagi.agent.tool_builder.DBToolkitConfiguration object at 0x7fe152b23b50>, agent_id=1, agent_execution_id=2, resource_manager=<superagi.resource_manager.file_manager.FileManager object at 0x7fe152b21600>), WriteFileTool(name='Write File', description='Writes text to a file', args_schema=<class 'superagi.tools.file.write_file.WriteFileInput'>, permission_required=True, toolkit_config=<superagi.agent.tool_builder.DBToolkitConfiguration object at 0x7fe152b23280>, agent_id=1, resource_manager=<superagi.resource_manager.file_manager.FileManager object at 0x7fe152b21450>)]
superagi-celery-1           | [2024-05-05 01:57:16,645: WARNING/ForkPoolWorker-8] tokens
superagi-celery-1           | [2024-05-05 01:57:16,645: WARNING/ForkPoolWorker-8]
superagi-celery-1           | [2024-05-05 01:57:16,646: WARNING/ForkPoolWorker-8] 1046
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:73] - Prompt messages:
superagi-celery-1           | [2024-05-05 01:57:16,657: DEBUG/ForkPoolWorker-8] Prompt messages:
superagi-celery-1           | 2024-05-05 01:57:16 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:73] - [{'role': 'system', 'content': 'test1'}, {'role': 'system', 'content': 'test2'}, {'role': 'system', 'content': 'Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instructions:\nAs an AI assistant to solve complex problems, your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. If you have completed all your tasks or reached the end state, make sure to use the "finish" tool.\nSelect and use tools from the list provided in the 'Input' section as needed to effectively solve each step of the problem.\n\nINSTRUCTION: \n1. dont use the internet or any other source except your memory\n2. write the results to a new .txt file or past them in the chat\n3. ALWAYS RESPOND USING THE JSON SCHEMA OR YOU WILL RECEIVE THE SAME PROMPT AGAIN\n\n\nPERFORMANCE EVALUATION:\n1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n2. Use instruction to decide the flow of execution and decide the next steps for achieving the task.\n3. Constructively self-criticize your big-picture behavior constantly.\n4. Reflect on past decisions and strategies to refine your approach.\n5. Every tool has a cost, so be smart and efficient.\n6. Aim to complete tasks in the least number of steps.\n\nI should only respond in JSON format as described below.\nResponse Format:\n{\n    "$schema": "http://json-schema.org/draft-07/schema#",\n    "type": "object",\n    "properties": {\n        "thoughts": {\n            "type": "object",\n            "properties": {\n                "text": {\n                    "type": "string",\n                    "description": "thought"\n                },\n                "reasoning": {\n                    "type": "string",\n                    "description": "short reasoning"\n                },\n                "plan": {\n                    "type": "string",\n                    "description": "- short bulleted\n- list that conveys\n- long-term plan"\n                },\n                "criticism": {\n                    "type": "string",\n                    "description": "constructive self-criticism"\n                },\n                "speak": {\n                    "type": "string",\n                    "description": "thoughts summary to say to user"\n                }\n            },\n            "required": ["text", "reasoning", "plan", "criticism", "speak"],\n            "additionalProperties": false\n        },\n        "tool": {\n            "type": "object",\n            "properties": {\n                "name": {\n                    "type": "string",\n                    "description": "tool name"\n                },\n                "args": {\n                    "type": "object",\n                    "description": "tool arguments"\n                }\n            },\n            "required": ["name", "args"],\n            "additionalProperties": false\n        }\n    },\n    "required": ["thoughts", "tool"],\n    "additionalProperties": false\n}\n\nEnsure the response can be parsed by Python json.loads.\n\n### Input:\nGOALS:\n1. make a list of 5 animals you already know\n\n\nCONSTRAINTS:\n1. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n2. Ensure the tool and args are as per current plan and reasoning\n3. Exclusively use the tools listed under "TOOLS"\n4. REMEMBER to format your response as JSON, using double quotes ("") around keys and string values, and commas (,) to separate items in arrays and objects. IMPORTANTLY, to use a JSON object as a string in another JSON object, you need to escape the double quotes.\n\n\nTOOLS:\n1. "ThinkingTool": Intelligent problem-solving assistant that comprehends tasks, identifies key variables, and makes efficient decisions, all while providing detailed, self-driven reasoning for its choices. Do not assume anything, take the details from given data only., args json schema: {"task_description": {"title": "Task Description", "description": "Task description which needs reasoning.", "type": "string"}}\n2. "Read File": Reads the file content in a specified location, args json schema: {"file_name": {"title": "File Name", "description": "Path of the file to read", "type": "string"}}\n3. "Write File": Writes text to a file, args json schema: {"file_name": {"title": "File Name", "description": "Name of the file to write. Only include the file name. Don't include path.", "type": "string"}, "content": {"title": "Content", "description": "File content to write", "type": "string"}}\n4. "finish": use this to signal that you have finished all your objectives, args: "response": "final response to let people know you have finished your objectives"\n\n\n\n### Response:\n'}, {'role': 'system', 'content': 'The current time and date is Sun May  5 01:57:16 2024'}, {'role': 'system', 'content': 'test3'}, {'role': 'user', 'content': 'Determine which next tool to use, and respond using the format specified above:'}]
superagi-celery-1           | [2024-05-05 01:57:16,658: DEBUG/ForkPoolWorker-8] [{'role': 'system', 'content': 'test1'}, {'role': 'system', 'content': 'test2'}, {'role': 'system', 'content': 'Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instructions:\nAs an AI assistant to solve complex problems, your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and pursue simple strategies with no legal complications. If you have completed all your tasks or reached the end state, make sure to use the "finish" tool.\nSelect and use tools from the list provided in the 'Input' section as needed to effectively solve each step of the problem.\n\nINSTRUCTION: \n1. dont use the internet or any other source except your memory\n2. write the results to a new .txt file or past them in the chat\n3. ALWAYS RESPOND USING THE JSON SCHEMA OR YOU WILL RECEIVE THE SAME PROMPT AGAIN\n\n\nPERFORMANCE EVALUATION:\n1. Continuously review and analyze your actions to ensure you are performing to the best of your abilities.\n2. Use instruction to decide the flow of execution and decide the next steps for achieving the task.\n3. Constructively self-criticize your big-picture behavior constantly.\n4. Reflect on past decisions and strategies to refine your approach.\n5. Every tool has a cost, so be smart and efficient.\n6. Aim to complete tasks in the least number of steps.\n\nI should only respond in JSON format as described below.\nResponse Format:\n{\n    "$schema": "http://json-schema.org/draft-07/schema#",\n    "type": "object",\n    "properties": {\n        "thoughts": {\n            "type": "object",\n            "properties": {\n                "text": {\n                    "type": "string",\n                    "description": "thought"\n                },\n                "reasoning": {\n                    "type": "string",\n                    "description": "short reasoning"\n                },\n                "plan": {\n                    "type": "string",\n                    "description": "- short bulleted\n- list that conveys\n- long-term plan"\n                },\n                "criticism": {\n                    "type": "string",\n                    "description": "constructive self-criticism"\n                },\n                "speak": {\n                    "type": "string",\n                    "description": "thoughts summary to say to user"\n                }\n            },\n            "required": ["text", "reasoning", "plan", "criticism", "speak"],\n            "additionalProperties": false\n        },\n        "tool": {\n            "type": "object",\n            "properties": {\n                "name": {\n                    "type": "string",\n                    "description": "tool name"\n                },\n                "args": {\n                    "type": "object",\n                    "description": "tool arguments"\n                }\n            },\n            "required": ["name", "args"],\n            "additionalProperties": false\n        }\n    },\n    "required": ["thoughts", "tool"],\n    "additionalProperties": false\n}\n\nEnsure the response can be parsed by Python json.loads.\n\n### Input:\nGOALS:\n1. make a list of 5 animals you already know\n\n\nCONSTRAINTS:\n1. If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.\n2. Ensure the tool and args are as per current plan and reasoning\n3. Exclusively use the tools listed under "TOOLS"\n4. REMEMBER to format your response as JSON, using double quotes ("") around keys and string values, and commas (,) to separate items in arrays and objects. IMPORTANTLY, to use a JSON object as a string in another JSON object, you need to escape the double quotes.\n\n\nTOOLS:\n1. "ThinkingTool": Intelligent problem-solving assistant that comprehends tasks, identifies key variables, and makes efficient decisions, all while providing detailed, self-driven reasoning for its choices. Do not assume anything, take the details from given data only., args json schema: {"task_description": {"title": "Task Description", "description": "Task description which needs reasoning.", "type": "string"}}\n2. "Read File": Reads the file content in a specified location, args json schema: {"file_name": {"title": "File Name", "description": "Path of the file to read", "type": "string"}}\n3. "Write File": Writes text to a file, args json schema: {"file_name": {"title": "File Name", "description": "Name of the file to write. Only include the file name. Don't include path.", "type": "string"}, "content": {"title": "Content", "description": "File content to write", "type": "string"}}\n4. "finish": use this to signal that you have finished all your objectives, args: "response": "final response to let people know you have finished your objectives"\n\n\n\n### Response:\n'}, {'role': 'system', 'content': 'The current time and date is Sun May  5 01:57:16 2024'}, {'role': 'system', 'content': 'test3'}, {'role': 'user', 'content': 'Determine which next tool to use, and respond using the format specified above:'}]
superagi-celery-1           | [2024-05-05 01:57:16,659: WARNING/ForkPoolWorker-8] tokens
superagi-celery-1           | [2024-05-05 01:57:16,659: WARNING/ForkPoolWorker-8]
superagi-celery-1           | [2024-05-05 01:57:16,659: WARNING/ForkPoolWorker-8] 1066
superagi-celery-1           | [2024-05-05 01:57:21,245: WARNING/ForkPoolWorker-8] tokens
superagi-celery-1           | [2024-05-05 01:57:21,245: WARNING/ForkPoolWorker-8]
superagi-celery-1           | [2024-05-05 01:57:21,246: WARNING/ForkPoolWorker-8] 2648
superagi-celery-1           | [2024-05-05 01:57:21,250: WARNING/ForkPoolWorker-8] Decoding JSON has failed
superagi-celery-1           | 2024-05-05 01:57:21 UTC - Super AGI - DEBUG - [/app/superagi/agent/output_parser.py:38] - AgentSchemaOutputParser:
superagi-celery-1           | [2024-05-05 01:57:21,257: DEBUG/ForkPoolWorker-8] AgentSchemaOutputParser:
superagi-celery-1           | 2024-05-05 01:57:21 UTC - Super AGI - DEBUG - [/app/superagi/agent/output_parser.py:38] - I think that the tool that I should use to gather information about the topic is the online survey. I will use this tool because it will make it easier for me to gather information. I will post the survey on social media such as Facebook, Twitter, and Instagram. I will also send it to my friends and family. The survey will ask questions about the topic and will ask for their opinions. I will also ask them to rate the topic on a scale of 1-10. I will also ask them to provide any other information that they think is relevant.
superagi-celery-1           | [2024-05-05 01:57:21,257: DEBUG/ForkPoolWorker-8] I think that the tool that I should use to gather information about the topic is the online survey. I will use this tool because it will make it easier for me to gather information. I will post the survey on social media such as Facebook, Twitter, and Instagram. I will also send it to my friends and family. The survey will ask questions about the topic and will ask for their opinions. I will also ask them to rate the topic on a scale of 1-10. I will also ask them to provide any other information that they think is relevant.
superagi-celery-1           | 2024-05-05 01:57:21 UTC - Super AGI - INFO - [/app/superagi/agent/output_parser.py:46] - AgentSchemaOutputParser: Error parsing JSON response invalid syntax (, line 1)
superagi-celery-1           | [2024-05-05 01:57:21,258: INFO/ForkPoolWorker-8] AgentSchemaOutputParser: Error parsing JSON response invalid syntax (, line 1)
superagi-celery-1           | 2024-05-05 01:57:21 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:90] - Exception in executing the step: invalid syntax (, line 1)
superagi-celery-1           | [2024-05-05 01:57:21,258: INFO/ForkPoolWorker-8] Exception in executing the step: invalid syntax (, line 1)
superagi-celery-1           | [2024-05-05 01:57:21,260: INFO/MainProcess] Task execute_agent[b6aec342-2dc7-405b-9fea-926685603dc4] received
superagi-celery-1           | [2024-05-05 01:57:21,262: INFO/ForkPoolWorker-8] Task execute_agent[f4824048-31ff-48f9-aa04-44b03d37e901] succeeded in 4.726041154004633s: None
superagi-celery-1           | [2024-05-05 01:57:25,718: INFO/Beat] Scheduler: Sending due task execute_waiting_workflows (execute_waiting_workflows)
superagi-celery-1           | [2024-05-05 01:57:25,721: INFO/MainProcess] Task execute_waiting_workflows[66f9f387-4c8c-4a08-ac41-7dd43e8f96aa] received
superagi-celery-1           | 2024-05-05 01:57:25 UTC - Super AGI - INFO - [/app/superagi/worker.py:54] - Executing waiting workflows job
superagi-celery-1           | [2024-05-05 01:57:25,722: INFO/ForkPoolWorker-8] Executing waiting workflows job
superagi-celery-1           | [2024-05-05 01:57:25,729: INFO/ForkPoolWorker-8] Task execute_waiting_workflows[66f9f387-4c8c-4a08-ac41-7dd43e8f96aa] succeeded in 0.007913355002528988s: None
superagi-backend-1          | INFO:     <IP_ADDRESS>:42596 - "GET /agentexecutionfeeds/get/execution/2 HTTP/1.0" 200 OK

The prompt is unusually formatted because i tried different .txt files. This is not related to the issue.


AWS S3 storage driver support for IMDSv2

Using registry:2.7.1 It does not appear that the S3 storage driver supports the assuming of an IAM role when the Instance Metadata Service V2 is enabled on an EC2 instance in AWS.  Turning on IMDSv2 results in this error in the log when attempting to push an image to the registry when using the S3 storage driver.
level=error msg="response completed with error" err.code=unknown err.detail="s3aws: NoCredentialProviders: no valid providers in chain. Deprecated.
This can be replicated by turning on/off IMDSv2 on the EC2 instance hosting the container:
aws ec2 modify-instance-metadata-options --instance-id <INSTANCE_ID> --http-token <required|optional> --http-endpoint enabled --http-put-response-hop-limit 2  --region <REGION>
Manually exec'ing into the container and executing the v2 curl commands to the metadata service succeed, as well as using the aws-cli container from the same instance:
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-docker.html
Turning off IMDSv2 and re-attempting a push of an image succeeds.
IMDSv2 Information:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
Looks like IMDSv2 support was added in aws-sdk-go 1.25.38
https://github.com/aws/aws-sdk-go/releases/tag/v1.25.38

This is already fixed on the main branch (aws-sdk-go version is v1.34.9), but is not fixed in the release/2.7 branch (aws-sdk-go is v1.15.11)

Is there an ETA for when this fix will show up in a release?

We are affected by this issue (attempting to run a registry container in ECS Fargate with an S3 backend).  Any traction on getting this fixed?  The PR has not moved in over a month.

Closing this issue as the problem was fixed on the main branch and will not be fixed on the current release branch. Once v3 is released (hopefully soon) IMDSv2 is supported.


Glob ignores

satisfy ideas stated in cpp-linter/cpp-linter-action#233
This basically allows better reuse of code for filtering files. We can now filter all files (globally) and further filter files based on tool-specific patterns given by the new --ignore-tidy and/or --ignore-format options.

I know this one got a little out of control. One small refactor led to another and another... With the goal of cpp-linter/cpp-linter-action#233 accomplished, I'm ready to do a second round of testing and then begin merging this upstream.


Using Typescript & Adding Typescript to the docs

I am trying to strictly type my Node array & while using the sort functionality, I see errors such as Type 'TableNode[]' is not assignable to type 'NodeType[]', any idea how to fix this? I have tried extending my type with TableNode, but when doing this the error Type 'TableNode' is missing the following properties from type 'NodeType': platform, position, openInterest, APY, and 2 more. shows. Any ideas or documentation to support this use case?
NodeType:
interface NodeType extends TableNode {
    id: string;
    platform: string;
    position: string;
    openInterest: string;
    APY: string;
    fixedYield: string;
    variableYield: string;
}

I also believe the docs should include some documentation for using the library with typescript. I can help with this if necessary. Love the library though! Thanks!

i need more documentation too

I have a similar problem. I wrote a type for the example from the documentation, and the Node Type works, but I get an error in the columns:

import { Column, CompactTable } from '@table-library/react-table-library/compact';
import { getTheme } from '@table-library/react-table-library/mantine';
import { useTheme } from '@table-library/react-table-library/theme';
import { TableNode } from '@table-library/react-table-library/types/table';

interface CustomNode extends TableNode {
    id: string;
    name: string;
    deadline: Date;
    type: string;
    isComplete: boolean;
    _hasContent: boolean;
    nodes?: CustomNode[] | null;
}
const nodes: CustomNode[] = [
    {
        id: '0',
        name: 'Operating System',
        deadline: new Date(2020, 1, 15),
        type: 'SETUP',
        isComplete: true,
        _hasContent: false,
        nodes: null,
    },
    {
        id: '1',
        name: 'VSCode',
        deadline: new Date(2020, 1, 17),
        type: 'SETUP',
        isComplete: true,
        _hasContent: false,
        nodes: [],
    },

    {
        id: '5',
        name: 'Node',
        deadline: new Date(2020, 5, 18),
        type: 'LEARN',
        isComplete: true,
        _hasContent: true,
        nodes: [
            {
                id: '51',
                name: 'Express',
                deadline: new Date(2020, 5, 10),
                type: 'LEARN',
                isComplete: false,
                _hasContent: false,
                nodes: null,
            },
        ],
    },

];

export const CustomTable = () => {
    const data = { nodes };
    const mantineTheme = getTheme();
    const theme = useTheme(mantineTheme);

    const COLUMNS: Column[] = [
        { label: 'Task', renderCell: (item: CustomNode) => item.name },
        {
            label: 'Deadline',
            renderCell: (item: CustomNode) =>
                item.deadline.toLocaleDateString('en-US', {
                    year: 'numeric',
                    month: '2-digit',
                    day: '2-digit',
                }),
        },
        { label: 'Type', renderCell: (item: CustomNode) => item.type },
        {
            label: 'Complete',
            renderCell: (item: CustomNode) => item.isComplete.toString(),
        },
        {
            label: 'Tasks',
            renderCell: (item: CustomNode) => item.nodes?.length,
        },
    ];

    return <CompactTable columns={COLUMNS}  data={data} theme={theme} />;
};

Nothing but the types has been added, so not sure what is wrong here :\

Yeah would be good to have complete, non-cumbersome support for typescript.

Hi everyone. Even though the table library is used in 2 production applications, both are not using TypeScript yet. One of them is in the process of migrating towards TS, where I have seen several TS issues with this library too. Mainly these issues come from missing generics.
As default I have been using type TableNode as baseline throughout the library. However, in a perfect world this would extend as a generic as I have already fixed over here (see the changes in detail). I didn't have the time yet top apply generics everywhere though.
Due to a newborn at home and the company where this library is used migrating only slowly towards TS, any help with this is greatly appreciated!

Can someone check out npm install<EMAIL_ADDRESS>? It should have better TS support for the TableNode which is a generic now.

I'm using TS with my GH project, with a few thousand users so will gladly try it out and report back. Only thing is I'm traveling this week so it'll be next weekend before I can do any real testing


ISPN-12133 Support XML Fragments in CacheContainerAdmin

https://issues.redhat.com/browse/ISPN-12133

Don't merge before https://github.com/infinispan/infinispan/pull/8815
It's easier to change here than there

Rebased

@ryanemerson I've applied Don's suggestions


Error: 'Units' is not an accessible property

Recently updated export_fig, using version 27/03/15.  Simple call to export_fig, now getting the following error:
Can supply .fig file if that's helpful.
from calling:
export_fig('figures\strouhal\bat1.pdf','-pdf')
	Error using hg.hggroup/get
	The name 'Units' is not an accessible property
	for an instance of class 'hggroup'.

	Error in export_fig (line 282)
							originalUnits =
							get(annotationHandles,'Units');

Sorry, should have mentioned, on r2013b, and I'm purposely disabling legend entries for a few of my drawn lines if that makes any difference.
If I use the following lines, then it doesn't give the error, but it crops off a portion of the figure.  This has the same effect as commenting out those lines around 282
        annotationHandles = findall(fig,'Type','hggroup','-and','-not','Units','norm');
        del_anh=false(size(annotationHandles));
        for anh=1:length(annotationHandles)
          del_anh(anh)=~isfield(annotationHandles(anh),'units');
        end
        annotationHandles(del_anh')=[];
        if ~isempty(annotationHandles)
          originalUnits = get(annotationHandles,'Units');
          set(annotationHandles,'Units','norm');
        end

Fixed and closed. You can solve the cropping issue using the -p parameter to export_fig.


Fix balloons helm installation and add doc

Add more document about balloons helm installation guide.
Remove the ".default" suffix from the daemonset and configmap yaml files.

Related https://github.com/containers/nri-plugins/issues/99


WebSocket ZMQ gateway architecture recommendations

Hi,
First of all, kudos to @vinniefalco, boost/beast is quite impressive!
I am looking for recommendations to implement a WebSocket ZMQ gateway using boost/beast.
For starting point, I used boost/beast 1.66 websocket example
I plan to augment the demo with a zmq socket listener and forward incoming messages to the websocket.
I am contemplating the following options

integrate zmq using boost asio library
leverage azmq

Any recommendations?
Thanks in advance.

Has this issue been resolved?

Yes. I don't have the specifics at the task has been re-assigned but we were able to integrate ZMQ with Beast


Question on "fake_context_parallel_forward" in diffusers implementation

Hi, thanks for releasing the powerful text-to-video model. I notice that there is a strange point in the diffusers implementation of AutoEncoderKLCogvideoX.
    def fake_context_parallel_forward(self, inputs: torch.Tensor) -> torch.Tensor:
        kernel_size = self.time_kernel_size
        if kernel_size > 1:
            cached_inputs = (
                [self.conv_cache] if self.conv_cache is not None else [inputs[:, :, :1]] * (kernel_size - 1)
            )
            inputs = torch.cat(cached_inputs + [inputs], dim=2)
        return inputs

    def _clear_fake_context_parallel_cache(self):
        del self.conv_cache
        self.conv_cache = None

    def forward(self, inputs: torch.Tensor) -> torch.Tensor:
        inputs = self.fake_context_parallel_forward(inputs)

        self._clear_fake_context_parallel_cache()
        # Note: we could move these to the cpu for a lower maximum memory usage but its only a few
        # hundred megabytes and so let's not do it for now
        self.conv_cache = inputs[:, :, -self.time_kernel_size + 1 :].clone()

        padding_2d = (self.width_pad, self.width_pad, self.height_pad, self.height_pad)
        inputs = F.pad(inputs, padding_2d, mode="constant", value=0)

        output = self.conv(inputs)
        return output

If I call multiple times of AutoEncoderKLCogvideoX.encode to encode multiple videos, the conv_cache will not be cleared between the multiple encode call (even cause error when the batch size doesn't match!)
If I understand correctly, this behavior will leak some information from the last video to the current video. I'm wondering what's the purpose of this conv_cache, and whether it's an incorrect handling of that in the current diffusers implementation.

You need to call this method to clear the cache after each encode/decode for the moment

What's this cache aiming for? Does it mean I can call the encode multiple times (split on the n_frame dimension) to lower maximum GPU memory requirements while getting the same results?

What's this cache aiming for? Does it mean I can call the encode multiple times (split on the n_frame dimension) to lower maximum GPU memory requirements while getting the same results?

I guess this is aim to realize the 'causal conv', the 3d conv kernel is '333', if you want to keep temporal size, you should padidng it. The code use the cache to padding before the first frame.


Check NSLocationWhenInUseUsageDescription when asking for location permission

When doing an .addPermission for LocationWhileInUsePermission or LocationAlwaysPermission  the key NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription has to be setup in the info.plist.
You can test it with code like this:
let hasAlwaysKey = !NSBundle.mainBundle()
    .objectForInfoDictionaryKey("NSLocationAlwaysUsageDescription").isNil
let hasWhenInUseKey = !NSBundle.mainBundle()
    .objectForInfoDictionaryKey("NSLocationWhenInUseUsageDescription").isNil

And if it's false then execute something like:
assert(hasAlwaysKey, "To use location services in iOS 8+, your Info.plist must provide a value for either NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription.")

Nice catch, this is really helpful for users. I can only wonder why Apple doesn't do this themselves.

@evermeer test the new PR if you can and I'll merge it.


release/1.x: prettier plugins do not work when installed with pnpm

Do you want to request a feature or report a bug?
What is the current/expected behavior?
the prettier plugin prettier-plugin-svelte should work when installed on a project. It does work with npm, it does not work with pnpm. I suspect the same issue will occur with any prettier plugin. I can create a repro repo if it helps.
What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-alpha
What version of prettier are you using - (output of  :PrettierCliVersion) ?
1.18.2
What is your prettier executable path - (output of  :PrettierCliPath) ?
/hom/andrew/Build/dev/andykais.github.io.sapper/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
it works when installing with npm.
works:
npm i -D prettier-plugin-svelte prettier

does not work:
pnpm i -D prettier-plugin-svelte prettier

At this stage we don't currently support pnpm feel free to submit a PR to add support to it.
In the meantime will be closing this issue and may re-open this in the future if we get enough bandwidth to get into it and if pnpm become mainstream

@andykais you could use the plugin with --plugin=./node_modules/prettier-plugin-svelte in the CLI. I found that here: https://github.com/prettier/prettier/issues/8056#issuecomment-623401847
Maybe not the best idea, but it works


npm support

It would be great with an npm package, for those of us who no longer use bower. :)

Sounds like a sensible suggestion ;-) I'll see what I can do...


Rule of the form "() & (X)" during a reduction

During network reduction, a function has a he form "() & (X)", which causes problems downstream.
Here is an example:

N=500
K=2
p=sm.RandomBooleanNetworks.get_criticality_p_Kauffman(K)[0]
N_ensemble=10
seed=1000
rbn_ensemble=sm.RandomBooleanNetworks.Random_Boolean_Network_Ensemble_Kauffman(N,K,p,N_ensemble,seed=seed,write_Boolean_network=True)
start=default_timer()
rules=rbn_ensemble[9]
rules = sm.Format.booleannet2bnet(rules)
primes = PyBoolNet.FileExchange.bnet2primes(rules)
PyBoolNet.PrimeImplicants._percolation(primes,True)
end=default_timer()
print("Time (s) creating reduced networks:",end-start)
print("Reduced network size: ",str(len(primes)))
#sm.Format.pretty_print_prime_rules(primes)
start=default_timer()
diag = sm.Succession.build_succession_diagram(primes)
end=default_timer()
print("Time (s) finding atttactors:",end-start)
print("Number of attractors: ",str(len(diag.attractor_fixed_nodes_list)))
diag.attractor_candidate_summary()

Here is the error:

Time (s) creating reduced networks: 0.1052130560000002
Reduced network size:  243
(  ) & ( n107 | !n108 | n116 | !n126 | !n145 | !n151 | n155 | n169 | !n197 | n209 | n24 | !n263 | n279 | !n28 | !n309 | !n313 | !n328 | !n341 | !n352 | n356 | n360 | !n369 | !n374 | !n381 | !n397 | n399 | !n406 | !n41 | n429 | n465 | n469 | n483 | n7 | n75 | n85 | !n88 | !n90 ) & ( !n106 | n107 | !n108 | n116 | n119 | !n126 | !n137 | !n145 | !n151 | !n152 | n155 | !n165 | n169 | n209 | !n214 | n24 | !n263 | n279 | !n28 | !n309 | !n313 | !n328 | n33 | n332 | !n341 | n349 | !n352 | n356 | n360 | !n369 | !n374 | !n376 | n377 | !n381 | !n390 | n392 | !n397 | n399 | !n401 | !n406 | !n41 | n429 | n465 | n469 | !n480 | n483 | n485 | n7 | n75 | n85 | !n88 | !n90 | !n92 ) & ( !n106 | n107 | !n108 | n116 | !n126 | !n137 | !n145 | !n151 | n155 | n169 | n209 | n24 | !n263 | n279 | !n28 | !n309 | !n313 | !n328 | !n341 | !n352 | n356 | n360 | !n369 | !n374 | n377 | !n381 | n392 | !n397 | n399 | !n406 | !n41 | n429 | n465 | n469 | n483 | n485 | !n52 | n7 | n75 | n85 | !n88 | !n90 )
b''
b'/Users/jgtz/anaconda3/envs/py37_SM/lib/python3.7/site-packages/PyBoolNet/Dependencies/eqntott/eqntott_mac64: 0: syntax error\n... \x00Test = (  ) & ( n107 | !n108 | n116 | !n126 | !n145 | !n151 | n155 | n1 ...\n               ^\n'
Call to "eqntott" resulted in return code 1
Exception                                 Traceback (most recent call last)
 in
10
11 start=default_timer()
---> 12 diag = sm.Succession.build_succession_diagram(primes)
13 end=default_timer()
14 print("Time (s) finding atttactors:",end-start)
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Succession.py in build_succession_diagram(primes, fixed, motif_history, diagram, merge_equivalent_motifs, max_simulate_size, prioritize_source_motifs)
585     if fixed is None:
586         fixed = {}
--> 587     myMotifReduction=sm_reduction.MotifReduction(motif_history,fixed.copy(),primes,max_simulate_size=max_simulate_size,prioritize_source_motifs=prioritize_source_motifs)
588     if diagram is None:
589         diagram = SuccessionDiagram()
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Reduction.py in init(self, motif_history, fixed, reduced_primes, max_simulate_size, prioritize_source_motifs)
254                     break
255             if self.terminal == "possible":
--> 256                 self.rspace_constraint = sm_format.pretty_print_rspace(self.rspace)
257                 self.reduced_rspace_constraint = sm_rspace.reduce_rspace_string(self.rspace_constraint,self.fixed_rspace_nodes)
258                 self.rspace_update_primes = reduce_primes(self.fixed_rspace_nodes,self.reduced_primes)[0]
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Format.py in pretty_print_rspace(L, simplify, silent)
164     if simplify:
165         print(s)
--> 166         s = PyBoolNet.BooleanLogic.minimize_espresso(s)
167     if not silent:
168         print(s)
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/PyBoolNet/BooleanLogic.py in minimize_espresso(Expression, Outputfile, Merge, Equiv, Exact, Reduce)
152         eqntott_cmd += ['/dev/stdin']
153         eqntott_in = Expression
--> 154         eqntott_out = run_eqntott(eqntott_cmd, eqntott_in)
155
156         if int(re.search(r'.p\s\d+', eqntott_out).group().strip(".p ")) != 0:
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/PyBoolNet/BooleanLogic.py in run_eqntott(eqntott_cmd, eqntott_in)
75         eqntott_out, eqntott_err = eqntott.communicate(input=eqntott_in.encode())
76         eqntott.stdin.close()
---> 77         _eqntott_error(eqntott, eqntott_out, eqntott_err)
78         return(eqntott_out.decode())
79
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/PyBoolNet/BooleanLogic.py in _eqntott_error(eqntott, eqntott_out, eqntott_err)
57                 print(eqntott_err)
58                 print('\nCall to "eqntott" resulted in return code %i'%eqntott.returncode)
---> 59                 raise Exception
60
61
Exception:

Note: I added a print statement before the "PyBoolNet.BooleanLogic.minimize_espresso" error to see the function,

It looks like this error is in the rspace construction part, not the network reduction part. I'll look into it though. Thanks for the detailed report!

I think I've got it. It was that I wasn't handling the case when we get information from the TR stable motifs, but not the single-node drivers. Since it was such a small bugfix (2 lines), I've pushed directly to the master branch.
The example you gave now runs. I'll leave it to you to close the issue when you're convinced the bug isn't popping up in your other tests.

Found a problem that, I think, is related to the fix (I think when the list you added to fix the problem is empty?)
Code:

start=default_timer()
rules=rbn_ensemble[0]
rules = sm.Format.booleannet2bnet(rules)
primes = PyBoolNet.FileExchange.bnet2primes(rules)
PyBoolNet.PrimeImplicants._percolation(primes,True)
end=default_timer()
print("Time (s) creating reduced networks:",end-start)
print("Reduced network size: ",str(len(primes)))
#sm.Format.pretty_print_prime_rules(primes)
N=1000
K=2
p=sm.RandomBooleanNetworks.get_criticality_p_Kauffman(K)[0]
N_ensemble=10
seed=1000
rbn_ensemble=sm.RandomBooleanNetworks.Random_Boolean_Network_Ensemble_Kauffman(N,K,p,N_ensemble,seed=seed,write_Boolean_network=True)
start=default_timer()
diag = sm.Succession.build_succession_diagram(primes)
end=default_timer()
print("Time (s) finding atttactors:",end-start)
print("Number of attractors: ",str(len(diag.attractor_fixed_nodes_list)))
diag.attractor_candidate_summary()

Error

Time (s) creating reduced networks: 0.25272280399999403
Reduced network size:  355
IndexError                                Traceback (most recent call last)
 in
10
11 start=default_timer()
---> 12 diag = sm.Succession.build_succession_diagram(primes)
13 end=default_timer()
14 print("Time (s) finding atttactors:",end-start)
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Succession.py in build_succession_diagram(primes, fixed, motif_history, diagram, merge_equivalent_motifs, max_simulate_size, prioritize_source_motifs)
608                 diagram, merge_equivalent_motifs=merge_equivalent_motifs,
609                 max_simulate_size=max_simulate_size,
--> 610                 prioritize_source_motifs=prioritize_source_motifs)
611     return diagram
612
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Succession.py in build_succession_diagram(primes, fixed, motif_history, diagram, merge_equivalent_motifs, max_simulate_size, prioritize_source_motifs)
585     if fixed is None:
586         fixed = {}
--> 587     myMotifReduction=sm_reduction.MotifReduction(motif_history,fixed.copy(),primes,max_simulate_size=max_simulate_size,prioritize_source_motifs=prioritize_source_motifs)
588     if diagram is None:
589         diagram = SuccessionDiagram()
~/anaconda3/envs/py37_SM/lib/python3.7/site-packages/StableMotifs/Reduction.py in init(self, motif_history, fixed, reduced_primes, max_simulate_size, prioritize_source_motifs)
247             #self.fixed_rspace_nodes =sm_rspace.fixed_rspace_nodes(self.rspace,self.reduced_primes)
248             self.rspace = sm_rspace.reduce_rspace(self.rspace,self.reduced_primes)
--> 249             self.fixed_rspace_nodes = self.rspace[0][0]
250
251             for motif in self.stable_motifs:
IndexError: list index out of range

Okay, I think I fixed it for real this time.
I also fixed another small bug that appeared in this example; the formatter that passes rules to espresso wasn't handling trivial rules (e.g., n26*=0) properly in certain circumstances during reduction.

I have not found any more problems with this when testing, so I think I will close it.


Assign To automatically saves

As a ministry coordinator or IAO analyst
I want my selection of an assignee to automatically save (no longer need to click the Save button)
so that I do not miss completing the assignment and the request getting lost

Assumptions & Scope
What are the assumptions for this story?
Users have flagged the risk with the assignment save not been automatic like the Watcher.
What is IN scope?
Changing the assignment save for both ministry coordinators and IAO analysts.
What is NOT in scope?
Changing the design.
Acceptance Criteria
Scenario 1: IAO 'Assign To'

GIVEN an IAO analyst is on a request view
AND he or she has clicked the 'Assigned to' field to open the dropdown
WHEN the analyst clicks an assignee on the list
THEN the selected assignee will automatically be saved as assigned to the request

Scenario 2: xxxxxx

GIVEN a ministry coordinator is on a request view
AND he or she has clicked the 'Ministry Assigned to' field to open the dropdown
WHEN the coordinator clicks an assignee on the list
THEN the selected assignee will automatically be saved as assigned to the request

...
Dependencies? What is the impact of this dependency? (If so, link dependency in the ticket, make it visible in a team´s backlog)
Validation Rules? (If yes, list here)
Design
@xxx - please link the Design here
Definition of Ready

[ ] Is there a well articulated User Story?
[ ] Is there Acceptance Criteria that covers all scenarios (happy/sad paths)?
[ ] If there is a user interface, is there a design?
[ ] Does the user story need user research/validation?
[ ] Does this User Story needs stakeholder approval?
[ ] Design / Solution accepted by Product Owner
[ ] Is this user story small enough to be completed in a Sprint? Should it be split?
[ ] Are the dependencies known/ understood? (technical, business, regulatory/policy)
[ ] Has the story been estimated?

Definition of Done

[ ] Passes developer unit tests
[ ] Passes peer code review
[ ] If there's a user interface, passes UX assurance
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Confirm Test cases built and succeeding
[ ] No regression test failures
[ ] Test coverage acceptable by Product Owner
[ ] Ticket ready to be merged to master or story branch
[ ] Developer to list Config changes/ Update documents and designs
[ ] Can be demoed in Sprint Review
[ ] Tagged as part of a Release
[ ] Feature flagged if required
[ ] Change Management activities done?

@m-prodan do you need auto assignment for unopened request(request from angular app). Currently auto assignment added only from intake in progress onwards. Please confirm

@m-prodan - as we discussed, the toast will indicate the success or failure.
Also, any unsaved request in IAO and Ministry view also handled. If any unsaved data then the alert will show when you try to change the AssignedTo.

Passes! Excited about this one.... way to go @divyav-aot !


[macOS] Various volume list fixes

Fix non-ASCII volume names (UTF8 string was parsed as ASCII).
Replace deprecated mountedLocalVolumePaths (10.0-10.11) API with mountedVolumeURLsIncludingResourceValuesForKeys (10.6+).
Remove hidden mount points (Sandboxes, Time Machine snapshots, system recovery, etc.) from the volume list.

Before:

After:

Thanks!


An unhandled exception occurred while processing the request.

Hi Guys,
Im get error to access admin server at my address http://localhost:9000
Im change all ocurrences for Use PostgreSQL database, but i have this erros

An unhandled exception occurred while processing the request.
SocketException: Connection refused
System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)
HttpRequestException: Connection refused
System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)
IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'.
Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(string address, CancellationToken cancel)
InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'.
Microsoft.IdentityModel.Protocols.ConfigurationManager.GetConfigurationAsync(CancellationToken cancel)

My App STS its work!
I follow tutorial in github to configure my server, but i need help! :(
My infrastructure
Ubuntu 18.10
AspNet core 2.2
Visual Studio Code
PostgreSQL

Hi,
Please try to restart your STS, sometimes I get this message and after restarting it is working.
Let me know.

Nice Dude!
Im restart my STS, and start admin and STS side by side. It Works

Hi,
Please try to restart your STS, sometimes I get this message and after restarting it is working.
Let me know.


Use gem toml-rb instead of toml

Fixes #63

sounds good, can you deconflict this branch and if it's clean and passes tests we can merge them in.

Sure, I'll open a new PR


Comparison level - structured interface

Now that we have ComparisonLevelCreators, the user never needs to deal with the ComparisonLevel class directly, so there is no need to allow the constructor to accept a dict directly. This means that:

it is easy to see what parameters exist, and the defaults, without referring to the schema
can handle the logic of these parameters directly
should allow for some simplifications to the class itself

This proposal is the first part of a larger stream, which will eventually:

do the same for Comparison and Settings
mean we only ever deal internally with ComparisonLevel, Comparison, Settings, rather than their serialisations, which are separate considerations

this will make the code easier to deal with, and means we can also wrap logic around values if we need to

This is only a partial step, as the coupling between ComparisonLevel and Comparison, (and Settings) means that some things (such as enforcing non-None dialects) will make more sense to do once those are also converted

This is great - definitely think it's the right direction of travel - with the aim of ending up with everything being python objects rather than dicts.
Before we merge, could you write some examples of (roughly) what we think the end state will look like from the user's point of view (i.e. once the 'larger stream' is done).
I just want to double check that we're thinking along the same lines and that I haven't misunderstood anything.
By examples, I mean a script illustrating how you're imagining the user would construct a settings object and pass it to the linker in the 'end state'.

Basic example of the 'most common' use of Splink, where user is using the comparison library and doing everything the simplest way
Example of where the user wants to customise a comparison level with custom sql
Example of how the user would load in a serialised settings object and call predict()

Then once we're all happy with this 'end state', happy to approve this

Before we merge, could you write some examples of (roughly) what we think the end state will look like from the user's point of view (i.e. once the 'larger stream' is done).

Sure - this folder has sketches of the scenarios you outline in the shape of what I have in mind. There is a sketch of some accompanying logic for Linker+Settings, and I have also dumped some thoughts/reasonings in a README. This is a PR of the same in case you want to comment on any specific lines.

On (3) I'm just thinking again about the possibility of disallowing the user from instantiating a linker without a settings object, meaning we could get rid of some of the if settings_dict is None type logic.

Yeah, agree with this. I think if we encounter things that would be nice to do where the user doesn't need settings (and it's annoying for them to have to make 'dummy versions') this is a good case for stripping it out of the Linker, like we are scoping out with profile_columns.

That just means we have to have a mechanism for loading in from .json, which could be Linker(df, "myfile.json")

But also feels like a user should be able somehow use a dict

I've made some notes on this in the linked repo, but I think there are a couple of different things here being combined - loading in a serialised settings, and creating one from a dictionary, which I think we should keep separate. I'm not sure if it's useful for users to first load their model from file to a dict (maybe it is, if they want to check values or something), but when they use that to create a linker I think we should distinguish this case from the usual case of writing settings from fresh. If that doesn't make loads of sense hopefully my sketches will be a bit clearer.

Thanks. Yeah, this all looks great to me.  The examples were useful in getting it all clear in my head.  Particularly the idea that the settings provided to Linker can include elements of dicts, but internally (in the 'real settings'), we're no longer using dicts.  That feels right.  And I agree we should push users towards proper objects e.g. in the docs etc.
I think worth just raising a few issues around loading from dict.  (I'm not particularly worried about this, just thinking out loud really):
re settings, you say:

I can't see a reason that people should be hand-editing the model JSON (correct me if I'm wrong). So I don't think that the user should really have to care what that looks like in any detail (only care about compatibility)

I think that's broadly right, but occasionally I find myself wanting to override some of the m an u probabilities in a trained model.
For example, if you've found some edge cases where the model is failing, you might want to reduce the match weights for a partiuclar comparison level and see what happens (without retraining the whole model).
It feels like possibly the right time to do this might be before you pass the settings to the linker, because it would be consistent how the rest of Splink (will) work:
In our proposals it's difficult for the user to override any settings 'ex post', so you can do like:
cl.ExactMatch("name").configure(m_probabilities=[...])

But once settings is passed to Linker, you can't then (easily) change the m and u probabilities.
This all seems fine though, because we're proposing allowing settings to be passed in as object or a dict.  So in the (fairly niche) case of the user loading settings from a json to a dict, and then passing into Linker, it's kind of up to them to modify the dict if they want to


OpenApi yaml spec has wrong minimum value for doubles

Description
If output scheme has z.number() minimum value in openapi sets Number.MIN_VALUE (> 0), but in reality floats can be negative and zero
Expected
z.number() must generate openapi with correct min values
Reproduction

Create handler with output schema like { value: z.number() }
Initialize new Documentation object with route including handler from step.1
Call getSpecAsYaml in Documentation object
Type description contains min specification with minimum: 5e-324

Node.js version: 18.16.1
express-zod-api version: 16.5.2

https://github.com/RobinTail/express-zod-api/blob/ec2471849daad1db711377bc0acab57f28a00dd5/src/documentation-helpers.ts#L516

definition of Number.MIN_VALUE
Suggestion to replace it with Number.MIN

Agree.
Perfect catch, @kotsmile
Thank you!
In case you have an idea on what should be the right value in this case, please let me know.

Probably this
-Number.MAX_VALUE

@RobinTail thank you for so fast fix!

🚀 fixed in v16.5.3, @kotsmile
Thank you for the contribution!


Taskbar does not appear when 'Automatically hide taskbar' is enabled and Files app is maximised

Description
When the 'Automatically hide the taskbar' option is enabled in the taskbar settings on a Windows 11 (Version 22H2, Build 22621.2506) system, and the user opens the "Files" application (Version <IP_ADDRESS>) in a maximized window, there is a bug that prevents the taskbar from popping up when the cursor is hovered over the bottom of the screen.
Environment:
Files App Version: <IP_ADDRESS>
Taskbar Settings: 'Automatically hide the taskbar' enabled
Windows Edition: Windows 11
Windows Version: 22H2
OS Build: 22621.2506
Steps To Reproduce

Turn on 'Automatically hide the taskbar' from the taskbar settings.
Open the "Files" application.
Maximize the "Files" window.
Hover the cursor at the bottom of the screen, expecting the taskbar to appear, but it doesn't.

Requirements
When 'Automatically hide the taskbar' is enabled, Files app is maximised and the cursor is hovered over the bottom of the screen, the taskbar should pop up as expected.
Files Version
<IP_ADDRESS>
Windows Version
11.0.22621.2506
Log File
debug.log

Thanks for the report, this has been fixed in the preview version. https://files.community/download and will be available for stable in v3 when release.


Ports and different variants

Hi, speaking by personal experience with Customers, I would add in the samples the ports numbers and specify that it will work only with the exact hostname as written, for example if the customer internally connect just using servername rather than the full host both version should be declared:
"AllowedFrameAncestors":  "https://servername.domain.com:2433,https://servername:2433",

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

ID: 2e4a174f-78d5-338d-5233-c605c181d222
Version Independent ID: 03e2249a-d165-1fab-34ed-7fe2dc7792b4
Content: Embed the Web Client Pages - Dynamics NAV
Content Source: dynamics-nav/Embedding-Microsoft-Dynamics-NAV-Web-Client-Pages-in-Other-Websites.md
Product: dynamics-nav-2018
GitHub Login: @jswymer

Thanks for the feedback, we're sorry for not getting back sooner. This issue refers to NAV product documentation and we no longer update this docset.


[1.1.x] support for storing tagged series in hashed filenames | lint fix | add optional keepStep parameter to aggregateLine | don't modify series | w/g/f/remote.py: add missing local field to auto_complete_{t

Backports the following commits to 1.1.x:

support for storing tagged series in hashed filenames (#2221)
lint fix (#2221)
add optional keepStep parameter to aggregateLine (#2234)
don't modify series (#2234)
w/g/f/remote.py: add missing local field to auto_complete_{tags,values} (#2244)
fix hitcount bucket calculation (#2252)
fix usage of "unicode" in glyph.py for Python 3 (#2254)
use isinstance (#2254)
support specifying noNullPoints and maxDataPoints together (#2257)

Backport of #2221, #2234, #2244, #2252, #2254 and #2257 to 1.1.x

Codecov Report

Merging #2258 into 1.1.x will increase coverage by 0.1%.
The diff coverage is 85.71%.

@@            Coverage Diff            @@
##            1.1.x    #2258     +/-   ##
=========================================
+ Coverage   79.48%   79.58%   +0.1%
=========================================
  Files          85       85
  Lines        8847     8848      +1
  Branches     1890     1894      +4
=========================================
+ Hits         7032     7042     +10
+ Misses       1550     1545      -5
+ Partials      265      261      -4

Impacted Files
Coverage Δ

webapp/graphite/finders/remote.py
99.33% <ø> (ø)
:arrow_up:

webapp/graphite/finders/ceres.py
95.55% <100%> (+8.88%)
:arrow_up:

webapp/graphite/tags/utils.py
88.46% <100%> (ø)
:arrow_up:

webapp/graphite/render/functions.py
96.04% <100%> (ø)
:arrow_up:

webapp/graphite/render/datalib.py
100% <100%> (ø)
:arrow_up:

webapp/graphite/tags/views.py
100% <100%> (ø)
:arrow_up:

webapp/graphite/render/views.py
69.95% <100%> (-0.94%)
:arrow_down:

webapp/graphite/render/glyph.py
41.69% <14.28%> (+0.04%)
:arrow_up:

webapp/graphite/finders/standard.py
75.75% <82.25%> (+5.59%)
:arrow_up:

Continue to review full report at Codecov.

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


Updated for Swift 2

TODO: rewrite C-style statements

Thank you very much for your contribution.

You are welcome


routes not resolve the collection

i am trying to resolve my Mails collection for two routes (inbox & sent). with two different quires but got the same mails collection. here is my code for routes config.
.state('mailbox.inbox', {
                    url: '/inbox',
                    templateUrl: 'client/inbox/views/inbox.ng.html',
                    controller: 'inboxCtrl',
                    resolve: {
                        "inbox": ["$meteor","$q", function($meteor, $q){
                            return $meteor.requireUser().then(function(res){
                                var defer = $q.defer();
                                $meteor.requireUser().then(function(res){
                                    var query = {
                                        id: res._id,
                                        condition : 'to'
                                    };
                                    $meteor.subscribe('mails', query).then(function(subscriptionHandle){
                                        var temp = $meteor.collection(Mails);
                                        defer.resolve(temp);
                                    });
                                });
                                return defer.promise;
                            })
                        }]
                    }
                })
                .state('mailbox.sent', {
                    url: '/sent',
                    templateUrl: 'client/sent/views/sent.ng.html',
                    controller: 'sentCtrl',
                    resolve: {
                        "getSent": ["$meteor", "$q", function($meteor, $q){
                            var defer = $q.defer();
                            $meteor.requireUser().then(function(res){
                                var query = {
                                    id: res._id,
                                    condition : 'from'
                                };
                                $meteor.subscribe('mails', query).then(function(subscriptionHandle){
                                    var temp = $meteor.collection(Mails);
                                    defer.resolve(temp);
                                });
                            });
                            return defer.promise;
                        }]
                    }
                })

and in both controllers mail bind with these i.e
$scope.mails = inbox (for inbox controller)
$scope.mails = getSent (for sentMail controller)

and here is simple server code
Meteor.publish("mails", function (user) {
    var query = {};
    query[user.condition] = user.id;
    console.log("query", query)

    if(this.userId == user.id)
        return Mails.find(query);
});

Any help is greatly appreciated !

@raza2022 yes, that's how publication works.  You will have to close one of them before turning on the other.
There is a great article about it linked in the tutorial here: http://angular-meteor.com/tutorials/angular1/privacy-and-publish-subscribe-functions#understandingmeteorspublishsubscribe
@Tallyb wrote a great article explains that, which I asked her to add to the tutorial and she didn't :)
and also, another great article that explain that through pagination: https://www.discovermeteor.com/blog/pagination-problems-meteor/
that maybe we should link to in the tutorial as well (@Tallyb ???)
I'm closing but let me know if it didn't work for you

@Urigo  - hey, the link is in the summary section for a long time...
Anyway - reworked the wording and moved it to the understanding section, with a preface note at the top of the tutorial.

thanks @Tallyb !


Update stable version in repo from 1.0.0 to 1.0.1

Think about update stable version to 1.0.1
Version: stable=1.0.0 (85 days old) => latest=1.0.1 (15 days old)
Installs: stable=272 (54.18%), latest=75 (14.94%), total=502
Click to use developer portal
Click to edit
Do not close this issue manually as a new issue will be created if condition for update still exists.
Please drop a comment if any reason exists which blocks updating to version 1.0.1 at this time.
Note: This is an automatically generated message and not personally authored by bluefox!
@mcm1957 for evidence

This issue seems to be outdated.
This issue suggests to update the stable version of this adapter to 1.0.1 but the current stable version is already 1.0.1.
So this issue should be closed.
@mcm1957 for evidence


Possible bug while parsing lists with dates

Hey there,
I am experiencing weird behaviour while creating a list with german dates (DD.MM.YYYY)
It just ignores what I write and increases the list instead.
This behaviour stops, when I use an asterisk for the list.
Though doing so ends up increasing the space between the lines, which is annoying since it isn't consistent with the rest anymore.
Thanks for your help

Hi @GeneralGeki,
Yeah, These dates are being rendered as numbered lists since they follow the general markdown format for those.
I've found you can escape the dot to render these as expected:
* 14\. Jan 2069
* 21\. Feb 2077

Since the issue was explained with a workaround provide, and since there was no follow-up discussion, I'll close this off.


Didnt solve my doubt

[Enter feedback here]
What an useless help page.....  It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f3745d89-ac9e-5365-25b7-4788a3374ae5
Version Independent ID: 6691cf6d-547b-a12d-f5d7-8ee9c3ff38e0
Content: Add and manage issues or impediments - Azure Boards
Content Source: docs/boards/backlogs/manage-issues-impediments.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@sgcollazos - Closing this issue as there is no actionable information. If more information can be provided to help improve this article, please reopen the issue.


Upgrading a VersionTolerant Model

If you have something like this already serialized:
[MemoryPackable(GenerateType.VersionTolerant)]
public partial class Model
{
[MemoryPackOrder(0)]
public string Name { get; set; }
}

Then lets say you need to upgrade the model by adding an additional property, but you want the new property to have non-default value, like this:
[MemoryPackable(GenerateType.VersionTolerant)]
public partial class Model
{
[MemoryPackOrder(0)]
public string Name { get; set; }

[MemoryPackOrder(1)]
[DefaultValue(99)]
public int Age { get; set; } = 99;
}

So when the original model is deserialized the value of Age should be 99 even though this was not in the original byte[]. Is there any way to do that? (I showed how I'd do it with Protobuf-net, but this does not seem to work in Memorypack.)
Thanks!

Hello. There seems to be a problem as you have pointed out.
In #242, I tried to fix deriving default values from C# type definitions.
Thanks a lot.

The feature to detect default values was problematic and was reverted.
We would like to consider another method.

Hello.
Before, we tried to take care of all default values, but it is hard to deal with all cases and there were performance problems.
Also, this problem only occurs when the binary is old.
In the end, we only addressed it by adding an attribute for cases where you want to handle a special default value.
Please check [SuppressDefaultInitialization] added in 1.21.0.
https://github.com/Cysharp/MemoryPack?tab=readme-ov-file#version-tolerant
[MemoryPackable].
public partial class DefaultValue
{
    public string Prop1 { get; set; }

    [SuppressDefaultInitialization].
    public int Prop2 { get; set; } = 111; // < if old data is missing, set `111`.

    public int Prop3 { get; set; } = 222; // < if old data is missing, set `default`.
}

For members with this attribute, the default value of the type declaration can be used.