Svg, Rect, Path} from 'react-native-svg not showing image or icon

NB Never post screenshots of code. Post copy paste-able code if you include any.
Ignoring this will likely lead to direct closing of the issue.
Please respect the time and energy of open source maintainers.
Bug
Please provide a clear and concise description of what the bug is.
Include screenshots if needed.
Please test using the latest release of the library, as maybe said bug has been already fixed.
Unexpected behavior
If you have unexpected behavior, please create a clean project with the latest versions of react-native and react-native-svg
react-native init CleanProject
cd CleanProject/
yarn add react-native-svg
cd ios && pod install && cd ..
modify App.js -> run the app

If it's still an issue with the latest versions,
please make an sscce in the clean project,
and make it available as a git repo on github.
Or as a https://snack.expo.io/ if expo has the latest version,
and / or the bug exists both in the latest version and the one used in expo and snack.
Environment info
Run react-native info in your terminal and copy the results here. Also, include the precise version number of this library that you are using in the project
React native info output:
 // paste it here
System:
    OS: Windows 10  ...
    CPU: (8) x64 Intel(R)
    Memory: 1.08 GB / 7.80 GB
  Binaries:
    Node: 14.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 23, 26, 27, 28, 29, 30
      Build Tools: 28.0.2, 28.0.3, 29.0.2, 30.0.2, 30.0.3
      System Images: android-25 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
      Android NDK: 22.0.6917172-beta1
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version  <IP_ADDRESS> AI-201.87<IP_ADDRESS>53283
    Visual Studio: 16.7.30330.147 (Visual Studio Community 2019)
  Languages:
    Java: 11.0.8
    Python: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.3 => 0.63.3
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: x.x.x
Steps To Reproduce
Issues without reproduction steps or code are likely to stall.

git clone https://github.com/user/rnsvg-bug-repro
cd rnsvg-bug-repro
yarn
yarn ios
yarn android
...

Describe what you expected to happen:

Short, Self Contained, Correct (Compilable), Example
If you are having a problem with some code and seeking help, preparing a Short, Self Contained, Correct Example (SSCCE) is very useful. But what is an SSCCE?
It is all in the name, really. Take a look at each part. The version prepared for others to see should be:
Short (Small) - Minimise bandwidth for the example, do not bore the audience.
Self Contained - Ensure everything is included, ready to go.
Correct - Copy, paste, (compile,) see is the aim.
Example - Displays the problem we are trying to solve.
http://www.sscce.org/

Hello @eldirb21,
Feel free to open a new issue if you still have that issue.
Thank you.


add ca proto

https://github.com/istio/istio/issues/9035

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

Needs approval from an approver in each of these files:

security/OWNERS

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

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

Test name
Commit
Details
Rerun command

prow/e2e-mixer-no_auth-mcp.sh
f6b2dbf9a9fda07622b4598b9bd876a7f518b462
link
/test e2e-mixer-no_auth-mcp

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


Bringing moment dependency update to prod-beta

Codecov Report

Merging #32 (d5dc142) into prod-beta (ef8b64d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           prod-beta      #32   +/-   ##
==========================================
  Coverage      96.54%   96.54%
==========================================
  Files             29       29
  Lines            318      318
  Branches          71       71
==========================================
  Hits             307      307
  Misses            11       11

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 ef8b64d...d5dc142. Read the comment docs.


Python: Source install yields unexpected keyword argument: 'version_file'

Describe the bug, including details regarding any error messages, version, and platform.
Seems to have started with https://github.com/apache/arrow/pull/41041
$ python setup.py build_ext --inplace -j14
/home/willayd/clones/arrow/python/setup.py:34: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Traceback (most recent call last):
  File "/home/willayd/clones/arrow/python/setup.py", line 372, in <module>
    setup(
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 147, in setup
    _setup_distribution = dist = klass(attrs)
                                 ^^^^^^^^^^^^
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools/dist.py", line 303, in __init__
    _Distribution.__init__(self, dist_attrs)
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
    self.finalize_options()
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools/dist.py", line 654, in finalize_options
    ep(self)
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools_scm/integration.py", line 123, in infer_version
    config = Configuration.from_file(dist_name=dist_name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/willayd/mambaforge/envs/arrow-dev/lib/python3.12/site-packages/setuptools_scm/config.py", line 216, in from_file
    return cls(relative_to=name, **args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Configuration.__init__() got an unexpected keyword argument 'version_file'

Component(s)
Python

Thanks for the report!
Directly calling setup.py is deprecated  and apparently no longer compatible with the recent changes, could you try python -m pip install .? (we probably need to update some docs too)

Ah simple enough - makes sense

And to be clear, you can continue to use calling built_ext inplace directly (I also still do that, until we move away from setuptools, that is fine), you just need to ran the pip install -e . once before that works again.

It's also quite likely that you see that error just because of having a too old setuptools_scm in your environment (that's the error I got in another env where I tried to build inplace with --no-build-isolation)


[NEMO-429] SWPP TEAM7 Code Smell Fix

JIRA: NEMO-429: TEAM7
Major changes:

Fixed code smells (SWPP Code Smell session)

Minor changes to note:

As TA suggested, we excluded make transient or serializable error with //nosonar

@DifferentSC Thank you for your comments. We left a new commit 028eded during classtime with the comments on NOSONAR.

@jinsun1117 We talked about //NOSONAR issue for a while, and decided that it is better to leave those warnings without adding //NOSONAR comments. I understand that dealing with this issue requires huge code refactoring, so I think right now just deleting //NOSONAR comments would work. I'm really sorry for giving you wrong instructions. Could you delete //NOSONAR comments and let me know when you are done?
Thanks!


How do I install the package in Java?

Android Studio just does not wish to see the package. I tryed to add is as zip, folder and a folder that contains only java code

You can use Maven to import this SDK.


Keep track of seed files execute in database

1. Explain what is your use case
After the migrations are complete, I execute all the seed files and populate with initial data inside database.
But to avoid duplication or inserting data again and again, I do something like this
I check for any existing data and based on that insert the initial data.
exports.seed = (knex) => {
  return knex
    .select()
    .from("users")
    .limit(1)
    .then(response => {
      if (!response[0]) {
        return knex("users")
          // insert data
          .insert([])
          .then(() => {
            // success
          })
          .catch(err => {
            // error
          });
      }
    })
    .catch(err => {
      // error
    });
};

2. Explain what kind of feature would support this
Just like there are records of which migration get execute and stored inside database, something similar for seed files would be helpful.
As it states here

Seed files allow you to populate your database with test or seed data independent of your migration files.

Seeds files can also be used for testing or insert independent data, in that case there can be option to store executed seeds files in database or not.
3. Give some API proposal, how the feature should work
Just by stating the tableName in the seeds object can enable to store data about executed files inside database.
seeds: {
	directory: "./seeds",
	tableName: "seeds"
},

This feature has been on the table few times and it is not wanted.
If you need to populate some static data to database you can do it in migrations and if it is just for development use, then you can easily setup a script that runs necessary seeds once after db has been created and migrations has been ran.
If you like, you can also easily write couple of helpers which implements this feature for you and use those helpers in your seed files.


how to disable navtab  like  tab("Some") in .cs file

  [Tab("Offer")]
    [Category("some")]
    [ImageUploadEditor(AllowNonImage = true)]
    [QuarterWidth]
    public string OfferTab { get; set; }

Sorry, but we cannot help with how-to or general troubleshooting issues here; only bug reports and feature requests. You'll want to ask around in the official Slack team or Stack Overflow. See our readme for more details.


[MSSQL] Migration createTable don't use a schema other than "dbo".

What steps will reproduce the problem?
set other than default schema in mssql config.
I found this error trying install rbac to other schema, main rbac tables are created only in schema: dbo. But trigger is created with correct schema (with error because table doesn't exist in schema).
I tryied to force schema in table name 'itemTable' => 'ecbox.auth_item', but then trigger is created with wrong schema CREATE TRIGGER ecbox.trigger_auth_item_child             ON ecbox.ecbox.auth_item
 'class' => 'yii\db\Connection',
    'driverName' => 'sqlsrv',
    'dsn' => 'sqlsrv:Server=sql;Database=DB_DEV',
    'username' => 'sa',
    'schemaMap' => [
        'sqlsrv' => [
            'class' => 'yii\db\mssql\Schema',
            'defaultSchema' => 'ecbox'
        ]
    ],

create migration with new table:
$this->createTable('test', [
            'name' => $this->string(64)->notNull(),
            'data' => $this->binary(),
            'created_at' => $this->integer(),
            'updated_at' => $this->integer(),
            'PRIMARY KEY ([[name]])',
        ]);

What is the expected result?
new table in DB_DEV.ecbox.test
What do you get instead?
but creating DB_DEV.dbo.test
Additional info

Q
A

Yii version
2.0.35

PHP version
7.2.33

Operating system
debian buster/sid

Interesting. That sounds wrong. Do you have an idea on how to fix the issue?

I have prepared a patch for the rbac problem, but it has limitations:
if we set the default schema when defining the connection to the database e.g. "ecbox"
we need to add the schema in the rbac table definition:
itemTable' => 'ecbox.auth_item'.
Index: vendor/yiisoft/yii2/rbac/migrations/m140506_102106_rbac_init.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- vendor/yiisoft/yii2/rbac/migrations/m140506_102106_rbac_init.php	(date<PHONE_NUMBER>004)
+++ vendor/yiisoft/yii2/rbac/migrations/m140506_102106_rbac_init.php	(date<PHONE_NUMBER>004)
@@ -101,7 +101,7 @@

         if ($this->isMSSQL()) {
             $this->execute("CREATE TRIGGER {$schema}.trigger_auth_item_child
-            ON {$schema}.{$authManager->itemTable}
+            ON {$authManager->itemTable}
             INSTEAD OF DELETE, UPDATE
             AS
             DECLARE @old_name VARCHAR (64) = (SELECT name FROM deleted)
@@ -130,8 +130,8 @@
                 END
                 ELSE
                     BEGIN
-                        DELETE FROM {$schema}.{$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
-                        DELETE FROM {$schema}.{$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
+                        DELETE FROM {$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
+                        DELETE FROM {$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
                     END
             END;");
         }

Index: vendor/yiisoft/yii2/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- vendor/yiisoft/yii2/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php	(date<PHONE_NUMBER>377)
+++ vendor/yiisoft/yii2/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php	(date<PHONE_NUMBER>377)
@@ -21,8 +21,8 @@
 class m200409_110543_rbac_update_mssql_trigger extends Migration
 {
     /**
-     * @throws yii\base\InvalidConfigException
      * @return DbManager
+     * @throws yii\base\InvalidConfigException
      */
     protected function getAuthManager()
     {
@@ -41,8 +41,8 @@
             ->from(['fkc' => 'sys.foreign_key_columns'])
             ->innerJoin(['c' => 'sys.columns'], 'fkc.parent_object_id = c.object_id AND fkc.parent_column_id = c.column_id')
             ->innerJoin(['r' => 'sys.columns'], 'fkc.referenced_object_id = r.object_id AND fkc.referenced_column_id = r.column_id')
-            ->andWhere('fkc.parent_object_id=OBJECT_ID(:fkc_parent_object_id)',[':fkc_parent_object_id' => $this->db->schema->getRawTableName($table)])
-            ->andWhere('fkc.referenced_object_id=OBJECT_ID(:fkc_referenced_object_id)',[':fkc_referenced_object_id' => $this->db->schema->getRawTableName($referenceTable)])
+            ->andWhere('fkc.parent_object_id=OBJECT_ID(:fkc_parent_object_id)', [':fkc_parent_object_id' => $this->db->schema->getRawTableName($table)])
+            ->andWhere('fkc.referenced_object_id=OBJECT_ID(:fkc_referenced_object_id)', [':fkc_referenced_object_id' => $this->db->schema->getRawTableName($referenceTable)])
             ->andWhere(['c.name' => $column])
             ->andWhere(['r.name' => $referenceColumn])
             ->scalar($this->db);
@@ -65,24 +65,25 @@
             $authManager = $this->getAuthManager();
             $this->db = $authManager->db;
             $schema = $this->db->getSchema()->defaultSchema;
-            $triggerSuffix = $this->db->schema->getRawTableName($authManager->itemChildTable);
+            $tableParts = explode('.', $this->db->schema->getRawTableName($authManager->itemChildTable));
+            $triggerSuffix = end($tableParts);

             $this->execute("IF (OBJECT_ID(N'{$schema}.trigger_{$triggerSuffix}') IS NOT NULL) DROP TRIGGER {$schema}.trigger_{$triggerSuffix};");
             $this->execute("IF (OBJECT_ID(N'{$schema}.trigger_auth_item_child') IS NOT NULL) DROP TRIGGER {$schema}.trigger_auth_item_child;");

             $this->execute("CREATE TRIGGER {$schema}.trigger_delete_{$triggerSuffix}
-            ON {$schema}.{$authManager->itemTable}
+            ON {$authManager->itemTable}
             INSTEAD OF DELETE
             AS
             BEGIN
-                  DELETE FROM {$schema}.{$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
-                  DELETE FROM {$schema}.{$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
+                  DELETE FROM {$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
+                  DELETE FROM {$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
             END;"
             );

             $foreignKey = $this->findForeignKeyName($authManager->itemChildTable, 'child', $authManager->itemTable, 'name');
             $this->execute("CREATE TRIGGER {$schema}.trigger_update_{$triggerSuffix}
-            ON {$schema}.{$authManager->itemTable}
+            ON {$authManager->itemTable}
             INSTEAD OF UPDATE
             AS
                 DECLARE @old_name NVARCHAR(64) = (SELECT name FROM deleted)
@@ -120,13 +121,14 @@
             $authManager = $this->getAuthManager();
             $this->db = $authManager->db;
             $schema = $this->db->getSchema()->defaultSchema;
-            $triggerSuffix = $this->db->schema->getRawTableName($authManager->itemChildTable);
+            $tableParts = explode('.', $this->db->schema->getRawTableName($authManager->itemChildTable));
+            $triggerSuffix = end($tableParts);

             $this->execute("DROP TRIGGER {$schema}.trigger_update_{$triggerSuffix};");
             $this->execute("DROP TRIGGER {$schema}.trigger_delete_{$triggerSuffix};");

             $this->execute("CREATE TRIGGER {$schema}.trigger_auth_item_child
-            ON {$schema}.{$authManager->itemTable}
+            ON {$authManager->itemTable}
             INSTEAD OF DELETE, UPDATE
             AS
             DECLARE @old_name VARCHAR (64) = (SELECT name FROM deleted)
@@ -155,10 +157,10 @@
                 END
                 ELSE
                     BEGIN
-                        DELETE FROM {$schema}.{$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
-                        DELETE FROM {$schema}.{$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
+                        DELETE FROM {$authManager->itemChildTable} WHERE parent IN (SELECT name FROM deleted) OR child IN (SELECT name FROM deleted);
+                        DELETE FROM {$authManager->itemTable} WHERE name IN (SELECT name FROM deleted);
                     END
             END;");
         }
     }
-}
\ No newline at end of file
+}

Regarding creation table in correct schema, migration operate with raw command create table $name... i thought that will be possible in connection string but no, is done at the database user level. This will probably require a change in the migration process by add similar method resolveTableName like in Schema class or extend SchemaBuilderTrait ?


WIP: Create VSCode Dev Container

Add a new stage to ci-rp to include all local build tools
Add config for vscode Dev Containers extension

Which issue this PR addresses:

Improvements for local dev. Makes it so docs/prepare-your-dev-environment.md is basically unused.
What this PR does / why we need it:

Implements VSCode Dev Containers so that local dev environments are in sync with what CI runs (golang versions, other tools and versions, etc)
Test plan for issue:

If you don't have it already, install VSCode
Set up the Dev Containers Extension

code --install-extension ms-vscode-remote.remote-containers

[optional] If you have some "standard" VSCode Extensions you also want in your Dev Containers, you can set those up in File > Preferences > Settings > Extensions > Dev Containers (e.g. I'm a VIM normie, so I added vscodevim.vim / etc)
In the bottom left corner of the IDE, a symbol like >< now appears, click it, which opens a dropdown menu - and select Reopen in Dev Container
The ci-rp base dev image is built, and then you are launched into the standard dev environment with all required tools installed. You can do things like make generate etc without additional local setup (and all it took was podman and podman-docker!)

Is there any documentation that needs to be updated for this PR?

Yea - will follow up with this before merge (still WIP).
How do you know this will function as expected in production?

N/A - local only

LGTM so far


Pin crypto-bigint to rc.2 until rc.6 is out

Until we can use a fixed version, best pin crypto-bigint to known-good version.

Going to merge this because we need it for the synedrion release, the test will be sorted out later.


Adri refactor and UI

Small refactor (just code)

add icon and shadow

hide some not needed elements in login

change stages list to make buttons more obvious

Partially approved, but this is not so beautiful:


Added UnauthorizedError for Better Reconnect Experience

Added UnauthorizedError and its supporting functions. In vscode-docker, we can determine if an error is  UnauthorizedError, if so, we can show the reconnect command.
Related to https://github.com/microsoft/vscode-docker/pull/4045


move bytes to bytes32, add nonce in Lock()

To read event logs from Witness app, events should contain only static fields. See #35. The contract, spec, and test are modified.
To distinguish events that have same fields, a nonce is added to Lock() event. Internal nonce variable is increased each time lock() is called.

outdated


"Zillow did not return a valid response"

Hi there, I'm new to python and zillow, so bear with me
I'm getting Zillow did not return a valid response for some responses that seem to be valid.
Digging into the code, I'm finding that commenting out self.local_realestate.set_data(source_data['localRealEstate']) from place.py seems to make these responses valid.
I'm thinking it's a bug, but I'm not sure, and I don't know what "localRealEstate" means either.

I got the same response when running the example:
'''
Traceback (most recent call last):
File "/Users/siobhancronin/.venv/py37/lib/python3.7/site-packages/zillow/api.py", line 130, in GetDeepSearchResults
place.set_data(xmltodict_data.get('SearchResults:searchresults', None)['response']['results']['result'])
File "/Users/siobhancronin/.venv/py37/lib/python3.7/site-packages/zillow/place.py", line 197, in set_data
self.zpid = source_data.get('zpid', None)
AttributeError: 'list' object has no attribute 'get'
During handling of the above exception, another exception occurred:
'''

how to solve this problem？ source_data is assumed to be type dict but is type list

someone please message back how to fix this error i'm relatively new to python as well. please give a well detailed response

I have a PR open to help to address this #37.
It seems that GetSearchResults & GetDeepSearchResults will return either a single search result or a list of search results.  When the latter occurs it leads to that assumption error of data types mentioned by @YutingLu900607 and @SioKCronin.

Here's something I noticed was swallowed by the above error message. I cloned your branch locally and stepped through it and I see this when I look at the XML. I'm using the example code in the README.md
Example code for reference and my key is stored in env var ZWSID
import zillow
import os

key = os.environ['ZWSID']
address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"

api = zillow.ValuationApi()
data = api.GetSearchResults(key, address, postal_code)

Swallowed error:
>>> xmltodict_data['SearchResults:searchresults']['message']['text']
'Error: this account is not authorized to execute this API call'

I can replicate this using httpie / curl. Replace $ZWSID with your key or insert it in your env variable. Run the command and you'll see the same authorization failure message.
curl https://www.zillow.com/webservice/GetSearchResults.htm\?zws-id\=$ZWSID\&address\=3400+Pacific+Ave.%2C+Marina+Del+Rey%2C+CA\&citystatezip\=90292

Noticed that I only had a few things checked on this page.
https://www.zillow.com/webservice/EditAPIProfile.htm

[x] Directory API
[ ] Mortgage API
[x] Postings API
[x] Profile Summary API
[ ] Property Details API
[x] Reviews API
[ ] Valuation API

Once I check all of them and hit Submit, it returns a 500 error.

ERROR 500
Our Server is Unavailable Now
Our engineers are working on this issue, please check back in a few minutes. Sorry about the inconvenience!

Perhaps once Zillow fixes this page, I enable all the APIs, and then this python module should work 🙏 .
For now, I may switch to Redfin.

Contacted Zillow and they said they are in the process of shutting down the Zillow API and have moved to an invite only API to this third party.
See: https://bridgedataoutput.com/docs/platform/


regexp: document that n in FindAllString if negative means return all matches

I was just working on a simple login router and while examining regexp.FindAllString, I had to use the common knowledge that usually when you ask for n<0, that means return all the matches. However, this isn't intuitive to everyone. Perhaps let's document it.

Sharing this with my other team members who might not be experienced would definitely lead to confusion as in https://play.golang.org/p/5J4Me7dgNML

The package doc for All as recommended in the comments says that if n >=0 it returns at most n matches, but doesn't say anything for if n<0

cc @rsc and @matloob by golang.org/s/owners


Cassandra and  scylladb support

please consider add  Cassandra and  scylladb CQL support.

hey @calvin2021y,
Thanks for writing. Indeed we plan to support non-SQL databases in the future and I agree that Cassandra/ScyllaDB could be good candidates for this expansion. We don't have a clear schedule for this so I'm keeping this issue open to track that.

@rotemtam Any update on this?


Better examples in the wiki

https://github.com/stephanenicolas/toothpick/wiki/Scopes#scopes-instances-creation-and-injections
Foo class? setQurtz()?
Plz use something more "real" and use it everywhere in the docs.

I am not sure with this one. TP docs go further that what a simple example can do. I prefer small examples focused on a feature of TP. But show me I am wrong, I would be happy to merge a PR for a better wiki.


Issue #33: Hotfix for branch protection ruleset script

Already tested and all repo's have now the ruleset from the script applied.

removed "required_status_checks" action since it wasnt even previously applied to our repo's and it is out of the scope that I am doing with my issue.


fix: Prevent custom Cursor texture from getting corrupted when going back to the MainMenu

Hi,
Issue Link: #1299
By keeping the current scene intact (instead of switching to DummyScene), we prevent texture mixing.

I'm closing as per @AlmasB comment, we need to set the cursor on every Scene.
Since scenes are not always accessible (Especially the private Dummy Scene of the menu) we need to do the following instead ->
@Override
protected void onPreInit() {
    FXGL.getWindowService().getWindow$fxgl().getCurrentFXGLSceneProperty().addListener(((observableValue, previousScene, newScene) -> {
        newScene.setCursor(getAssetLoader().loadTexture("cursor/medium/cursor_default.png").getImage(), new Point2D(5.0, 5.0));
    }));
}

I'll probably write a State handler that will prevent "dumb" assignation of the Cursor when I reach that point in my Dev, but it works most of the time (Not always, there is a glitch between the MainMenu and the first Loading screen where the cursor goes for a millis back to the "OS" default cursor since this Listener is called too late in the thread chain) but it's minor.

I think it is a good point that access to other scenes is convoluted. I'll have a think about a way to provide direct access to scenes.


Center titles

Center the title of the page
Pages with this issue:

upload

Hi tried to center the title and push it up a bit so it is more central. However, it seems that some other elements are connected to the margin of the "upload-title" and "upload" despite having no other elements in that div class. Will do some further digging.


Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful
I'm getting Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application when I click on the citation provided for the document referenced in the answer. Does anyone have a fix? Thanks for the help.

Thanks! We'll be in touch soon.

Can you read the FAQ on "How can we view logs from the App Service app?" and share your logs?
https://github.com/Azure-Samples/azure-search-openai-demo#faq

2023_09_25_lw0sdlwk00015X_default_docker.log
2023-09-25T00:41:35.462151296Z ERROR:app:Exception on request GET /content/A1 International Financial Reporting Standards Foundation _ DART – Deloitte Accounting Research Tool-0.pdf
2023-09-25T00:41:35.462906399Z Traceback (most recent call last):
2023-09-25T00:41:35.462919099Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1650, in handle_request
2023-09-25T00:41:35.462935099Z     return await self.full_dispatch_request(request_context)
2023-09-25T00:41:35.462939399Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1675, in full_dispatch_request
2023-09-25T00:41:35.462943899Z     result = await self.handle_user_exception(error)
2023-09-25T00:41:35.462947899Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1107, in handle_user_exception
2023-09-25T00:41:35.462952099Z     raise error
2023-09-25T00:41:35.462955799Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1673, in full_dispatch_request
2023-09-25T00:41:35.462959899Z     result = await self.dispatch_request(request_context)
2023-09-25T00:41:35.462963799Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1718, in dispatch_request
2023-09-25T00:41:35.462967699Z     return await self.ensure_async(handler)(**request_.view_args)
2023-09-25T00:41:35.462971399Z   File "/tmp/8dbbd574aabb451/app.py", line 64, in content_file
2023-09-25T00:41:35.462975199Z     blob = await blob_container_client.get_blob_client(path).download_blob()
2023-09-25T00:41:35.462979099Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:35.462982999Z     return await func(*args, **kwargs)
2023-09-25T00:41:35.462986599Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 525, in download_blob
2023-09-25T00:41:35.462990599Z     await downloader._setup()  # pylint: disable=protected-access
2023-09-25T00:41:35.462994399Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 288, in _setup
2023-09-25T00:41:35.462998199Z     self._response = await self._initial_request()
2023-09-25T00:41:35.463001899Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 387, in _initial_request
2023-09-25T00:41:35.463005799Z     process_storage_error(error)
2023-09-25T00:41:35.463009599Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_shared/response_handlers.py", line 185, in process_storage_error
2023-09-25T00:41:35.463358200Z     exec("raise error from None")   # pylint: disable=exec-used # nosec
2023-09-25T00:41:35.463393300Z   File "", line 1, in
2023-09-25T00:41:35.463398700Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 341, in _initial_request
2023-09-25T00:41:35.463402500Z     location_mode, response = await self._clients.blob.download(
2023-09-25T00:41:35.463405900Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:35.463409500Z     return await func(*args, **kwargs)
2023-09-25T00:41:35.463412900Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_generated/aio/operations/_blob_operations.py", line 198, in download
2023-09-25T00:41:35.463416500Z     map_error(status_code=response.status_code, response=response, error_map=error_map)
2023-09-25T00:41:35.463419900Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/exceptions.py", line 165, in map_error
2023-09-25T00:41:35.463423400Z     raise error
2023-09-25T00:41:35.463426800Z azure.core.exceptions.ResourceNotFoundError: The specified blob does not exist.
2023-09-25T00:41:35.463430200Z RequestId:8ea40918-501e-0054-2e49-efafa9000000
2023-09-25T00:41:35.463433500Z Time:2023-09-25T00:41:35.4339720Z
2023-09-25T00:41:35.463436800Z ErrorCode:BlobNotFound
2023-09-25T00:41:35.463440100Z Content: BlobNotFoundThe specified blob does not exist.
2023-09-25T00:41:35.463444500Z RequestId:8ea40918-501e-0054-2e49-efafa9000000
2023-09-25T00:41:35.463447800Z Time:2023-09-25T00:41:35.4339720Z
2023-09-25T00:41:40.341365458Z ERROR:app:Exception on request GET /content/A1 International Financial Reporting Standards Foundation _ DART – Deloitte Accounting Research Tool-6.pdf
2023-09-25T00:41:40.341410659Z Traceback (most recent call last):
2023-09-25T00:41:40.341416459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1650, in handle_request
2023-09-25T00:41:40.341420359Z     return await self.full_dispatch_request(request_context)
2023-09-25T00:41:40.341424159Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1675, in full_dispatch_request
2023-09-25T00:41:40.341436259Z     result = await self.handle_user_exception(error)
2023-09-25T00:41:40.341440959Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1107, in handle_user_exception
2023-09-25T00:41:40.341444759Z     raise error
2023-09-25T00:41:40.341448159Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1673, in full_dispatch_request
2023-09-25T00:41:40.341467859Z     result = await self.dispatch_request(request_context)
2023-09-25T00:41:40.341471659Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1718, in dispatch_request
2023-09-25T00:41:40.341475159Z     return await self.ensure_async(handler)(**request_.view_args)
2023-09-25T00:41:40.341478659Z   File "/tmp/8dbbd574aabb451/app.py", line 64, in content_file
2023-09-25T00:41:40.341482859Z     blob = await blob_container_client.get_blob_client(path).download_blob()
2023-09-25T00:41:40.341486459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:40.341490059Z     return await func(*args, **kwargs)
2023-09-25T00:41:40.341493359Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 525, in download_blob
2023-09-25T00:41:40.341497059Z     await downloader._setup()  # pylint: disable=protected-access
2023-09-25T00:41:40.341500459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 288, in _setup
2023-09-25T00:41:40.341503959Z     self._response = await self._initial_request()
2023-09-25T00:41:40.341507459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 387, in _initial_request
2023-09-25T00:41:40.341510959Z     process_storage_error(error)
2023-09-25T00:41:40.341514359Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_shared/response_handlers.py", line 185, in process_storage_error
2023-09-25T00:41:40.341519859Z     exec("raise error from None")   # pylint: disable=exec-used # nosec
2023-09-25T00:41:40.341523459Z   File "", line 1, in
2023-09-25T00:41:40.341527459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 341, in _initial_request
2023-09-25T00:41:40.341531059Z     location_mode, response = await self._clients.blob.download(
2023-09-25T00:41:40.341534459Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:40.341538059Z     return await func(*args, **kwargs)
2023-09-25T00:41:40.341541359Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_generated/aio/operations/blob_operations.py", line 198, in download
2023-09-25T00:41:40.341544959Z     map_error(status_code=response.status_code, response=response, error_map=error_map)
2023-09-25T00:41:40.341548359Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/exceptions.py", line 165, in map_error
2023-09-25T00:41:40.341551859Z     raise error
2023-09-25T00:41:40.341555059Z azure.core.exceptions.ResourceNotFoundError: The specified blob does not exist.
2023-09-25T00:41:40.341558559Z RequestId:29162db0-101e-008e-5749-ef3648000000
2023-09-25T00:41:40.341573759Z Time:2023-09-25T00:41:40.3200124Z
2023-09-25T00:41:40.341577359Z ErrorCode:BlobNotFound
2023-09-25T00:41:40.341580659Z Content: BlobNotFoundThe specified blob does not exist.
2023-09-25T00:41:40.341584959Z RequestId:29162db0-101e-008e-5749-ef3648000000
2023-09-25T00:41:40.341588259Z Time:2023-09-25T00:41:40.3200124Z
2023-09-25T00:41:43.580526192Z ERROR:app:Exception on request GET /content/A1 International Financial Reporting Standards Foundation _ DART – Deloitte Accounting Research Tool-1.pdf
2023-09-25T00:41:43.580568292Z Traceback (most recent call last):
2023-09-25T00:41:43.580574692Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1650, in handle_request
2023-09-25T00:41:43.580588292Z     return await self.full_dispatch_request(request_context)
2023-09-25T00:41:43.580592392Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1675, in full_dispatch_request
2023-09-25T00:41:43.580596892Z     result = await self.handle_user_exception(error)
2023-09-25T00:41:43.580600592Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1107, in handle_user_exception
2023-09-25T00:41:43.580604792Z     raise error
2023-09-25T00:41:43.580608392Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1673, in full_dispatch_request
2023-09-25T00:41:43.580612192Z     result = await self.dispatch_request(request_context)
2023-09-25T00:41:43.580615792Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/quart/app.py", line 1718, in dispatch_request
2023-09-25T00:41:43.580619592Z     return await self.ensure_async(handler)(**request.view_args)
2023-09-25T00:41:43.580623192Z   File "/tmp/8dbbd574aabb451/app.py", line 64, in content_file
2023-09-25T00:41:43.580626892Z     blob = await blob_container_client.get_blob_client(path).download_blob()
2023-09-25T00:41:43.580630592Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:43.580634692Z     return await func(*args, **kwargs)
2023-09-25T00:41:43.580638292Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 525, in download_blob
2023-09-25T00:41:43.580642092Z     await downloader._setup()  # pylint: disable=protected-access
2023-09-25T00:41:43.580645692Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 288, in _setup
2023-09-25T00:41:43.580649492Z     self._response = await self._initial_request()
2023-09-25T00:41:43.580653092Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 387, in _initial_request
2023-09-25T00:41:43.580669292Z     process_storage_error(error)
2023-09-25T00:41:43.580673392Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_shared/response_handlers.py", line 185, in process_storage_error
2023-09-25T00:41:43.580690192Z     exec("raise error from None")   # pylint: disable=exec-used # nosec
2023-09-25T00:41:43.580694192Z   File "", line 1, in
2023-09-25T00:41:43.580698792Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/aio/_download_async.py", line 341, in _initial_request
2023-09-25T00:41:43.580702592Z     location_mode, response = await self._clients.blob.download(
2023-09-25T00:41:43.580706392Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/tracing/decorator_async.py", line 88, in wrapper_use_tracer
2023-09-25T00:41:43.580710092Z     return await func(*args, **kwargs)
2023-09-25T00:41:43.580713792Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/storage/blob/_generated/aio/operations/_blob_operations.py", line 198, in download
2023-09-25T00:41:43.580717592Z     map_error(status_code=response.status_code, response=response, error_map=error_map)
2023-09-25T00:41:43.580721292Z   File "/tmp/8dbbd574aabb451/antenv/lib/python3.10/site-packages/azure/core/exceptions.py", line 165, in map_error
2023-09-25T00:41:43.580725092Z     raise error
2023-09-25T00:41:43.580728692Z azure.core.exceptions.ResourceNotFoundError: The specified blob does not exist.
2023-09-25T00:41:43.580732292Z RequestId:8ea42e72-501e-0054-5449-efafa9000000
2023-09-25T00:41:43.580735992Z Time:2023-09-25T00:41:43.5682465Z
2023-09-25T00:41:43.580739593Z ErrorCode:BlobNotFound
2023-09-25T00:41:43.580743093Z Content: BlobNotFoundThe specified blob does not exist.
2023-09-25T00:41:43.580747693Z RequestId:8ea42e72-501e-0054-5449-efafa9000000
2023-09-25T00:41:43.580751393Z Time:2023-09-25T00:41:43.5682465Z

Okay, it says BlobNotFound. Have you confirmed the Blob exists in your Azure storage container with the filename (with page numbers)? I've seen issues like this where people changed whether blobs had filenames, and I've also seen issues on our end with non-ASCII filenames (which I thought we'd fixed). Please take a look at your storage container and see where the disconnect is.

Thanks for the response. The blob exists in the Azure storage account. The weird thing is after a refresh of the website I’m able to view the same referenced file that was providing an error.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Pamela Fox @.>
Sent: Monday, September 25, 2023 6:14:17 PM
To: Azure-Samples/azure-search-openai-demo @.>
Cc: lummy2020 @.>; Author @.>
Subject: Re: [Azure-Samples/azure-search-openai-demo] Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. (Issue #668)
Okay, it says BlobNotFound. Have you confirmed the Blob exists in your Azure storage container with the filename (with page numbers)? I've seen issues like this where people changed whether blobs had filenames, and I've also seen issues on our end with non-ASCII filenames (which I thought we'd fixed). Please take a look at your storage container and see where the disconnect is.
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/azure-search-openai-demo/issues/668#issuecomment-1734537535, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGFDQHK4YAROTTEPQS4XEDX4H63TANCNFSM6AAAAAA5FDOFKA.
You are receiving this because you authored the thread.Message ID: @.***>

That is strange, I'm not sure why it errored the first time. If it's no longer happening, please close this issue, as we wouldn't be able to make code improvements without more details on the cause.

We experienced a similar issue with "Internal Server Error" responses to opening citations.  In our case, some of the PDF files had a space between the last word of the filename and the ".pdf" extension.  Once we PowerRenamed the documents and rebuilt the index without that space, our issues disappeared.  Weird, right?

Hi @lummy2020 I am Arun Sekhar, the Principal Product Manager for Azure AI Developer Experiences in Microsoft. I would love to chat with you to understand your requirements and get your feedback around our repo. Please email me at achand at microsoft dot com if you are ok to have a brief chat with me. Looking forward to chatting with you!


[db] parse sslmode

The sslmode is hard-coded and if you attempt to use a non-disable value, the service will not start.
If not specified, returns disable just as current functionality expects.

Can you give more context? Why would you like to disable SSL?

I do not want to disable SSL.  I am trying to enable it.
If you pass require (or any argument that isn't disable) to sslmode as part of DATABASE__EXTRA - the service will not start due to the current implementation that hard-codes disable.


Bug in showing recurring donations in public view of user page

My user has 4 recurring donations
3 active and 1 archive
I see below pic in my recurring donation

but in user page (public view) only 2 recurring donations are shown
https://staging.giveth.io/user/0xa1179f64638adb613ddaac32d918eb6beb824104?tab=recurring-donations

I've checked this with cc: @MohammadPCh and he said this should be fixed by backend
cc: @jainkrati @mohammadranjbarz
expected result:
in owner view should be shown all of recurring donations (active, ended, archive, failed, pending)
in **public view ** should be shown all Active recurring donations
@divine-comedian @MoeNick

My user has 4 recurring donations 3 active and 1 archive I see below pic in my recurring donation

but in **user page (public view)** only 2 recurring donations are shown
https://staging.giveth.io/user/0xa1179f64638adb613ddaac32d918eb6beb824104?tab=recurring-donations
I've checked this with cc: @MohammadPCh and he said this should be fixed by backend cc: @jainkrati @mohammadranjbarz
expected result: in owner view should be shown all of recurring donations (active, ended, archive, failed, pending) in **public view ** should be shown all Active recurring donations @divine-comedian @MoeNick

@maryjaf
It seems this problem is fixed now(I mean amount and usd value in recurring donation table) , can you check it especially for new donations
FYI @moenick

t seems this problem is fixed now(I mean amount and usd value in recurring donation table) , can you check it especially for new donations

all of my active donations isn't shown in public view of user page and I don't understand why , please take a look @mohammadranjbarz
owner view:

public view:
I see only  2 donations of GIV token

t seems this problem is fixed now(I mean amount and usd value in recurring donation table) , can you check it especially for new donations

all of my active donations isn't shown in public view of user page and I don't understand why , please take a look @mohammadranjbarz
owner view:
public view: I see only 2 donations of GIV token

Can you give me your wallet address to check in DB?
I guess some of your donations are anonymous so we dont show them in owner view

t seems this problem is fixed now(I mean amount and usd value in recurring donation table) , can you check it especially for new donations

all of my active donations isn't shown in public view of user page and I don't understand why , please take a look @mohammadranjbarz
owner view:
public view: I see only 2 donations of GIV token

Can you give me your wallet address to check in DB? I guess some of your donations are anonymous so we dont show them in owner view

https://staging.giveth.io/user/0xa1179f64638adb613ddaac32d918eb6beb824104

The user has 5 active donations that 3 of them are anonymous so owner would see 5 active recurring donations and in public view we show 2 donations.
There is a rare case that we return 4 donations for this case I checked te curl and saw that frontend send active:false, ended:false in this case I ignore finish status filter and return all active/ended recurring donations for user, so we return ended recurring donations as well so instead of 2 donations we return 4.


chore: remove z-index from component LESQ-446

Description

Removes z-index from component

Issue(s)
Fixes #LESQ-446
How to test

Go to https://deploy-preview-2074--oak-web-application.netlify.thenational.academy
Click on school picker dropdown menu
You should see renders above the checkbox

Screenshots
How it used to look (delete if n/a):

How it should now look:

Checklist

[x] Added or updated tests where appropriate
[x] Manually tested across browsers / devices
[x] Considered impact on accessibility
[x] Design sign-off
[x] Approved by product owner
[x] Does this PR update a package with a breaking change

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


Page not found

link "BRK3117" - SecOp and incident response with Azure ATP -

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

ID: ad74a8f3-7431-410b-9a72-a6422a64a7fa
Version Independent ID: ed3c9821-093e-4015-ec33-943c28d843ce
Content: What is Azure Advanced Threat Protection (Azure ATP)?
Content Source: ATPDocs/what-is-atp.md
Service: azure-advanced-threat-protection
GitHub Login: @shsagir
Microsoft Alias: shsagir

@challengelogic Thanks for your feedback. We've submitted a documentation change based on your suggestion, and the updated article should be live by tomorrow. Please let us know if there's anything more we can do for you. To follow up on this issue, leave us a comment with an @mention.


docs(utils/sessions): clarify session.id

Just clarifying for other people who like me may be confused about how session.id works.

Thanks!


Update About Page

@shiffman, I apologize for the last minute request. Is there someone suitable/available to update the text on the About page (webpage, code)? It would be great to have the acknowledgments updated before the launch. Could you please assist with this?
cc'ing @QuinnHe.

Yes, I'd be glad to help with this! @ziyuan-linn has been managing our "all contributors" list on the repo and it would be great to keep these aligned and linked! @sharellb I know you are brand new to the project but perhaps this is something that you can work on with us as you are getting to know all the parts of the project!
I can start a PR and we can collaborate!


fix(onClickOutside): listen default window events

I see, I run into a similar situation when working with usePallex. But instead of modifying the function to get around with this specific situation, maybe we can provided a mocked window that affect to the both windows.
If you get my points feel free to give a try, or I can do that later ;) (currently outside and don't bring my laptop with me)

we can provided a mocked window that affect to the both windows

If we are exporting that mocked window from @vueuse/core as a user, I would say this is not a good idea.
Instead I would allow sending array of targets on useEventListener, I believe this will bring bunch of new use cases possible.
Also ConfigurableWindow will allow array of Window's. Then users can send custom windows in an array for their specific use cases where our mocked window doesn't allow them to do, such as registering event listener on multiple iframes.
Examples
{ window: window.parent }
{ window: [window.parent, window] }
{ window: [window, iframe.contentWindow] }

If we are importing that mocked window from @vueuse/core as a user

Well, no. I mean only the doc side. No user code will be affected. Since we already made event target configurable, this should already provide freedom to pass a duck window for users to do custom stuff.
About array of targets for useEventListener, in some cases, it does make sense. But most of time you would like to know which one triggered the event. For example, passing two windows to useMouse will just make it broken.

I got it. You right. Most of things I said about arrays can be done with [].forEach(...), but I thought it would be nice providing this functionality in core, but useMouse example makes sense.
I'm curious about how that mocked window should look like. I would like to work on it, but I'm not sure where should I start.

Updated according to #229. Thanks!


Detail popup needs better spacing - v0.2.15 - nit

How did you get that popup to show? We have not added any so I suppose it's some browser feature?

Safari special! mouseDown drag as if you were trying to move the box.
Stumbled (as usual ) up it. :-)


Implement trait PartialEq for Command

To do so it was necessary to implement this trait for the enums and structs Command depends on as well.
This has been done to more effectively check for equality in unit tests. The macro matches!() for example is not able to check if the fields of the enum match as well.
Now the following is possible:
let command = Command::FortressBuild {
    f_type: FortressBuildingType::Academy,
};
let building_type = FortressBuildingType::Academy;

assert_eq!(
    command,
    Command::FortressBuild {
        f_type: building_type
    }
);

The macro matches!() for example is not able to check if the fields of the enum match as well.

I mean for constant values you could destructure the type in the matches!, so:
matches!(command, Command::FortressBuild { f_type: FortressBuildingType::Academy })

would work and for variables you could technically
let building_type = FortressBuildingType::Academy;
matches!(command, Command::FortressBuild { f_type } if f_type == building_type)

but yeah, this is way more complicated than it needs to be. Having partial eq is certainly a lot better.
Thanks for adding that!

Ah, thanks. I hadn't thought about the second example, that's were I was struggling. I'm still new to Rust and constantly learning. Therefore I'm thankful for any advice.
Nevertheless, just being able to use == is still a lot cleaner. :)


"System" proxies should be used by default

Hi,
currently proxies need to be manually added using a client builder. I strongly disagree with https://github.com/seanmonstar/reqwest/issues/30#issuecomment-271714181 that reqwest should not handle the system proxies automatically. I think it should use them by default, and for the rare where proxies should not be used, a builder can be used to disable them.
Think of the thousands of command line utilities that do http requests that were only tested in environnements that work without proxies (my last example being https://github.com/gobanos/cargo-aoc/blob/54e0a80a9bd7dc339c7d2c9dbbf43076d9112e3a/src/app.rs#L66 ). Do they all need to add code to explicitly say they want to use the user's configured proxy ?
As mentionned in https://github.com/seanmonstar/reqwest/issues/30#issuecomment-266336609 the crate env_proxy https://crates.io/crates/env_proxy can be used for basic support.
Ideally, more system methods would be recognized (java has support for the windows registry and for gnome gconf : see https://github.com/openjdk-mirror/jdk7u-jdk/blob/f4d80957e89a19a29bb9f9807d2a28351ed7f7df/src/windows/native/sun/net/spi/DefaultProxySelector.c  and https://github.com/openjdk-mirror/jdk7u-jdk/blob/f4d80957e89a19a29bb9f9807d2a28351ed7f7df/src/solaris/native/sun/net/spi/DefaultProxySelector.c )
Cheers,
Jon

I'm sympathetic to the wish that it is set by default. I didn't have a strong opinion either way, and I can be easily convinced that it should check by default. Or, perhaps just offer an option on the ClientBuilder.

+1 from me also. For example the most popular Python http client library does support system proxy by default. What is the downside of supporting proxy automatically?

Yea, I'm fine with doing this. Here's what I'd recommend we do:

Use something like the env_proxy crate. This can be combined with reqwest::Proxy::custom.
Check if the appropriate environment variables are set at all. This is needed so that we don't create a "custom" proxy if none of the variables are set.
Add a ClientBuilder option to disable checking the environment.

How does that sound?

Yeah that sounds great. From my experience most developers using the higher level library like this one expect things to just work. So that should be default. In rare cases you want to have way to ignore the system proxy, so the override needs to be there.
From user standpoint working in a network where we are restricted to proxy connections, I often find that the tools don't work, because most developers don't develop in such environment. So supporting it by default will make this crate and any projects using it way more useful for users like me.
I'm not sure if you need to check the proxy env variables. Maybe check with for_url the specific URL if that's an option? Proxy might be required for some, but not for some other depending on no_proxy settings. (This is often the case in proxied networks, where internal resources are accessed directly while external might be only accessed via proxy)

for_url is the way to go imo. no_proxy is a must for users behind corporate networks. On that note, is there a way right now to disable proxy for reqwest::Client? Something along the lines of ClientBuilder::new().proxy(None)?

Any plans to flip the switch to enable this by default?


Added gaussian elimination in js

Don't forget to update the line numbers in the .md file according to the changes you made.

Then everything seems to be fine. It was just a reminder, because people often forget that.
I'll take a look at the updated code later and if not, tomorrow afternoon my time (CEST). So far it looks good, though.

Ah ok thanks!

Okie I've made the changes

I just went through the code one last time before I could merge and then I realized that I messed up during my review yesterday. You remember how I told you that the rows variable was unused? Well, I put that comment on the wrong line. The rows variable in gaussJordan() is unused, not the one in backSubstitution(). By removing the variable that I told you to remove yesterday, we broke the code. I'm sorry. You'll have to undo that and remove the rows variable from gaussJordan() instead.
We'll get this PR merged today. I promise. :D

whoops died on my bed too early yesterday haha, fixed the code


Swapnilsingh

I have made a book-scraper which uses -->> http://libgen.is/
To scrape details of books with links, authors, size, etc.
Hope this gets added up in the Hacktoberfest 2021

resolve the issue


How to change the font of highlight code?

I agree and want to create new issue

[] Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
[] Yes, I was on NexT Documentation Site.
[] And yes, I already searched for current issues and this is not help to me.

Expected behavior
I want to use Monaco font in highlight code but culminated in failure.
_config.yml
codes:
  external: true
  family: Monaco
  size: 16

I modify _config.yml but  just changed non-highlight code
highlight code:

non-highlight code

I also modified custom.styl but nothing happened.
custom.styl
$code-font-family =  "Monaco"

Try to enable global custom font:font:
  enable: false

Try to change on Web Safe fonts. Not all fonts may support by highlight plugin.# ---------------------------------------------------------------
# CAUTION! Safari Version 10.1.2 bug: https://github.com/iissnan/hexo-theme-next/issues/1844
# To avoid space between header and sidebar in Pisces / Gemini themes recommended to use Web Safe fonts for `global` (and `logo`):
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
# ---------------------------------------------------------------

Try to create issue in hexo-util plugin. NexT use highlight.js from there.


Use a suitable prelude

Probably alternative prelude only for the interview program (app-like) and not for the core (library-like).


don't show slim header when no slim terms

because it isn't clear what it is for...

Or maybe we should keep it as it provides the link to the slim...thoughts?

Maybe in that case it should say "This gene is not in any biological process GO Slim category"  (and link to the GO slim page in case someone is curious)

That would be good....another way to hook people in to the degree of characterisation....

I've added that text and a link.  Let me know if it's OK.

yep, small refinement...
"This gene product is not currently assigned to any biological process GO Slim category"

"This gene product is not currently assigned to any biological process GO Slim category"

Fixed.  But you'll need to reload.


Failing compilation for 0.12.0-dev.1632+acf9de376

When compiling with zig version 0.12.0-dev.1632+acf9de376 the following error comes up:
error: struct 'child_process.ChildProcess' has no member named 'exec'
        var result = Child.exec(.{

Steps to reproduce:
Compile and install zig version 0.12.0-dev.1632+acf9de376
Clone ziglings and cd into the ziglings directory.
Run zig build
This is a Fedora 39 Linux system.

Unless this is the first test :thinking:

Please use ziglings.org, there you will find the correct version.


WIP feat: add podman module

Implement build, inspect, run and stop for podman containers.
Initial implementation copy most of the docker module.
This implementation has been tested using podman 1.6.4, 1.7.0 and 2.0.6
Not unittest yet, WIP. Want to verify that this might be interesting for you first.

@jfroche Thanks for the contribution!
I think supporting podman makes sense here given its increasing popularity so please continue working on this! Just letting you know that I am monitoring activity on this PR, but have not started reviewing it given the WIP nature. Please feel free to @ mention me in a comment if you reach a point where you would like some feedback!

@jfroche Thanks for the contribution!
I think supporting podman makes sense here given its increasing popularity so please continue working on this! Just letting you know that I am monitoring activity on this PR, but have not started reviewing it given the WIP nature. Please feel free to @ mention me in a comment if you reach a point where you would like some feedback!


Publicly Visible Simulation Results Archive for Benchmark Datasets from Synergy

Feature Request
Is your feature request related to a problem? Please describe.
Researchers perform the same simulations on the benchmark datasets using available models again and again wasting time and resources. Simulations play an important role in deciding the models for their own datasets from the same or different domains as the benchmark datasets.
Describe the solution you'd like
An archive of simulation results (maybe a GitHub repo or a page in the documentation) might be helpful for quickly going through the performance of different models for benchmark datasets. This can help in decision-making and avoid repeated simulations on benchmark datasets by new researchers trying to use ASReview for their own datasets.
Teachability, Documentation, Adoption, Migration Strategy
I think a filterable table is an ideal option to present the simulation results containing the fields for details such as feature extractor, classifier, balancer, and query strategy used The fields for simulation results such as recalls at different levels, WSS, ERF, and ATD along with the dataset information such as the name of the dataset, topic(s), number of records, number and percentage of included records, etc should be included. Some other information can also be included such as who performed the simulation and the random seed, the time required (including information about the hardware used) for the simulation, etc. Adding the recall plots will be a plus.
This can allow researchers to quickly see which models they should try first for their own simulations depending upon their domain and other factors such as the number of records and expected relevant records.

Hi @rohitgarud. We've been playing with this idea for a while, and we would love your input on the project. Let's set up this project as a collaboration!

Great.. how you are planning to develop the platform.. we will discuss further details in the meeting..

We've created a start at https://jteijema.github.io/synergy-simulations-website/, planning on building a pipeline that automatically updates the results. Check it out :)


Lightbar doesn't work

With our 4.14.0-rc6 kernel (and previous), the lightbar doesn't work. Apparently there are some changes in the mfd/cros* drivers (cros_ec_lightbar.c) that are missing. We only need to port them to our linux-smaug kernel from Google's linux-smaug.

I'm trying to fix it on linux-smaug/lightbar-fix branch. I still can't figure out why the request messages are too big.
[    3.134687] iommu: Adding device cros-ec-ctl.0.auto to group 58
[    3.163862] cros-ec-i2c 1-001e: Chrome EC device registered
[    4.469298] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.476084] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.482864] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.489646] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.496427] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.503206] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.509986] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    4.682811] iommu: Adding device cros-ec-accel.0 to group 74
[    4.688726] iommu: Adding device cros-ec-gyro.0 to group 75
[    4.694437] iommu: Adding device cros-ec-mag.0 to group 76
[    4.700049] iommu: Adding device cros-ec-light.0 to group 77
[    4.705829] iommu: Adding device cros-ec-prox.0 to group 78
[    4.711519] iommu: Adding device cros-ec-activity.0 to group 79
[    4.717553] iommu: Adding device cros-ec-ring.0 to group 80
[    4.723215] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.443276] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.493140] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.545142] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.597137] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.649134] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.701134] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.750081] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[    5.801138] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)
[   37.090989] cros-ec-i2c 1-001e: request of size 194 is too big (max: 120)

Relevant files:

https://android.googlesource.com/kernel/tegra/+/android-tegra-dragon-3.18-oreo-r6/drivers/mfd/cros_ec_i2c.c
https://github.com/denysvitali/linux-smaug/blob/lightbar-fix/drivers/platform/chrome/cros_ec_proto.c

Pinging some folks who authored some commits in the chrome platform (Chromium members?), maybe we can get some help over here: @groeck @bleungatchromium @drinkcat

Try to adapt this
https://github.com/vartom/android_kernel_smaug/commit/65ed23383137dfc9b191298a552aab787c57268a

I'll look into it. Thank you 👍


dropdown position not working

I am using foundation 4.1.3 and trying to add drop-down menu position right as using this  data-options="align: right" but not working how can I fix this issue.

This option was added only in Foundation 5. You'd need to update or use the Foundation 5 dropdown plugin to use the option.


BibIndex: refactoring and author parent tokenizer

Includes pull request https://github.com/inveniosoftware/invenio/pull/1840
BibIndex: kwalitee fix

Runs autopep8 on bibindex files

Fixes kwalitee issues

Updates copyright year

BibIndex: refactoring

Refactoring of BibIndex, implements inveniosoftware#1710:
task_run_core in bibindex_engine.py is now easier to
follow, and the decision of which records need to be reindexed to
the tokenizers has been moved to the tokenizers

Fixes bug: the command bibindex -w [index name] -m [date range]
previously was updating the last_updated field of the index

Moves many of the index specific special cases from
bibindex_engine.py to the tokenizers
(e.g. if index_name == "author": # add special tokens)

Moves some utility functions from bibindex_engine.py to
bibindex_engine_utils.py

Solves inveniosoftware#1662
(BibIndex: --reindex should not zero last_updated)

Adds tests for bibindex CLI, for bibindex utils

BibIndex: author parent tokenizer

Adds a generic parent tokenizer, useful for the dataset records:
implements inveniosoftware#1885

Adds tokenizers BibIndexAbstractParentTokenizer,
BibIndexCanonicalAuthorTokenizer,
BibIndexExactParentAuthorTokenizer,
BibIndexParentAuthorTokenizer,
BibIndexParentCanonicalAuthorTokenizer

Adds indexes simpleauthor, canonicalauthor, parentauthor,
parentcanonicalauthor, exactsimpleauthor, exactparentauthor

Adds fields simpleauthor, exactsimpleauthor

Adds upgrade script for the database changes
(uses upgrade_atlantis)

Transforms author and exactauthor indexes from regular to
virtual index

Adds file bibindex_engine_tokenizer_regression_tests.py

Edits the commands run by --load-demo-records in order to
reindex the bibauthorid-dependant indexes after the bibauthorid
task (for example canonicalauthor and parentcanonicalauthor)

Adds tests for tokenizers

Signed-off-by: Federico Poli<EMAIL_ADDRESS>

Deprecated in favour of Elasticsearch.


[asio]Upgrade to v1.14.0

Due to asio upgrade to 1.14.0, some functions are deprecated, this cause some ports build failure.

/azp run

/azp run

Related to https://github.com/microsoft/vcpkg/pull/9986

Duplicated to https://github.com/microsoft/vcpkg/pull/11128


Testing change

note: couldn't seem to update my prototype with git pull - just kept saying it was up to date when clearly it wasn't. this was a test


Bug while viewing less items

Items view is wierd for 2 items

That's because of space-between as the justify param in ItemsDisplay


Updated issue templates from .github.

Signed-off-by: dblock<EMAIL_ADDRESS>Description
Coming from Signed-off-by: dblock<EMAIL_ADDRESS>Description
Coming from https://github.com/opensearch-project/.github/issues/64, updated issue templates for bugs and features.
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
, updated issue templates for bugs and features.
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

CI is failing :(

@qreshi could I please get this merged?


Question: Docker in LXD on ZFS

Hi,
According to the storage backends documentation https://github.com/lxc/lxd/blob/master/doc/storage-backends.md
while using ZFS file system nesting is not supported.
LXD in LXD and docker in LXD are both considered as nesting.
Is there a way to run docker in LXD container which is running on ZFS file system?

IMHO that information is obsolote.
Docker in LXD works just fine....though aufs driver is required.

The information isn't obsolete, you can't nest ZFS itself.
That is, you can't use "zpool" or "zfs" from inside a container. You can nest containers inside a container that's on zfs, but as far as LXD or Docker is concerned, they'll be using a directory or overlay backend for their filesystem, not zfs.


Setting up telefunc + vite-plugin-ssr inside a NestJS project

For an admin UI of one of our projects I'm trying to setup a SSR vite application inside a module of an existing NestJS project.
For that I was trying to make this example of yours work inside my nest environment: https://github.com/brillout/telefunc/tree/main/examples/vite-plugin-ssr
The Idea is to use the same express server as the NestJS application and use the vite middleware on it.
NestJS Server Setup:
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { join } from 'path';
import { AppModule } from './app.module';
import vite from 'vite';
import { config } from 'telefunc';

const adminRoot = join(__dirname, '..', 'src/admin/dashboard');

async function bootstrap() {
  const app = await NestFactory.create<NestExpressApplication>(AppModule, {
    rawBody: true,
  });
  app.useStaticAssets(join(__dirname, '..', 'public'));

  app.useBodyParser('text');

  const viteDevMiddleware = (
    await vite.createServer({
      root: adminRoot,
      server: { middlewareMode: true },
    })
  ).middlewares;
  app.use(viteDevMiddleware);

  config.telefuncUrl = '/admin/dashboard/_telefunc';

  await app.listen(3000);
}
bootstrap();

Instead of configuring the endpoints needed for telefunc and vite-plugin-ssr directly on the express server, I was hoping to add those to a NestJS Controller.
DashboardController:
import { Controller, Get, Post, Req, Res } from '@nestjs/common';
import { DashbaordService } from './dashboard.service';
import { Request, Response } from 'express';

@Controller('admin/dashboard')
export class DashboardController {
  constructor(private dashboardService: DashbaordService) {}

  @Get('/')
  async renderIndex(@Req() req: Request, @Res() res: Response) {
    return this.dashboardService.renderDashboard(req, res);
  }

  @Get('*')
  async renderPages(@Req() req: Request, @Res() res: Response) {
    return this.dashboardService.renderDashboard(req, res);
  }

  @Post('_telefunc')
  async telefunc(@Req() req: Request, @Res() res: Response) {
    return this.dashboardService.handleTelefuncRequest(req, res);
  }
}

DashboardService:
import { Injectable } from '@nestjs/common';
import { Request, Response } from 'express';
import { telefunc } from 'telefunc';
import { renderPage } from 'vite-plugin-ssr/server';

@Injectable()
export class DashbaordService {
  async renderDashboard(req: Request, res: Response) {
    const pageContextInit = {
      urlOriginal: req.originalUrl,
    };

    const pageContext = await renderPage(pageContextInit);
    const { httpResponse } = pageContext;

    if (!httpResponse) return;

    const { body, statusCode, headers, earlyHints } = httpResponse;

    if (res.writeEarlyHints)
      res.writeEarlyHints({
        link: earlyHints.map((e) => e.earlyHintLink),
      });

    headers.forEach(([name, value]) => res.setHeader(name, value));
    res.status(statusCode);

    return res.send(body);
  }

  async handleTelefuncRequest(req: Request, res: Response) {
    const context = {};
    const { originalUrl: url, method, body } = req;

    const httpResponse = await telefunc({ url, method, body, context });

    const { body: responseBody, statusCode, contentType } = httpResponse;

    return res.status(statusCode).type(contentType).send(responseBody);
  }
}

Like this I managed to get the vite-plugin-ssr working (which is awesome already :)).
With telefunc I got the following Error when I was trying to do a request:
[vite] Error when evaluating SSR module [...]/node_modules/telefunc/dist/cjs/node/vite/importGlob/telefuncFilesGlob.js:
|- ReferenceError: exports is not defined
    at eval ([...]/node_modules/telefunc/dist/cjs/node/vite/importGlob/telefuncFilesGlob.js:4:23)
    at instantiateModule (file:///[...]/node_modules/vite/dist/node/chunks/dep-df561101.js:55974:15)
ReferenceError: exports is not defined
    at [...]/node_modules/telefunc/dist/cjs/node/vite/importGlob/telefuncFilesGlob.js:2:23
    at instantiateModule (file:///[...]/node_modules/vite/dist/node/chunks/dep-df561101.js:55974:15)

After this I tried to add the vite-plugin-commonjs to the vite configuration, because I thought it might have something to do with NestJS still using commonjs.
Vite Configuration:
import react from '@vitejs/plugin-react';
import ssr from 'vite-plugin-ssr/plugin';
import { UserConfig } from 'vite';
import { telefunc } from 'telefunc/vite';
import commonjs from 'vite-plugin-commonjs';

const config: UserConfig = {
  base: '/admin/dashbaord/',
  plugins: [
    commonjs({
      filter(id) {
        if (id.includes('node_modules/telefunc')) {
          return true;
        }
      },
    }),
    telefunc(),
    react(),
    ssr({
      baseServer: '/admin/dashboard/',
    }),
  ],
};

export default config;

This seemed to have fixed my original Error from before, but it lead me to this new Error:
Error<EMAIL_ADDRESS>You stumbled upon a bug in Telefunc's source code. Reach out at https://github.com/brillout/telefunc/issues/new or https://discord.com/invite/3DYWwk4xRQ and include this error stack (the error stack is usually enough to fix the problem). A maintainer will fix the bug (usually under 24 hours). Don't hesitate to reach out as it makes Telefunc more robust. Debug info (this is for the Telefunc maintainers; you can ignore this): `{"moduleExports":{"importGlobUnset":true},"viteProvider":"viteDevServer"}`.
    at loadTelefuncFilesWithVite ([...]/node_modules/telefunc/dist/cjs/node/vite/loadTelefuncFilesWithVite.js:12:24)
    at loadTelefuncFiles ([...]/node_modules/telefunc/dist/cjs/node/server/runTelefunc/loadTelefuncFiles.js:34:73)
    at runTelefunc_ ([...]/node_modules/telefunc/dist/cjs/node/server/runTelefunc.js:82:59)
    at runTelefunc ([...]/node_modules/telefunc/dist/cjs/node/server/runTelefunc.js:38:16)
    at telefunc ([...]/node_modules/telefunc/dist/cjs/node/server/telefunc.js:11:26)
    at DashbaordService.handleTelefuncRequest ([...]/src/admin/dashboard.service.ts:35:26)
    at [...]/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at [...]/node_modules/@nestjs/core/router/router-proxy.js:9:17

At this point, I don't know how to proceed with this internal error. Does this still have something to do with commonjs/esm?
I'm a big fan of the concept of telefunc and I would really appreciate your support.
Thanks in advance!

[vite] Error when evaluating SSR module [...]/node_modules/telefunc/dist/cjs/node/vite/importGlob/telefuncFilesGlob.js

That's the culprit: node_modules/telefunc/ shouldn't be processed by Vite. Did you add Telefunc to Vite's ssr.noExternal?

Thanks for the quick reply. Haven't tried that, but it doesn't seem to change anything, I still get the error.
I tried it like with just telefunc and node_modules/telefunc:
  ssr: {
    noExternal: ['node_modules/telefunc'],
  },

Make Sure Vite doesn't process node_modules/telefunc/ (which is Vite's default behavior).
Alternertively, provide a minimal reproduction.
Closing in the meantime.


Docs needed for deployed app with magic links auth

For Nhost Auth.
In nhost/config.yaml on a nhost cli BE setup.

what's client_url and allowed_redirect_urls? Is allowed_redirect_urls expecting a comma separated values (strings)?

Search in source code is disconnected on hasura backend plus vs hasura-auth repos, and there's no website docs for these. When deployed apps need magic link to hit and redirect not on localhost.
Deploying FE on Vercel and BE on nhost.io

Not stale. Docs improvement

Bump


[WIP] building my personal website

👷 Deploy Preview for robslhc processing.

Name
Link

🔨 Latest commit
abc49f2ac6d0de278cd2afe73a7056c038fa3805

🔍 Latest deploy log
https://app.netlify.com/sites/robslhc/deploys/638c8ece6fea380008df7490


install this project on my VPS

I'm trying to run this on VPS
centos 7 ,
i installed Node.js and NPM
After trying to run this error appears
`> npx vite-node src/index.ts
(node:2371) UnhandledPromiseRejectionWarning: Error: Not supported
at Object. (/home/ai/public_html/node_modules/vite-node/vite-node.mjs:2:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at findNodeScript.then.existing (/usr/lib/node_modules/npm/node_modules/libnpx/index.js:268:14)
(node:2371) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or
by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2371) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

Could you give the version of the installed Node.js and NPM?


Yndajas/connect messages resource to frontend

Dev Summary
Mocks: Figma is only letting me click around - there doesn't seem to be any node linking option for me
Attempt at connecting messages backend resouce to the messages components on the frontend. This is a bit of a mess, but here's a summary:

temporarily changed messages resource to have user_id and user_first_name columns (the two user fields used by messages in the frontend) instead of a User relationship, to get around the complications of working with relationships
temporarily turned off JWT auth guards for a few endpoints/routes as I wasn't sure how to work with JWT in the frontend (i.e. saving and accessing the token after log in)
in the MessagesInboxView component, I'm attempting to fetch all messages*, then return an array of objects with the keys matching the Message type (the same as the mock hard-coded data for messages1). I think the main problems I was coming up against were:

typing - Promise<Message[]> not having the same methods as Message[] or other errors depending on how I tried to fix it
getting the async right - I did have a version where the client was loading and I was getting console logs, but they weren't exactly what I expected (even with the logs being within an await block). Sometimes it did log an object with the correct key formatting, but it also logged an object without the correct formatting before that and an object with undefined in everything except id and text after, so I think I wasn't quite getting the syntax right

* this should be by transaction but that's a further complication - I guess in the end we might want an endpoint of /transactions/:id/messages, but the transactions resource isn't in place yet
Test Plan
I drafted a test plan and it works fine on the backend (with the hacked user fields on messages), but I haven't got the frontend working:
in terminal
create two users and note IDs
curl --request POST \
 --url http://localhost:3001/api/users \
 --header 'Content-Type: application/json' \
 --data '{
   "first_name": "Smino",
   "last_name": "Grigio",
   "email"<EMAIL_ADDRESS>   "password": "nohoopti"
   }'

 curl --request POST \
  --url http://localhost:3001/api/users \
  --header 'Content-Type: application/json' \
  --data '{
    "first_name": "Noname",
    "last_name": "Goatlife",
    "email"<EMAIL_ADDRESS>      "password": "bookclubfactorybaby"
    }'

log in and note tokens
curl --request POST \
  --url http://localhost:3001/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
	"email"<EMAIL_ADDRESS>	"password": "nohoopti"
}'

curl --request POST \
  --url http://localhost:3001/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
	"email"<EMAIL_ADDRESS>	"password": "bookclubfactorybaby"
}'

create messages
paste token from last step in each request (if you get an auth error, log in again to get a new token)
curl --request POST \
--url http://localhost:3001/api/messages \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer PASTE_FIRST_USER_TOKEN_HERE' \
--data '{ "text": "hello", "transaction_id": "1", "user_id": "2", "user_first_name": "Smino" }'

curl --request POST \
--url http://localhost:3001/api/messages \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer PASTE_SECOND_USER_TOKEN_HERE' \
--data '{ "text": "hi", "transaction_id": "1", "user_id": "3", "user_first_name": "Noname" }'

curl --request POST \
--url http://localhost:3001/api/messages \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer PASTE_FIRST_USER_TOKEN_HERE' \
--data '{ "text": "I'\''m interested in helping out your NP", "transaction_id": "2", "user_id": "1", "user_first_name": "Smino" }'

in client

load up client
log in to client as first user
go to messages

rest of the template to be completed once relevant

preReqs:
[ ] following command succeeds cd client && npm run checks && cd ../server && npm run checks
repro steps:

localhost:3000
click X button
expected:

Resources

stackoverflow is cool

Mocks: Figma is only letting me click around - there doesn't seem to be any node linking option for me

try clicking around on to a bunch of different objects in the mocks, you should see the node-id url search param change
that's the inner page anchor (or whatever it's called)

Mocks: Figma is only letting me click around - there doesn't seem to be any node linking option for me

try clicking around on to a bunch of different objects in the mocks, you should see the node-id url search param change that's the inner page anchor (or whatever it's called)

@jd2rogers2 ah, the problem was you need to create and sign into a Figma account in order for it to start giving you the node ID in the URL - might be worth adding that clarification to the guidance?
Will take a look another look at the PR itself soon to see if I can get it in a working proof of concept state using all messages


Bug report: Parse Date and Time and Translate Date and Time recipe loading errors

Describe the bug
Both Parse DateTime and Translate DateTime have a default input date and time of DD/MM/YYYY HH:mm:ss.
If the user loads a recipe with a different input (e.g. YYYY-MM-DD HH:mm:ss) this will be ignored and the original DD/MM/YYYY HH:mm:ss will be used instead.
Duplicate of https://github.com/gchq/CyberChef/issues/646 but this issue also includes the Parse DateTime operation which is also affected.
To Reproduce
Load the following recipe:
[{"op":"Parse DateTime","args":["Standard date and time","YYYY-MM-DD HH:mm:ss.SSSSSS","UTC"]}]
The default input will be DD/MM/YYYY HH:mm:ss and not YYYY-MM-DD HH:mm:ss.SSSSSS
Expected behaviour
The input should be the value from the recipe.
Thanks! Please keep up the good work.

Setting the Built-in format to Automatic lets you get around this issue, for example here is a custom output format.

Thanks @mt3571 that's a good workaround; however, I still see it as unintended behaviour and a bug.
Both operations default to Standard Date and Time  and it's unintuitive to have to switch the Built in formats to Automatic to make the saved recipe work. A user is likely to leave the built in format alone and simply adjust their input string directly if they have a bespoke date and time.

I see your point. I think however that if you have selected Standard Date and Time then it isn't unexpected behaviour for the Input format string to be populated with the standard format. Perhaps the solution is to change the default format to Automatic or to rename it to something that makes it more clear about what it does?
The reason this behaviour is occurring is because the Built in format is set to auto-populate the field below it. The issue with changing this behaviour (as in taking the format from the URL) is that it also raises questions/issues about what should happen if the user has entered a custom format but then changes the type.

I guess because Standard Date and Time is the default, I usually just leave it alone and enter the required format. My issue is that you only realise that its "broken" after you save the script and then wonder why its not working. Worse if you are sharing the script with someone who is not savvy with CyberChef and expects it to work.
Perhaps it's better to have a 'Custom' entry that is default with the Input Format String blank. Then leave Standard Date and Time in the drop down for the user to deliberately choose.
This will solve the auto-populate option and make it clearer to the user.
Thanks for explaining the underlying issue!

Yes I agree, I think this would be a good solution. I can (hopefully) submit a fix for this now 😄


Get App Running and Working on Server

:+1:

I've already spent hours trying to get the thing to work, but if fails the tests every time. Part of the problem is that it can't download all of the NLTK dictionaries/support files. If I try to do that manually after the initialization, I get errors. This is either due the fact that the files are located in a different location, or some other issue that I have yet to discover. Since Docker is being used, I am not sure what the issue is because the environments that the app is running in should be identical. I am trying to find out what is different between the VM environments, where the tests run without issue and the server environment where they fail.
For a look at what the errors are here is the gist that I shared with the group last week. Unfortunately there is no help from Google with these errors.
https://gist.github.com/wtneal/1fd30fd1f0f9b89c9414

So the problem has been identified. There is not enough memory to even load all the NLTK support files, hence the EOF errors that it returns when downloading. Even if those are imported manually after the process, the server has trouble processing requests with so little memory. After recreating another VM with 1GB of RAM, the tests all ran, with little trouble.
https://gist.githubusercontent.com/wtneal/49f646edae8f7bb130f3/raw/b71a3a7f1f1e3ff5d42c330edad0630634d634c4/New%20error%20output

Are we talking about the Digital Ocean server?  Did you increase the Swap File like we mentioned last semester? https://www.digitalocean.com/community/tutorials/how-to-configure-virtual-memory-swap-file-on-a-vps

Ok I implemented the swap space. I am pretty sure that it should be persistent since I added an entry into the fstab. If we have issues again let me know an I can look into it.
As of now the server seems to be running the latest version of app just fine. It is passing all of the tests but one, that seems to have an error in the test case.


Fix clap's semver beta.4 disaster

Clap did update their APIs during beta, so cdk-optimizer does not build anymore.
This PR fixes it.
Please merge ASAP, I'm blocked.

How do I make it pass?

As can be seen in this commit (https://github.com/clap-rs/clap/commit/6994be4f1529ba3c6a530473111ba38a7a15b5ce#commitcomment-54999522) which introduce the line #![doc = include_str!("../README.md")].
clap changed its minimum supported rust version (msrv) to 1.54. That's why we see the compilation error with rust toolchain 1.52.1.
Such issue exists in several other repos. We do need a clear msrv strategy for our repos. And when msrv is updated to >=1.54, we will be able to upgrade clap as this PR suggest.

Closing as this was obsoleted by #209.


Added Movie

@brianvoe like discussed in: https://github.com/brianvoe/gofakeit/issues/237
I added 250 movies from the IMDB Database and genres from there.
Please let me know what you think of my approach and whether I should change/improve something :)
Many thanks!

Everything looks good. Can we do top 100? 250 might be a little more than what i would perceive as necessary.
Let me know your thoughts.

@brianvoe I reduced it to 100 :) Let me know if this works for you

PLease let me know if this works for you 😄

Looks good ill get this merged in

v6.22.0 https://www.reddit.com/r/golang/comments/143hrc7/gofakeit_new_functions/


support legacy PagedList for convenience of migration

Fix https://github.com/Azure/azure-libraries-for-java/issues/1102

Still adding test cases.