Error when executing apt-get...

I was attempting the first installation instruction on my Ubuntu 18.04.4 LTS OS. I entered 'sudo apt-get install python3 python3-dev python3-pip g++ make' in the terminal and at the end it reported
"Errors were encountered while processing:
" mysql-server-5.7
"E: Sub-process /usr/bin/dpkg returned an error code (1)"
Any idea what is going on? And what should I try?
--Thank you and regards, Larry

Not sure about that - if you just ran sudo apt-get install python3 python3-dev python3-pip g++ make then why is it returning an error relating to mysql? I'm afraid it might be a job for Dr. Google.

Hello, Thank you for your reply. It looks like I am going to have to get on the Ubuntu Forum and ask the question there and get it figured out. And thanks for your program/software. I have been looking for just such a thing, as has been pointed out, without the bloat of an ERP or MRP full blown program. In the meantime I have the following comments/feedback:
• In the IvenTree Documentation under "Stock Location" the 1st sentence reads "A stock locations represents..." For better grammar this should be either "A stock's location represents..." or "Stock locations represent..."
• Under "Part Details", "Part Definition Fields", Name - "The Part name is a simple (unique) test label". Should "test" be "text"?
• Revision - "An optional revision code denoting the particular version for the part. Used when there are multiple revisions of the same master part object."
If you search on the internet you will find that parts do not have revisions, only the drawing/document that specifies the part has revisions. Per the ANSI/ASME standards a part number is a suffix (used to be called dash) number appended to the drawing/document number. An example is:
XXXXX: Where XXXX is any number of characters consisting of numbers and letters.
XXXXX-YYYY: Where YYYY can be any number of characters consisting of numbers and letters.
In this day and age with what is called "metadata" where the part number includes all the data, the SAP system uses this, you would have to assign another part number for your "revised" part. Remember the form, fit, function (functionality) criteria for the necessity of assigning a different part number for configuration management.
• Units - Units of measure (UoM) usually reverts to EA (each) unless otherwise provisioned. Lengths of wire or cable would be stated in whatever unit of measurement unless the part number is an indication of the length, in which case you would use EA as the unit of measure.
• Assembly - If a part is designated as an Assembly it can be created (or built) from other component parts. As an example, a circuit board assembly is made using multiple electronic components, which are tracked in the system. An Assembly Part has a Bill of Materials (BOM) which lists all the required sub-components.--I'm not sure where I am going with this but would point out that if you have an assembly that is made up of subassemblies, and may or may not have other components/parts, the subassemblies are handled as if they are parts (sub-components) and have their own reference designator (ref des prefix) assigned.
For accounting purposes the IRS and generally accepted accounting principles (GAAP) allows for several different ways of accounting for inventory, besides an average cost. I would like to use the first in first out (FIFO) method. Can this be done with InvenTree? A way to do this would be to have two or more storage locations for the same part number that would have different costs associated with them. Can InvenTree handle this?
--Regards, Larry

https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1
https://itsfoss.com/dpkg-returned-an-error-code-1/
https://stackoverflow.com/questions/30677470/apt-get-error-sub-process-usr-bin-dpkg-returned-an-error-code-1

Thanks for your notes regarding errors in the documentation. As this started life as a personal project the documentation is lagging behind somewhat. If you are willing to help out with documentation that would be awesome.

For accounting purposes the IRS and generally accepted accounting principles (GAAP) allows for several different ways of accounting for inventory, besides an average cost. I would like to use the first in first out (FIFO) method. Can this be done with InvenTree? A way to do this would be to have two or more storage locations for the same part number that would have different costs associated with them. Can InvenTree handle this?

Currently InvenTree is not very strong in the accounting management side of things. More aimed at tracking stock items and then relying on other packages for book-keeping. Perhaps there is some better integration that can be implemented here.

Oliver, Thank you for those three URL links. I was able to run 'sudo apt-get install python3 python3-dev python3-pip g++ make libpango-1.0-0 libpangocairo-1.0-0' without getting any errors. However, when I ran 'make install' I got "make: *** No rule to make target 'install'.  Stop." Apparently that is not the full command. What should the full command be?
For the next step "To configure Inventree inside a virtual environment, cd into the inventree base directory and run the following commands:" Where is the inventree base directory? I tried 'find inventree' and got "No such file or directory". I also ran 'dpkg --listfiles inventree' and got "dpkg-query: package 'inventree' is not installed". What do I do?
--Thank you, Larry

However, when I ran 'make install' I got "make: *** No rule to make target 'install'. Stop." Apparently that is not the full command. What should the full command be?

You need to run make install inside the directory that contains the inventree code (and a file called Makefile)

For the next step "To configure Inventree inside a virtual environment, cd into the inventree base directory and run the following commands:" Where is the inventree base directory?

Wherever you copied the source to (by pulling this repo, for example). See above.

I tried 'find inventree' and got "No such file or directory".

This isn't really relevant here, but FYI: This is not how find works. find's first argument is the root dir where find searches, followed by qualifiers. To find a directory called inventree below your current working directory, for example, it's find . -name inventree. Just find <path> amounts to the same as ls <path>, BTW.

I also ran 'dpkg --listfiles inventree' and got "dpkg-query: package 'inventree' is not installed". What do I do?

AFAIK, there is no inventree Ubuntu package (yet).
That's why you have to install it from source in the first place.
HTH

Christian, I didn't copy the source to anywhere. The system and Firefox simply asks if I want to save it or open it and only gives the file name and possibly an extension. Thanks to you I did find it, the complete path to the end for me is "/home/larry/InvenTree-master/InvenTree/InvenTree/static/script/inventree". The "makefile" file was in the InvenTree-master directory, so that must be the directory that contains the inventree code. I executed 'make install' in that directory and it installed.
I take it that the base directory is the "InvenTree-master" directory. I executed 'apt-get install python3-venv' in this directory and it came back with
"E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
"E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?"
i guess I wasn't in the right directory so I tried ~/InvenTree-master/InvenTree and ~/InvenTree-master/InvenTree/InvenTree and got the same result. Where do I need to go (what directory) to run the three commands?
apt-get install python3-venv
python3 -m venv inventree-env
source inventree-env/bin/activate
--Thank you and regards, Larry

From previous: Thanks for your notes regarding errors in the documentation. As this started life as a personal project the documentation is lagging behind somewhat. If you are willing to help out with documentation that would be awesome.
I would be happy to help with documentation once I get the program up and running and get a feel for it. Right now I am running into some brick walls getting the program set up. I think that more specific instructions would help.
--Regards, Larry

"E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
"E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?"

I think you're not root (didn't run sudo apt...)

Okay, I didn't know that I had to run the command 'sudo apt-get install python3-venv' in the ~/InvenTree-master directory. That worked.
I next ran the command 'sudo python3 -m venv inventree-env' (in the ~/InvenTree-master directory) and that seemed to work as there were no errors. Or should I have run 'python3-m venv inventree-env' (without sudo)?
And lastly I ran 'larry@larry-MS-7693:~/InvenTree-master$ sudo source inventree-env/bin/activate' and got
sudo: source: command not found
So I ran it w/o the sudo 'larry@larry-MS-7693:~/InvenTree-master$ source inventree-env/bin/activate' and it came back with "(inventree-env) larry@larry-MS-7693:~/InvenTree-master$"
--All seems to be good up to this point so I press on with the further instructions.
(inventree-env) larry@larry-MS-7693:~/InvenTree-master$ cd inventree
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ make install
pip3 install -U -r requirements.txt...Downloads a bunch of stuff and then get in yellow text:
Requested cairocffi>=0.9.0 from https://files.pythonhosted.org/packages/f7/99/b3a2c6393563ccbe081ffcceb359ec27a6227792c5169604c1bd8128031a/cairocffi-1.1.0.tar.gz#sha256=f1c0c5878f74ac9ccb5d48b2601fcc75390c881ce476e79f4cfedd288b1b05db (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)), but installing version None [Whatever this yellow text is supposed to mean?]. It then downloads a little bit more until it gets to:
Building wheels for collected packages: cairocffi
Running setup.py bdist_wheel for cairocffi ... error
Complete output from command /home/larry/InvenTree-master/inventree-env/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i4eery65/cairocffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp1p22zvjypip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'

[in red text] Failed building wheel for cairocffi [end red text]
Running setup.py clean for cairocffi
Failed to build cairocffi
Installing collected packages: wheel, sqlparse, pytz, asgiref, Django, pillow, djangorestframework, six, django-dbbackup, django-cors-headers, django-filter, django-js-asset, django-mptt, zipp, importlib-metadata, Markdown, django-markdownx, pyparsing, packaging, webencodings, bleach, django-markdownify, MarkupSafe, jinja2, coreschema, idna, certifi, urllib3, chardet, requests, uritemplate, itypes, coreapi, pygments, defusedxml, odfpy, et-xmlfile, jdcal, openpyxl, xlrd, xlwt, pyyaml, backports.csv, tablib, django-crispy-forms, diff-match-patch, django-import-export, django-cleanup, qrcode, django-qr-code, pyflakes, pycodestyle, mccabe, flake8, coverage, python-coveralls, rapidfuzz, python-utils, progressbar2, django-stdimage, django-tex, setuptools, tinycss2, cssselect2, html5lib, pycparser, cffi, cairocffi, Pyphen, CairoSVG, WeasyPrint, django-weasyprint
[in red text again] Exception:
Traceback (most recent call last):
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/commands/install.py", line 360, in run
prefix=options.prefix_path,
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/utils/init.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/wheel-0.34.2.dist-info' [end red text]
Makefile:25: recipe for target 'install' failed
make: *** [install] Error 2
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$
How do I get over this hurdle? What do I need to do? Are other people having this much trouble?
--Larry
P.S. When I look at this post in "Preview" there are horizontal lines running through some of this text and I don't know why as here in the "Write" tab the text is in the clear. I hope you can read it.

P.S. When I look at this post in "Preview" there are horizontal lines running through some of this text and I don't know why as here in the "Write" tab the text is in the clear. I hope you can read it.

This is really hard to read because some characters are regarded as markup (markdown, actually) by GitHub.
Please enclose console output and such in ``` (before and after).

Let's try this as in the Preview tab there are no horizontal knock out lines.
Okay, I didn't know that I had to run the command '''sudo apt-get install python3-venv''' in the /InvenTree-master directory. That worked.
I next ran the command '''sudo python3 -m venv inventree-env''' (in the /InvenTree-master directory) and that seemed to work as there were no errors. Or should I have run '''python3 -m venv inventree-env''' (without sudo)?
And lastly I ran '''larry@larry-MS-7693:/InvenTree-master$ sudo source inventree-env/bin/activate''' and got
'''sudo: source: command not found'''
So I ran it w/o the sudo '''larry@larry-MS-7693:/InvenTree-master$ source inventree-env/bin/activate''' and it came back with '"(inventree-env) larry@larry-MS-7693:~/InvenTree-master$"'
--All seems to be good up to this point so I press on with the further instructions.
'''(inventree-env) larry@larry-MS-7693:/InvenTree-master$ cd inventree'''
'''(inventree-env) larry@larry-MS-7693:/InvenTree-master/inventree$ make install''' and get
'''pip3 install -U -r requirements.txt'''...Downloads a bunch of stuff and then get in yellow text:
'''Requested cairocffi>=0.9.0 from https://files.pythonhosted.org/packages/f7/99/b3a2c6393563ccbe081ffcceb359ec27a6227792c5169604c1bd8128031a/cairocffi-1.1.0.tar.gz#sha256=f1c0c5878f74ac9ccb5d48b2601fcc75390c881ce476e79f4cfedd288b1b05db (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)), but installing version None''' [Whatever this yellow text is supposed to mean?]. It then downloads a little bit more until it gets to:
'''Building wheels for collected packages: cairocffi'''
'''Running setup.py bdist_wheel for cairocffi ... error'''
'''Complete output from command /home/larry/InvenTree-master/inventree-env/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-i4eery65/cairocffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp1p22zvjypip-wheel- --python-tag cp36:'''
'''usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]'''
'''or: -c --help [cmd1 cmd2 ...]'''
'''or: -c --help-commands'''
'''or: -c cmd --help'''
'''error: invalid command 'bdist_wheel''''
[in red text] '''Failed building wheel for cairocffi''' [end red text]
'''Running setup.py clean for cairocffi'''
'''Failed to build cairocffi'''
'''Installing collected packages: wheel, sqlparse, pytz, asgiref, Django, pillow, djangorestframework, six, django-dbbackup, django-cors-headers, django-filter, django-js-asset, django-mptt, zipp, importlib-metadata, Markdown, django-markdownx, pyparsing, packaging, webencodings, bleach, django-markdownify, MarkupSafe, jinja2, coreschema, idna, certifi, urllib3, chardet, requests, uritemplate, itypes, coreapi, pygments, defusedxml, odfpy, et-xmlfile, jdcal, openpyxl, xlrd, xlwt, pyyaml, backports.csv, tablib, django-crispy-forms, diff-match-patch, django-import-export, django-cleanup, qrcode, django-qr-code, pyflakes, pycodestyle, mccabe, flake8, coverage, python-coveralls, rapidfuzz, python-utils, progressbar2, django-stdimage, django-tex, setuptools, tinycss2, cssselect2, html5lib, pycparser, cffi, cairocffi, Pyphen, CairoSVG, WeasyPrint, django-weasyprint'''
[in red text again] '''Exception:'''
'''Traceback (most recent call last):'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main'''
'''status = self.run(options, args)'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/commands/install.py", line 360, in run'''
'''prefix=options.prefix_path,'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install'''
'''**kwargs'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install'''
'''self.move_wheel_files(self.source_dir, root=root, prefix=prefix)'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files'''
'''isolated=self.isolated,'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files'''
'''clobber(source, lib_dir, True)'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/wheel.py", line 316, in clobber'''
'''ensure_dir(destdir)'''
'''File "/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/pip/utils/init.py", line 83, in ensure_dir'''
'''os.makedirs(path)'''
'''File "/usr/lib/python3.6/os.py", line 220, in makedirs'''
'''mkdir(name, mode)'''
'''PermissionError: [Errno 13] Permission denied: '/home/larry/InvenTree-master/inventree-env/lib/python3.6/site-packages/wheel-0.34.2.dist-info'''' [end red text]
'''Makefile:25: recipe for target 'install' failed'''
'''make: *** [install] Error 2'''
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$
How do I get over this hurdle? What do I need to do? Are other people having this much trouble?
--Larry

Hey Larry
I think this issue is due to where you are running commands using sudo and where you are running commands without. I realize that there was a missed sudo in the documentation - I've fixed that now.
Please try this sequence of commands (from the directory where you have the inventree files, e,g /home/larry/inventree/):
(from https://inventree.github.io/docs/start/install)
using sudo
sudo apt-get install python3 python3-dev python3-pip g++ make libpango-1.0-0 libpangocairo-1.0-0
sudo apt-get install python3-venv

without sudo
python3 -m venv inventree-env
source ./inventree-env/bin/activate

You should then have the prefix (inventree-env) on your command line prompt.
Then you can run the other scripts (without sudo)
make migrate

and then run the test server:
cd InvenTree
python ./manage.py runserver <IP_ADDRESS>:8000

Note - To display code blocks in markdown you should use the backtick ` character not the quote ' character :)

Oliver, Sorry to be a pain but that didn't work fully. When you state that I should be at '/home/larry/inventree/' did you mean I should be at '/home/larry/InvenTree-master/inventree'? That seemed to be where things started to work. I was able to run:
'sudo apt-get install python3 python3-dev python3-pip g++ make libpango-1.0-0 libpangocairo-1.0-0'
'sudo apt-get install python3-venv'
'python3 -m venv inventree-env'
'source ./inventree-env/bin/activate'
At which time I saw "(inventree-env)" at the beginning of my command line prompt. But then it went bad at the next command:
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ make migrate
cd InvenTree && python3 manage.py makemigrations
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    import django  # NOQA
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "manage.py", line 17, in <module>
    "Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Makefile:14: recipe for target 'migrate' failed
make: *** [migrate] Error 1
What do you make of that?
--Larry

Oliver, Sorry to be a pain but that didn't work fully

Not a pain at all, it helps me firm up the documentation when there's issues like this :)
I missed a critical step in my note above.
Before running make migrate, please run make install
Let's see how that goes.

I ran as follows:
larry@larry-MS-7693:~/InvenTree-master/inventree$ source ./inventree-env/bin/activate
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ make install
There was a lot that was downloaded, then it got to the following (which was in yellow text):
  Requested cairocffi>=0.9.0 from https://files.pythonhosted.org/packages/f7/99``/b3a2c6393563ccbe081ffcceb359ec27a6227792c5169604c1bd8128031a/cairocffi-1.1.0.tar.gz#sha256=f1c0c5878f74ac9ccb5d48b2601fcc75390c881ce476e79f4cfedd288b1b05db (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)), but installing version None It loaded 14 more lines of code and then: 'Building wheels for collected packages: cairocffi
  Running setup.py bdist_wheel for cairocffi ... error
 Complete output from command /home/larry/InvenTree-master/inventree/inventree-env/bin/python3-u -c "import setuptools, tokenize;file='/tmp/pip-build-8je_ailt/cairocffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp4ceqfpuhpip-wheel- --python-tag cp36:   usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]      or: -c --help [cmd1 cmd2 ...]      or: -c --help-commands      or: -c cmd --help`
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  Failed building wheel for cairocffi
  Running setup.py clean for cairocffi
Failed to build cairocffi
Installing collected packages: wheel, sqlparse, pytz, asgiref, Django, pillow, djangorestframework, six, django-dbbackup, django-cors-headers, django-filter, django-js-asset, django-mptt, zipp, importlib-metadata, Markdown, django-markdownx, pyparsing, packaging, webencodings, bleach, django-markdownify, uritemplate, itypes, MarkupSafe, jinja2, coreschema, urllib3, idna, certifi, chardet, requests, coreapi, pygments, xlrd, xlwt, defusedxml, odfpy, pyyaml, backports.csv, et-xmlfile, jdcal, openpyxl, tablib, django-crispy-forms, diff-match-patch, django-import-export, django-cleanup, qrcode, django-qr-code, pyflakes, mccabe, pycodestyle, flake8, coverage, python-coveralls, rapidfuzz, python-utils, progressbar2, django-stdimage, django-tex, setuptools, tinycss2, cssselect2, pycparser, cffi, cairocffi, CairoSVG, html5lib, Pyphen, WeasyPrint, django-weasyprint
  Found existing installation: setuptools 39.0.1
    Uninstalling setuptools-39.0.1:
      Successfully uninstalled setuptools-39.0.1
  Running setup.py install for cairocffi ... done
Successfully installed CairoSVG-2.4.2 Django-3.0.5 Markdown-3.2.2 MarkupSafe-1.1.1 Pyphen-0.9.5 WeasyPrint-51 asgiref-3.2.7 backports.csv-1.0.7 bleach-3.1.5 cairocffi-1.1.0 certifi-2<IP_ADDRESS> cffi-1.14.0 chardet-3.0.4 coreapi-2.3.0 coreschema-0.0.4 coverage-4.0.3 cssselect2-0.3.0 defusedxml-0.6.0 diff-match-patch-20181111 django-cleanup-4.0.0 django-cors-headers-3.2.0 django-crispy-forms-1.8.1 django-dbbackup-3.3.0 django-filter-2.2.0 django-import-export-2.0 django-js-asset-1.2.2 django-markdownify-0.8.0 django-markdownx-3.0.1 django-mptt-0.11.0 django-qr-code-1.2.0 django-stdimage-5.1.1 django-tex-1.1.7 django-weasyprint-1.0.1 djangorestframework-3.10.3 et-xmlfile-1.0.1 flake8-3.3.0 html5lib-1.0.1 idna-2.9 importlib-metadata-1.6.0 itypes-1.2.0 jdcal-1.4.1 jinja2-2.11.2 mccabe-0.6.1 odfpy-1.4.1 openpyxl-3.0.3 packaging-20.4 pillow-6.2.2 progressbar2-3.51.3 pycodestyle-2.3.1 pycparser-2.20 pyflakes-1.5.0 pygments-2.2.0 pyparsing-2.4.7 python-coveralls-2.9.1 python-utils-2.4.0 pytz-2020.1 pyyaml-5.3.1 qrcode-6.1 rapidfuzz-0.7.6 requests-2.23.0 setuptools-47.1.1 six-1.15.0 sqlparse-0.3.1 tablib-0.13.0 tinycss2-1.0.2 uritemplate-3.0.1 urllib3-1.25.9 webencodings-0.5.1 wheel-0.34.2 xlrd-1.2.0 xlwt-1.3.0 zipp-3.1.0 cd InvenTree && python3 setup.py Generating SECRET_KEY file - '/home/larry/InvenTree-master/inventree/InvenTree/secret_key.txt' Copying config template to 'config.yaml'`
It looks like I am a Guinea Pig on this. Hope this helps so I can eventually get this program running so I can use it and give you feedback.
--Larry

Can you try running pip install wheel and then make install again?

I executed the following:
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ pip install wheel Requirement already satisfied: wheel in ./inventree-env/lib/python3.6/site-packages
I then executed:
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ make install pip3 install -U -r requirements.txt Requirement already up-to-date: wheel>=0.34.2 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 1)) Requirement already up-to-date: Django==3.0.5 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 2)) Requirement already up-to-date: pillow==6.2.2 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 3)) Requirement already up-to-date: djangorestframework==3.10.3 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 4)) Requirement already up-to-date: django-dbbackup==3.3.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 5)) Requirement already up-to-date: django-cors-headers==3.2.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 6)) Requirement already up-to-date: django_filter==2.2.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 7)) Requirement already up-to-date: django-mptt==0.11.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 8)) Requirement already up-to-date: django-markdownx==3.0.1 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 9)) Requirement already up-to-date: django-markdownify==0.8.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 10)) Requirement already up-to-date: coreapi==2.3.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 11)) Requirement already up-to-date: pygments==2.2.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 12)) Requirement already up-to-date: tablib==0.13.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 13)) Requirement already up-to-date: django-crispy-forms==1.8.1 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 14)) Requirement already up-to-date: django-import-export==2.0.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 15)) Requirement already up-to-date: django-cleanup==4.0.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 16)) Requirement already up-to-date: django-qr-code==1.2.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 17)) Requirement already up-to-date: flake8==3.3.0 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 18)) Requirement already up-to-date: coverage==4.0.3 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 19)) Requirement already up-to-date: python-coveralls==2.9.1 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 20)) Requirement already up-to-date: rapidfuzz==0.7.6 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 21)) Requirement already up-to-date: django-stdimage==5.1.1 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 22)) Requirement already up-to-date: django-tex==1.1.7 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 23)) Requirement already up-to-date: django-weasyprint==1.0.1 in ./inventree-env/lib/python3.6/site-packages (from -r requirements.txt (line 24)) Requirement already up-to-date: pytz in ./inventree-env/lib/python3.6/site-packages (from Django==3.0.5->-r requirements.txt (line 2)) Requirement already up-to-date: asgiref~=3.2 in ./inventree-env/lib/python3.6/site-packages (from Django==3.0.5->-r requirements.txt (line 2)) Requirement already up-to-date: sqlparse>=0.2.2 in ./inventree-env/lib/python3.6/site-packages (from Django==3.0.5->-r requirements.txt (line 2)) Requirement already up-to-date: six in ./inventree-env/lib/python3.6/site-packages (from django-dbbackup==3.3.0->-r requirements.txt (line 5)) Requirement already up-to-date: django-js-asset in ./inventree-env/lib/python3.6/site-packages (from django-mptt==0.11.0->-r requirements.txt (line 8)) Requirement already up-to-date: Markdown in ./inventree-env/lib/python3.6/site-packages (from django-markdownx==3.0.1->-r requirements.txt (line 9)) Requirement already up-to-date: bleach>=2.0 in ./inventree-env/lib/python3.6/site-packages (from django-markdownify==0.8.0->-r requirements.txt (line 10)) Requirement already up-to-date: uritemplate in ./inventree-env/lib/python3.6/site-packages (from coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: itypes in ./inventree-env/lib/python3.6/site-packages (from coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: requests in ./inventree-env/lib/python3.6/site-packages (from coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: coreschema in ./inventree-env/lib/python3.6/site-packages (from coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: pyyaml in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: odfpy in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: backports.csv in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: openpyxl>=2.4.0 in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: xlwt in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: xlrd in ./inventree-env/lib/python3.6/site-packages (from tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: diff-match-patch in ./inventree-env/lib/python3.6/site-packages (from django-import-export==2.0.0->-r requirements.txt (line 15)) Requirement already up-to-date: qrcode in ./inventree-env/lib/python3.6/site-packages (from django-qr-code==1.2.0->-r requirements.txt (line 17)) Requirement already up-to-date: pycodestyle<2.4.0,>=2.0.0 in ./inventree-env/lib/python3.6/site-packages (from flake8==3.3.0->-r requirements.txt (line 18)) Requirement already up-to-date: pyflakes<1.6.0,>=1.5.0 in ./inventree-env/lib/python3.6/site-packages (from flake8==3.3.0->-r requirements.txt (line 18)) Requirement already up-to-date: mccabe<0.7.0,>=0.6.0 in ./inventree-env/lib/python3.6/site-packages (from flake8==3.3.0->-r requirements.txt (line 18)) Requirement already up-to-date: progressbar2>=3.0.0 in ./inventree-env/lib/python3.6/site-packages (from django-stdimage==5.1.1->-r requirements.txt (line 22)) Requirement already up-to-date: jinja2>=2.9 in ./inventree-env/lib/python3.6/site-packages (from django-tex==1.1.7->-r requirements.txt (line 23)) Requirement already up-to-date: WeasyPrint>=43 in ./inventree-env/lib/python3.6/site-packages (from django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: importlib-metadata; python_version < "3.8" in ./inventree-env/lib/python3.6/site-packages (from Markdown->django-markdownx==3.0.1->-r requirements.txt (line 9)) Requirement already up-to-date: packaging in ./inventree-env/lib/python3.6/site-packages (from bleach>=2.0->django-markdownify==0.8.0->-r requirements.txt (line 10)) Requirement already up-to-date: webencodings in ./inventree-env/lib/python3.6/site-packages (from bleach>=2.0->django-markdownify==0.8.0->-r requirements.txt (line 10)) Requirement already up-to-date: chardet<4,>=3.0.2 in ./inventree-env/lib/python3.6/site-packages (from requests->coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: idna<3,>=2.5 in ./inventree-env/lib/python3.6/site-packages (from requests->coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./inventree-env/lib/python3.6/site-packages (from requests->coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: certifi>=2017.4.17 in ./inventree-env/lib/python3.6/site-packages (from requests->coreapi==2.3.0->-r requirements.txt (line 11)) Requirement already up-to-date: defusedxml in ./inventree-env/lib/python3.6/site-packages (from odfpy->tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: et-xmlfile in ./inventree-env/lib/python3.6/site-packages (from openpyxl>=2.4.0->tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: jdcal in ./inventree-env/lib/python3.6/site-packages (from openpyxl>=2.4.0->tablib==0.13.0->-r requirements.txt (line 13)) Requirement already up-to-date: python-utils>=2.3.0 in ./inventree-env/lib/python3.6/site-packages (from progressbar2>=3.0.0->django-stdimage==5.1.1->-r requirements.txt (line 22)) Requirement already up-to-date: MarkupSafe>=0.23 in ./inventree-env/lib/python3.6/site-packages (from jinja2>=2.9->django-tex==1.1.7->-r requirements.txt (line 23)) Requirement already up-to-date: tinycss2>=1.0.0 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: cairocffi>=0.9.0 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: html5lib>=0.999999999 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: Pyphen>=0.9.1 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: setuptools>=39.2.0 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: CairoSVG>=2.4.0 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: cffi>=0.6 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: cssselect2>=0.1 in ./inventree-env/lib/python3.6/site-packages (from WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) Requirement already up-to-date: zipp>=0.5 in ./inventree-env/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->Markdown->django-markdownx==3.0.1->-r requirements.txt (line 9)) Requirement already up-to-date: pyparsing>=2.0.2 in ./inventree-env/lib/python3.6/site-packages (from packaging->bleach>=2.0->django-markdownify==0.8.0->-r requirements.txt (line 10)) Requirement already up-to-date: pycparser in ./inventree-env/lib/python3.6/site-packages (from cffi>=0.6->WeasyPrint>=43->django-weasyprint==1.0.1->-r requirements.txt (line 24)) cd InvenTree && python3 setup.py Key file already exists - '/home/larry/InvenTree-master/inventree/InvenTree/secret_key.txt' Config file already exists (skipping)
That worked so I pressed on running as follows:
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree$ make migrate cd InvenTree && python3 manage.py makemigrations InvenTree running in DEBUG mode MEDIA_ROOT: /home/larry/InvenTree-master/inventree/inventree_media STATIC_ROOT: /home/larry/InvenTree-master/inventree/inventree_static 2020-05-29 14:10:24,806 DEBUG Using selector: EpollSelector InvenTree: Checking Company image thumbnails Could not generate Company thumbnails InvenTree: Checking Part image thumbnails Could not generate Part thumbnails
There was plenty more downloaded that ended with:
System check identified no issues (0 silenced).
I then ran:
(inventree-env) larry@larry-MS-7693:~/InvenTree-master/inventree/InvenTree$ python ./manage.py runserver <IP_ADDRESS>:8000
InvenTree running in DEBUG mode
MEDIA_ROOT: /home/larry/InvenTree-master/inventree/inventree_media
STATIC_ROOT: /home/larry/InvenTree-master/inventree/inventree_static
2020-05-29 14:12:20,868 DEBUG Using selector: EpollSelector
InvenTree: Checking Company image thumbnails
InvenTree: Checking Part image thumbnails
InvenTree running in DEBUG mode
MEDIA_ROOT: /home/larry/InvenTree-master/inventree/inventree_media
STATIC_ROOT: /home/larry/InvenTree-master/inventree/inventree_static
2020-05-29 14:12:22,409 DEBUG Using selector: EpollSelector
InvenTree: Checking Company image thumbnails
InvenTree: Checking Part image thumbnails
Watching for file changes with StatReloader
2020-05-29 14:12:23,710 INFO Watching for file changes with StatReloader
Performing system checks...
Loading barcode plugins
Loading barcode plugins
Discovered 2 barcode plugins:
 - DigikeyBarcodePlugin
 - InvenTreeBarcodePlugin
Loading action plugins
Loading action plugins
Discovered 1 action plugins:
 - SimpleActionPlugin
System check identified no issues (0 silenced).
May 29, 2020 - 14:12:24
Django version 3.0.5, using settings 'InvenTree.settings'
Starting development server at http://<IP_ADDRESS>:8000/
Quit the server with CONTROL-C.
All of that seems to be working now. How do I get to the program? Do I want to use the "testing" version or do I want to do the "production" version? What about the 'make superuser' command? I don't need or want a multiple user installation as I am a sole-proprietor business. As far as the bookkeeping/accounting side of things I use GnuCash for that.
--Thanks for all your help, Larry

All of that seems to be working now

Great!

How do I get to the program?

Go to the address http://<IP_ADDRESS>:8000 in your web browser. Testing version is fine if you are just running it for yourself.

What about the 'make superuser' command? I don't need or want a multiple user installation as I am a sole-proprietor business.

make superuser is required - this will setup a username / password (which you must have). You do not need to add any other user accounts if you do not want to.

Oliver,I did find the proper place where "make superuser" command worked and set myself up with Username,E-mail address, and a password.
Now for the bad news: Entering "http://<IP_ADDRESS>:8000" into my Firefox browser I get:"Unable to connect"
"Firefox can’t establish a connection to the server at <IP_ADDRESS>:8000."As usual need some more help.
--Larry
On Saturday, May 30, 2020, 6:25:46 AM EDT, Oliver<EMAIL_ADDRESS>wrote:
All of that seems to be working now
Great!
How do I get to the program?
Go to the address http://<IP_ADDRESS>:8000 in your web browser. Testing version is fine if you are just running it for yourself.
What about the 'make superuser' command? I don't need or want a multiple user installation as I am a sole-proprietor business.
make superuser is required - this will setup a username / password (which you must have). You do not need to add any other user accounts if you do not want to.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

To connect to the server you need to have the server running in the background - do you still have the command python manage.py runserver <IP_ADDRESS>:8000 running in the terminal, or did you cancel that?

Oliver, Here we go again. Every step seems to be a stumble instead of a nice pace. I was able to open the server getting the line:
Starting development server at http://<IP_ADDRESS>:8000/
Leaving that open in the terminal window I then went to my Firefox web server and entered "http://<IP_ADDRESS>:800" and, finally, got into InvenTree. Problem getting signed in! It asks for Username, for which I enter the Username I set up. It then asks for a password and I enter the password I set up. I click on Login and it goes back asking for Username, with the username I entered already in the box. What's the problem now?
--Larry

Hello Oliver,
On a whim, because the Login was not accepting my Username and password I went to the Superuser setup and entered that information again. This allowed me to Login to InvenTree and I can now get into the program. Apparently not only do you have to have the server running in the background but you have to sign up as a Superuser each time also as that information is not retained/stored. My sign-in procedure then, leading up to be able to login is as follows:

Open the terminal.
Go to the '/home/larry/InvenTree-master/inventree' directory.
Run 'source ./inventree-env/bin/activate'.
Will see "(inventree-env)" at the beginning of the command line.
Run 'make superuser'
Enter a Username, Email address, and password (twice)--[Apparently you can set these up different each time.].
Run 'cd InvenTree'.
Then run 'python manage.py runserver <IP_ADDRESS>:8000'.
With the server running, go to a web server and enter http://<IP_ADDRESS>:8000.
This will take you to the InvenTree Login screen.
Enter the Username and password you set up in "make superuser" and press Login.
You are now into the InvenTree program.
--Larry

Larry,
It is definitely not the case that you have to setup a login each time you run the server.
Please try the following:

Stop the server (press Ctrl+C in the terminal window)
Start the server again immediately

Does the same username / password combination work now?

Yes, that worked. Why the workaround?
--Larry

I believe that you might have inadvertently created two copies of the database (in different directories).
You might see that you have two copies of the file inventree_default_db.sqlite3 (assuming you're setup to use the sqlite3 database) and you've setup the superuser account in both of them.

Oliver,
I ran the following:
larry@larry-MS-7693:~$ locate -c inventree_default_db.sqlite3
1
I then ran:
larry@larry-MS-7693:~$ locate inventree_default_db.sqlite3
/home/larry/InvenTree-master/inventree/inventree_default_db.sqlite3
This indicates that there is only one instance and it is at the '/home/larry/InvenTree-master/inventree' directory.
--Larry

Interesting. I'm really not sure why you had to enter your superuser details twice. I have never seen this issue before. I'll close out this issue for now but if you run into this again please let me know


Syntax Error: Unexpected &

After updating, I found out that doing this:
- class_name = 'ruby'
.hello class=class_name Hello Ruby!

Would throw an Syntax Error: Unexpected &
class_name must not be static, it's a strange case that has to do with attribute merging.
I found that the commit '187084f' to be the culprit. The exact change that causes this is:
+    html :AttributeMerger

I'm not actually sure what this lines does as I haven't dealt with Temple before, but commenting that line fixes the problem for me.
I fixed that in my fork, and also added two tests to verify it.
This is the fork: https://github.com/bartosz-zawada/skim

@bartosz-zawada "html :AttributeMerger" was added earlier and this was made for support this feature https://github.com/judofyr/temple/blob/master/lib/temple/html/attribute_merger.rb
For your case I think it would be better and cleaner to write this:
- class_name = 'ruby'
div class = "hello #{ class_name }" Hello Ruby!

So that case class is defined only in one place.
Btw, I think it would be better to create github organization("skim" for example) though because otherwise  there will many forks and nobody will support this in actual state.

I'm getting the same error using code like this:
button.btn class=('active' if @active)

I suppose it's not a feature :smile:

@amenzhinsky why not just to use this code:
button class = "btn #{ 'active' if @active }"

Using class name after dot and with class directive simultaneously is confusing. I think it would be better to use it either with dot or with class directive only.

@gkopylov I do understand in some cases it's confusing, but in examples like I posted above it would be nice to have. Maybe you're right :+1:

It's unfortunate because
.staticClass class=@dynamicClassName

is valid slim. Why deviate?

I agree with @alubbe
We should maintain compatibility with slim because the main reason people use this gem is that they want to use slim for JS templating.

I agree with @bartosz-zawada that we shouldn't use "html :AttributeMerger". Could you make a pull request with it?

Any progress on merging @pavelkomiagin's PR?


Release 1.8.2?

Just wondering if there is a plan to release 1.8.2 soon? Are there any outstanding issues blocking this?

No, no special reason apart from my rare spare time.
In the next few days I'm going to update dependencies and release a minor version.

Would it be possible to release it depending on libgdx 1.9.8 as per the current snapshot?

Well, yes! But why?
Also, damn.... this is embarrassing! 😞
I think I need your help. Too many time I don't work on gdx-ai and intellij  idea.
I cannot get tests projects working correctly.
Cannot find assets. At runtime I get Error reading file: data/uiskin.json
Any idea how to fix this into the ide.

I'm in the middle of a project for my publisher and I had a lot of problems upgrading to libgdx 1.9.9 and haven't had a chance to see if 1.9.10 fixed the issues 😛
In IntelliJ you can right-click the project and go to Module Settings then mark a folder as a resource directory (I think).

Ok, I found it! Thanks 😃

Version 1.8.2 just released

Thank you :)


Misleading tagline

Right now (30-4-2017) when one gets on training.plone.org below the "Plone trainings" header there is a line saying:
Plone training events are a great way to expand your skills. Plus it's a excellent way to meet the community.
This gives the feeling that if it's you are not in a training event you should not look at the training materials listed below.
Is that the feeling we want to give to random developers that happen to come across it? Like our GSOC students?

@gforcada do you have a suggestion for a other/new/better title ?


Comma Operator breaks Functions that return never

Bug Report
🕗 Version & Regression Information
ts stable & nightly
⏯ Playground Link
Playground Link
💻 Code

function exit(): never {
    throw new Error();
}

function log_then_exit(): never {
    console.log();
    exit();
}

function log_then_exit_comma(): never {
    //                          ^^^^^ A function returning 'never' cannot have a reachable end point
    console.log(), exit();
}

🙁 Actual behavior
Error
🙂 Expected behavior
No Error
Related : #44487

I believe this is expected because (per https://github.com/microsoft/TypeScript/pull/32695):

A function call is analyzed as an assertion call or never-returning call when

the call occurs as a top-level expression statement, and
the call specifies a single identifier or a dotted sequence of identifiers for the function name, and
each identifier in the function name references an entity with an explicit type, and
the function name resolves to a function type with an asserts return type or an explicit never return type annotation.

In your example, the call exit() is part of a comma expression, and thus not a top-level statement.


Question: How does Dokku handle other exposed ports?

If I'm deploying from a Dockerfile and it has something like this:
EXPOSE 8080
EXPOSE 5555

Which port would dokku route to when you go to that app's domain?

First one is the one we route to, though I think you can override this with an env var.


Error: CSRF token missing

Getting the following message when trying to use the Twilio API:
Error: CSRF token missing

Works fine here @alexleventer. I was even able to print the CSRF token out.


Automatic Date option

In the builder for date fields, we should add an option to automatically populate the date field with the current date/time. Currently, if a user has a required date field the date will be in there already but it's kind of useless to have a fixed date. This would allow to use the current time without the user having to set it. We might want to also have a way to set it to be hidden so that a user can't change it.

same as #406

Perhaps related - though maybe a new issue: not have the default date be 1969.  The picker method works well for day and month - but changing the year from 1969 to current is quite the process.  Its easier to just manually type it in, but it feels strange to pick a day and month and then manually type in the year.


opens visual studio code without running all configurations, doesn't work

when I use vite-run dev with following configuration inside viterun.config.ts it starts visual studio, even though I use webstorm
import {defineViteRunConfig} from 'vite-run';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import solidPlugin from "vite-plugin-solid";
import solidSvg from 'vite-plugin-solid-svg'

export default defineViteRunConfig(() => {
    return {
        baseConfig: {  // Using functional form, options contain subpackage information and can dynamically generate configurations
            build: {
                outDir: 'build',
            },
            plugins: [solidPlugin(), viteTsconfigPaths(), solidSvg()],
        },
        targets: {
            'lib': {
                dev: ['watch']
            },
            'demo': {
                dev: ['5173']
            }
        }
    };
});

This doesn't seem like my code

DefineViteRunConfig receives an object instead of a function, and the next version of defineViteRunConfig will support receiving functions
Vite run. js file  is a command line script that supports the tool to run and will not participate in packaging into your program

Version 1.1.0 has been released that supports accepting function configurations. Additionally, I have discovered an issue where you should configure the packages field to specify the packages you want to manage

The latest version 1.2.6 has been released. You can run vite-run --init from the command line to generate a configuration template, which has detailed instructions on how to configure it
In addition, I also discovered an issue where you should configure the packages field to specify the packages to be managed in the screenshot of the issue you raised above

you can refer to it directly viterun.config


Expand hardware support

CycloneDX has support for components of type 'device'. However, device-specific fields have been left out of the core specification as they are better suited as a schema extension.
This ticket describes a proposed schema extension that adds proper fields for describing physical devices.

The proposed namespace is: http://cyclonedx.org/schema/ext/hardware/1.0

Proposed fields include:

EAN/UPC
Global Trade Item Number (GTIN)
Global Location Number (GLN)
Global Individual Asset Identifier (GIAI)
Global Model Number (GMN)
EPC/RFID
Serial Number
SKU
Lot number
Production timestamp
MAC Address

Instead of individual fields, it may be interesting to have a large enum of available hardward field types, and simply have key/value pairs within the hardware schema. Notice the use of OTHER. The idea is to provide as many types as possible knowing that it will be impossible to cover all types. This would allow built-in extensibility of the extension itself.
For example:
<components>
    <component type="device">
        <name>My Refrigerator</name>
        <version>Model A - Revision 2</version>
        <hw:metadata>
            <property key="SERIAL_NUMBER" value="12345"/>
            <property key="UPC" value="72527273070"/>
            <property key="LOT_NUMBER" value="11443"/>
            <property key="PRODUCTION_TIMESTAMP" value="2017-07-16T19:20+01:00"/>
            <property key="OTHER" name="QC_PERSON" value="Joe"/>
        <hw:metadata>
    </component>
</components>

Some nice ideas. I guess if we talk about hardware, we always talk about a closed system (like your fridge) with software - so no screws :)
However, i want to throw some ideas in:

i guess it would be important to take FOTA in consideration.
1.1 this implementation with LOT_NUMBER may help with a 'native' product but my product will change in future

Products change over lifetime.
2.1 Maybe a component changes here or there(revisions)
2.3 Maybe a module in fw will be changed (switch on/off)

I miss the implementation details.
3.1 A vendor can create a device which is in general identical but software configuration differs for customer(aka the ecu for automotive )
3.2 Features can be active or inactive for a specific version (aka buy your autopilot for your tesla)
3.3 A vendor need to adjust it product for the specific country (automotive engine restriction)

In general the threat models / attack vectors / whatsoever could change with a new combination of fw/hw
My ideas are:
Enduser Devices:
Your example with the fridge. The same fridge could have implementations details like network, display, camera.
So maybe only my fridge with the HW Version 2, Software Version 123, and the network connection have the vulnerability x
As mentioned the SN and LN will only help me partial.

My Refrigerator
KGN39AI5 (smth like 'with network, 'with display')

2
123.4

but this example is somehow not relevant for vulnerability management. as enduser i am probably not interested in vulnerability management so i wont have a BoM of my home devices holding all information. In this case the vendor will find a vulnerability and will fix it with an updated. As vendor i am not interested in which person exactly own this devices is just send a over-the-air update.
In B2B this maybe changes. As vendor i have an interest in informing my customers if they have a vulnerable devices (vendor A sells security cams to customer B). On the other hand my customer may have its own vulnerability management.
Supply Chain hardware:
An example from the automotive area. (I am no hw developer but i assume its not totally wrong)
Since the ECU's are quite similar you can use a base ECU for different vendors, different engines and configuration.
So you need an implementation for Vendor A, Model B, Engine C with HSM D, Configuration E (BMW G21 330i Germany).
The combination of the Firmware includes HSM_version, Bootload_Version, Autosar-features and Autosar-configuration.

ECU XYZ

abc
def

I already had some discussions and we never find a proper solution in the end.

FOTA should already be supported through the use of CycloneDX service definitions. The external service itself can be defined, data flow, etc, and of course firmware components can already be specified. If there are specific requirements necessary to capture FOTA-specific concerns, then proposals of those should be included in this ticket.
Any change to a final goods (firmware update, ecu replacement due to recall, etc) results in a new SBOM. This is the approach that CycloneDX takes and its based on the guidance of NTIA. How this will impact FOTA is to be determined.
Runtime behavior (e.g. configuration settings based on what a tesla customer pays for) is outside the scope of what an SBOM is designed to do. In most cases, the software is the same on every device and the manufacture may optionally enable or disable specific features based on subscription, market, or model number. Software that disables features based on these conditions usually already have the software necessary to have those features enabled already installed on the device. Thus, the SBOM describes ALL parts, software, etc, that are delivered in the final goods, regardless of whether features are enabled or not. If this is a use case the industry would like to have, I'd recommend and industry specific extension that accounts for runtime behavior or configuration settings. There has been some interest from others in attempting to capture config and runtime info, but I think it needs to be in a dedicated extension so that it's applicable and available to everyone, not just hardware use cases.
For IoT devices, CycloneDX is compatible with Manufacture Usage Description (MUD) which allows devices to advertise their capabilities and their SBOM. Cisco and others are already experimenting with this capability which will likely find its way into enterprise and eventually consumer devices.

I ran across this paper which led me to the IPC-2570 (PDX package) standard.  I don't know if this standard is still relevant or not, so may take a bit of investigation. The PDX standard seems to contain static facts such as inventory as well as dynamic facts such as approved manufactures lists. If the standard is still relevant, it may be possible to reuse the static parts of it so that the hardware extension can capture the factual data of what is delivered in a given device.

Due to issues with JSON extensibility (or lack thereof), extended support for hardware is being proposed as part of the core spec in v1.4.

Example implementation of proposed solution (in JSON):
{
  "bomFormat": "CycloneDX",
  "specVersion": "1.4",
  "serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
  "version": 1,
  "components": [
    {
      "type": "device",
      "name": "acme-iot-toaster",
      "version": "model 1",
      "deviceInfo": {
        "quantity": 1,
        "function": "Bluetooth, network, storage, microprocessor, connector, etc",
        "location": "Location on the board, related daughterboards",
        "deviceType": "type of component such as SMD, thru-hole, etc",
        "serialNumber": "Unique identifier using serial number if available",
        "sku": "Internal inventory reference if available",
        "lotNumber": "Lot or batch identification for the component",
        "prodTimestamp": "Production timestamp for the component",
        "macAddress": "Hardware address for network interfaces",
        "certifications" : [
          {
            "authority": "FCC",
            "id": "Identifier for radio components",
            "url": "URL to certification details"
          }
        ],
        "eanUpc": "EAN/UPC barcodes are printed on virtually every consumer product in the world.",
        "gtin": "Global Trade Identification Number (GTIN)",
        "gln": "Global Location Number (GLN)",
        "giai": "Global Individual Asset Identifier (GIAI)",
        "gmn": "Global Model Number (GMN)",
        "epcRfid": "EPC/RFID"
      }
    }
  ]
}

There may also be a desire to have physical location of the hardware manufacturer and where the programming takes place. We might be able to use the existing support for OrganizationalEntity here.
We might also be able to move prodTimestamp to the component object itself, as it would allow us to specify when a software or hardware component was created or manufactured.

Is GTIN and EAN/UPC the same thing?
According to https://feedonomics.com/blog/what-is-the-relationship-between-a-gtin-upc-isbn-asin/

GTIN stands for Global Tracking ID Number. This is a family of data structures. The number that is encoded into a barcode is the GTIN. The type of barcode can be UPC or EAN or ISBN
The GTIN-12 is used in the United States and Canada and is encoded into a 12-digit UPC (Universal Product Code) Barcodes.
The GTIN-13 is used outside of the United States and Canada and is encoded as an EAN-13.

Should deviceInfo support gtin in a generic sense, or should it support very specific types?

EAN/UPC are just ways of representing the GTINs as a barcode. I guess you could think of EAN/UPC as a serialization format.
I have some serious reservations about expanding hardware support, as represented above, and incorporating it into the core spec.
A lot of software component information is the same regardless of industry or country. But, IMHO, with hardware there will be a lot of industry/country specific variations.
I think a lot of the above information would be more cleanly handled with an official property name. i.e. cdx:device:gtin-12
Either way, I think we probably need to identify some industries, i.e. telecommunications, networking, medical, energy, defense, consumer and seek the right industry specific feedback (that shouldn't be that hard, I think we could easily come up with a list of people we should reach out to)
Currently, my vote would be that anything that is industry/country specific is handled by properties. And the more universal hardware information, i.e. MAC address, could be incorporated into the core spec (although that's perhaps a bad example, hardware devices can have multiple MAC addresses)

Currently, my vote would be that anything that is industry/country specific is handled by properties. And the more universal hardware information, i.e. MAC address, could be incorporated into the core spec

I like that approach as I believe it aligns to the projects guiding principals AND would provide a way to add more industry-specific capabilities to the spec without requiring an updated version of the spec. Win-Win.

although that's perhaps a bad example, hardware devices can have multiple MAC addresses

As far as I know, a NIC can only have a single MAC address, although multiple NICs could be incorporated into a device and the resulting device could then have multiple MAC addresses. Is there an example where this is not the case?

As far as I know, a NIC can only have a single MAC address, although multiple NICs could be incorporated into a device and the resulting device could then have multiple MAC addresses. Is there an example where this is not the case?

Yeah I think that's correct. I was just thinking of an industrial router I was messing around with the other day that had a MAC address for the LAN, WAN and bluetooth interfaces. It also had dual SIM cards, but I think MAC addresses are dynamically allocated when it comes to 4G LTE.
In the above example, the MAC address seems to be at the assembled IoT Toaster device level. Surely you're not going to purchase an IOT Toaster that doesn't at least support wifi and bluetooth as a minimum :stuck_out_tongue_winking_eye:
But that raises an interesting point. MAC addresses are only relevant for particular classes of hardware components.

But that raises an interesting point. MAC addresses are only relevant for particular classes of hardware components.

Fair point. I think we need some insight into the types of devices that are commonly used in hardware supporting software stacks. I would imagine that MAC addresses for NICs, WiFi, and Bluetooth would be a common type of device. But I'm making an assumption without empirical data.

Currently, my vote would be that anything that is industry/country specific is handled by properties

Agreed. And developing a taxonomy of device specific properties can evolve independently from the spec.

The more people I talk with about MBOM use cases, the more I'm leaning towards building up a formal taxonomy of device information rather than incorporating it into the core spec. We can support hardware via properties as long as we have a formal naming taxonomy. This will allow us to increase support over time and independent of the spec.
Thoughts?

Yeah, I don't have enough hardware experience to have a strong opinion on this. But that's what I was thinking too.


bug: AI Model Launch Failure Due to Special Character Path Issue

Cortex version
Jan v0.5.7 | Cortex v-
Describe the Bug
https://discord.com/channels/1107178041848909847/1300098068980568095
A known issue exists with the llama.cpp engine’s handling of special characters in file paths. This problem impacts the ability to launch AI models.
Steps to Reproduce
1.	Store the wizardcoder-python-13b model file in a directory containing special characters in the path.
2.	Attempt to launch the model using the llama.cpp engine within the Cortex interface.
3.	Observe an error indicating that the model does not exist, despite being present at the specified location.

Screenshots / Logs
message.txt
What is your OS?

[X] MacOS
[X] Windows
[X] Linux

What engine are you running?

[X] cortex.llamacpp (default)
[ ] cortex.tensorrt-llm (Nvidia GPUs)
[ ] cortex.onnx (NPUs, DirectML)

Special character was due to the user's account name (after C:\Users[here])


Update existing pull request

I ran into this so often and always ended up implementing some workaround. But today is the day, I'll add an option like update that can be set to true and false. It will default to false to not break current behavior, but I think in future I'll default it to true instead because from my own experience that is the desired behavior.

I am using this feature, and am able to update the pull request title successfully, but if I pass in new files to be added to the PR, those files are not shown at all. I am not able to update existing files in the pull request either. Is this intentional, or is there another way to do this?
I am just getting started with octokit.js. Apologies if I'm missing something obvious!

Definitely not intended, it should add new files when updating a pull request. Could you please create a new issue, ideally also sharing a minimal code example that reproduces the problem? I'll be happy to help

Thanks a lot! I created a new issue https://github.com/gr2m/octokit-plugin-create-pull-request/issues/107


When installing the Flutter 3.19.3 version IPA on a Mac computer with an M1 Pro chip, the related Flutter pages show a white screen, but the click events can still be responded to normally.

Steps to reproduce
1、In our testing, with our Flutter version 3.19.3, when installing our IPA on a Mac with an M1 Pro chip running macOS 12.3, the pages display a white screen. However, click events are responding correctly, and page navigation functions normally.
2、However, our project, using Flutter version 2.10.x, displays correctly when the IPA is installed on a Mac with an M1 Pro chip running macOS 12.3.
Expected results
Flutter 3.19.3 does not have explicit system restrictions that would prevent it from running on macOS 12.3 with an M1 Pro chip. The occurrence of a white screen while still being able to respond to events could be due to compatibility issues or bugs specific to this version of Flutter when running on this particular configuration. It might be worth investigating potential changes or updates in this version of Flutter that could be causing this behavior.
Actual results
The screen is white, but the events can still be triggered, and page navigation works normally.
Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

https://youtu.be/NEkRAtVTuqU

@Allenzhan1225
In order to properly address the issue, we would need a minimal reproducible code sample (without third party implementation). I have macOS 12.2.1 so I can verify this behavior if you could provide us runnable code sample.
Also, you mentioned 3.19.3, which is not latest. Current is 3.24.5, so I suggest you to upgrade to latest and re-run your scenario to check if it still exist or not. Even if it is considered to be a bug, the fix won't be applied / backtracked to 3.19.

@darshankawar Currently, I have created a demo using Flutter version 3.24.5 with flutter create. When running the demo on a Mac running macOS 14.6 and selecting "My Mac (Designed for iPad)", it displays and responds to clicks normally. Additionally, the IPA generated from the archive installs and functions correctly on this machine. However, when this IPA is installed on another Mac running macOS 12.3, it shows a white screen. This is demonstrated in the video below. https://www.youtube.com/shorts/igSmjaL6m1Q

Here is a minimal reproducible code sample. I created a project using flutter create xxDemo. The code is as follows:
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
    child: Column(

      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        const Text(
          'You have pushed the button this many times:',
        ),
        Text(
          '$_counter',
          style: Theme.of(context).textTheme.headlineMedium,
        ),
      ],
    ),
  ),
  floatingActionButton: FloatingActionButton(
    onPressed: _incrementCounter,
    tooltip: 'Increment',
    child: const Icon(Icons.add),
  ),
);

}
}

@Allenzhan1225 I tried to create an ipa file but it doesn't support on my mac machine config. I also tried to generate from latest mac machine to run on my machine, but it isn't supported. In your case, if you generate the ipa from macOS 12.3 itself using above code (flutter build ipa), does it run or still show white screen ?

There is an adaptation requirement in the project.

See if this helps.


POC: Simple player game.

[ ] Draw a rectangle and move left / right.

[ ] When user reach the middle of screen and move right, be able to move the background.
[ ] Play background music when game start.
[ ] Play a sound effect when a user press space.

PR merged. Mark as fixed.


Feature Request: Include the Randomization Name in the Filename

I like to make a bunch of randomized roms and copy them over to my flash card all at once, it would be nice to be able to distinguish between the different levels of randomization in the filename itself (i.e. Heavy, Insane, etc...).

This is a good idea, and it's implemented in full.  I also included the three checked options in the filename as well.  Please test and, if this is good with you, please close this issue.  Thanks!


update titiler.pgstac

update titiler.pgstac to 0.2.4 to get the retry mechanism
ref https://github.com/stac-utils/titiler-pgstac/pull/90
We may want to use the TITILER_PGSTAC_API_RETRY and TITILER_PGSTAC_API_DELAY environment to configure the retry settings (by default it's 3 retry and 0 second delay)

Thanks!


attribute readonly

lets do this https://github.com/minimalist-components/webcomponents/issues/15

I believe that's ok all the assertions, maybe we can change something later if necessary.

Retested using 'setter readonly using the value' branch and issue resolved. Now it's possible to use  js to.contain to verify the exist child or not.


vararg (...) arg.n isn't recognized by the program

As it says on the tin - arg is recognized as a variable within functions using a vararg, but arg.n isn't recognized, causing an error popup, but it should be. Set to using Lua 5.1

I don't think arg can be used as a vararg by default, see https://www.lua.org/manual/5.1/manual.html#7.1

Ah - looks like the sandbox I'm using has LUA_COMPAT_VARARG set, which enables arg/arg.n support for 5.1. I think I can get around the extension errors on my end then, thank you for checking!


Props lost if mapStateToProps & mapDispatchToProps reference same high level prop

I was hoping to group my redux state and dispatch props under a single property in my component, but my state props are lost when redux completes its merge.
const mapStateToProps = (state,ownProps) => {
    return {
        redux: {
            state: {
                login: loginStateSelector(state)
            }
        }
    };
};

const mapDispatchToProps = (dispatch, ownProps) => {
    return {
        redux: {
            actions: {
                loginUser: (creds) => {
                    dispatch(UserActions.loginUser(creds))
                },
                showModal: (modalName) => {
                    dispatch(UserActions.showModal(modalName))
                }
            }
        }
    };
};

I expected to see this
props: {
    redux: {
        state: {
            login: loginStateSelector(state)
        },
        actions: {
            loginUser: (creds) => {
                dispatch(UserActions.loginUser(creds))
            },
            showModal: (modalName) => {
                dispatch(UserActions.showModal(modalName))
            }
        }
    }
}

But, after redux combines the props, i see this
props: {
    redux: {
        actions: {
            loginUser: (creds) => {
                dispatch(UserActions.loginUser(creds))
            },
            showModal: (modalName) => {
                dispatch(UserActions.showModal(modalName))
            }
        }
    }
}

Is this a bug or working as designed? it seems that redux should be able to combine the two without loss of data.

React Redux can’t guess how to merge two completely different objects. It isn’t obvious: for example, if both were Immutable maps, “merging” them naïvely would break them completely.
We let you specify a third argument called mergeProps to compare the merging behavior. By default it uses Object.assign()-like behavior which is why props are overridden. But you can specify a different behavior:
const mapStateToProps = (state,ownProps) => {
    return {
        login: loginStateSelector(state)
    };
};

const mapDispatchToProps = (dispatch, ownProps) => {
    return {
        loginUser: (creds) => {
            dispatch(UserActions.loginUser(creds))
        },
        showModal: (modalName) => {
            dispatch(UserActions.showModal(modalName))
        }
    };
};

const mergeProps = (stateProps, dispatchProps, ownProps) => {
    return {
        ...ownProps,
        redux: {
            state: stateProps,
            actions: dispatchProps
        }
    };
};

export default connect(
    mapStateToProps,
    mapDispatchToProps,
    mergeProps
);

I am using object spread operator in this example but you can write it with Object.assign() instead (don’t forget to add a polyfill for it in this case):
const mergeProps = (stateProps, dispatchProps, ownProps) => {
    return Object.assign({}, ownProps, {
        redux: {
            state: stateProps,
            actions: dispatchProps
        }
    });
};

I hope this helps!
Note that grouping objects like this will cause unnecessary allocations and will also make performance optimizations harder because we can no longer rely on shallow equality of result props as a way to tell whether they changed. So you will see more renders than with a simple approach without namespacing which we recommend in the docs.

Hello


Different storage sizes documented (2TB and 2 GB)

As shown in attached screenshot, the documentation first mentions Each individual OneDrive site/account being migrated must have no more than 2 TB of storage and later mentions If you attempt to migrate any OneDrive site that exceeds the 2GB quota, the transfer fails.
What is the correct storage size that can be considered for migration per site?

@nikhildere Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/12729
Once the author approves, the changes will be live.
Thanks
Sri

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


mybatis3 problem on result is wrong  when batch insert many times

MyBatis version
3.5.2
java 8
Database vendor and version
mysql5.7.13 default setting
Test case or example project
java code :

public static void main(String[] args) throws Exception {

    String resource = "mybatis.cfg.xml";
    Reader reader = Resources.getResourceAsReader(resource);
    SqlSessionFactory writeSessionFactory = new SqlSessionFactoryBuilder().build(reader,GlobalValue.properties);

    for (int i = 0; i < 5000; i++){
        List<String> list = new ArrayList<>();
        for (int j = 0; j < 20; j++){
            list.add(UUID.randomUUID().toString());
        }
        try (SqlSession session = writeSessionFactory.openSession(ExecutorType.BATCH)){
            MainMapper mapper = session.getMapper(MainMapper.class);
            for (String str : list){
                mapper.insertBatchTestData1(str, "test1");
            }
            session.commit();
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }
    Thread.sleep(1000 * 5);
}

xml file
<insert id="insertBatchTestData1">
    INSERT INTO test1 (gg) VALUES (#{d})
</insert>

MainMapper is just a simple class file.

Steps to reproduce
when set i 500  in "for", the inserted data count in database is 10,000 at final, which i expected.

but when set i  5000 in "for", the inserted data count in database is less than 100,000....

Is that a bug ?

Any stack trace?
And please share an executable project on your GitHub repo.
There are some inconsistencies in your snippet.

Thanks for the project, @huigesv123 .
Your app inserted 100,000 rows on my environment.
How did you count the rows?
To get the accurate number, you need to execute select count(*) from test1 (see this Q&A).

I use "Sequel Pro" to view the count of result is not right.
But I execute "mysql select" and the return is 100,000.It is my problem.
Sorry for wasting of your time~~
I will continue to check it and close the comment if I  can not find another problem in two days.


Log endpoint in client commands in debug level

When there is a network issue, http client throws exceptions with message such as Connection refused. But the message doesn't include endpoint especially if the new user is unsure that configuration is correctly done or not.
This change add logging of endpoint so that the user can be confident that at least endpoint configuration is correct.

👍


Console: Filter organizations by id

Preflight Checklist

[x] I could not find a solution in the existing issues, docs, nor discussions
[ ] I have joined the ZITADEL chat

Describe your problem
/ui/console/instance?id=organizations
Can't filter for Org by id.
Describe your ideal solution
/ui/console/instance?id=organizations
As Manager, I want to filter organizations by their ID, so I can search for an Org by id.
Version
No response
Environment
ZITADEL Cloud
Additional Context
Request via support channel

I will add the issue to our product backlog  to collect feedback.
If there is a significant demand from customers/community, we will carefully consider implementing the feature.


Bulk and Single cell tests were failing because of error: java.nio.file.NoSuchFileException: null/gxa/species-properties.json

When I run gradle build or ./gradlew build on Bulk and Single Cell project
Test cases are failing because of the path error of  species-properties.json.
In the Single Cell project, 60 tests were failed with the error: java.nio.file.NoSuchFileException: null/gxa/species-properties.json
In the bulk project, 45 tests were failed with the error: java.nio.file.NoSuchFileException: null/gxa/species-properties.json

This issue is common in both projects in the develop branches.
Looks like something got changed from the previous while upgrading to a new workflow.
I and Pablo had a meeting on 16th of June to debug on the docker-compose side to see whether we have species-properties.json on the right path in the docker volume or not?
is there any issue with the docker volumes?
Then, we came to knew that after debug, there is no issue with the docker-compose setup. Container loading species-properites.json file on the right location.
I did debug in the codebase to trace out the exception: java.nio.file.NoSuchFileException: null/gxa/species-properties.json
Here is a class where it is throwing an exception:  AtlasResource is an underlying abstract class where we defined the path to load
the species-properites.json file. This path returning null, so further process failing...

Error trace of one test case:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'baselineExperimentFactory' defined in URL [jar:file:/Users/ukumbham/atlas/atlas-web-bulk/atlas-web-core/build/libs/atlas-web-core-1.0.0.jar!/uk/ac/ebi/atlas/trader/factory/BaselineExperimentFactory.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'speciesFactory' defined in URL [jar:file:/Users/ukumbham/atlas/atlas-web-bulk/atlas-web-core/build/libs/atlas-web-core-1.0.0.jar!/uk/ac/ebi/atlas/species/SpeciesFactory.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'speciesPropertiesTrader': Invocation of init method failed; nested exception is java.io.UncheckedIOException: java.nio.file.NoSuchFileException: null/gxa/species-properties.json
Caused by: java.nio.file.NoSuchFileException: null/gxa/species-properties.json
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:370)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:421)
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
	at java.base/java.nio.file.Files.newInputStream(Files.java:155)
	at java.base/java.nio.file.Files.newBufferedReader(Files.java:2838)
	at uk.ac.ebi.atlas.model.resource.JsonFile$ReadOnly.get(JsonFile.java:26)
	... 225 more

Error Stack trace:.pdf

This issue got resolved by compiling java classes following way:
./gradlew \
  -PdataFilesLocation=/Users/ukumbham/ATLAS3.TEST/integration-test-data/gxa/filesystem \
  -PexperimentFilesLocation=/Users/ukumbham/ATLAS3.TEST/integration-test-data/gxa/filesystem/gxa \
  -PzkHost=gxa-zk-1 \
  -PsolrHost=gxa-solrcloud-1 \
  :app:clean :app:testClasse

So, closing this issue.


IDVA3-1555 refactor confirm company

The router code has been moved to the newSubmissionHandler so no longer needed in two places

Removed the company number from the session and added the company number as a query parameter where necessary instead.

Updated relevant tests

CI: No security warnings found


fix: avoid creating swapfiles for preview buffers

Sometimes Neovim fails to delete swapfiles which can result in repeated error messages upon re-opening the editor
Thanks for maintaining this really nice plugin!

LGTM! Thank you!

So this is what was happening! :) Thanks @nanotee!


bin: add add-version to make files.json adds easier

Adds bin/add-version to do the work of finding a release's sha256 and adding to files.json.
Uses jq -S so adds a commit which applies that to files.json to start.

❤


add volume recovery

Contributed by Expontech

If the pod fails to deploy due to insufficient resources, csi node will delete resources in pod and deploy it again. This will conflict with errorHandler in manager.

@ExponTec hi, would you fix Travis CI please?

Hi @ExponTec ,
Would you add some unit test?


a few style suggestions before registration

The package name could be changed to SystemBenchmarks (i.e. plural), following julia guidelines
avoid camelcase naming,  e.g. saveBenchmark could be renamed to savebenchmark or save_benchmark

Thanks. Good point on the camelCase. I’ll fix those errors.
For the package name, yeah, I think you’re right but I think as it is is also ok. I’m erring I’m leaving it as-is, but I’m open to persuasion 🙂

camelCase now fixed


Log delta and hasChanged for merge() to make merges look less crazy for objects with many keys.

Details
It was reported here that a huge number of keys are getting set to personalDetailsList here.
After investigating we saw that it does not seem to be related to rendering or a clear problem. But the logs are alarming and not very useful.
Automated Tests
Just a log so 👎
Manual Tests

Run the app
Try visiting a chat you already seen before
Grep for personalDetailsList and see that we don't log the huge personal details list.

Author Checklist

[x] I linked the correct issue in the ### Related Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

Sorta looks like this failed to get published: https://github.com/Expensify/react-native-onyx/actions/runs/8441598428
When I try to install the package in App it has no dist folder 🥲


Angular 13 support added

Please do a tag for version 13

are you going to npm publish this?

Npm is asking me to pay for monthly license. Do you have any npm account to publish to?
From: Francesco M @.>
Sent: 27 January 2023 19:36
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
are you going to npm publish this?
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1406552073, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOLCKZO6FFMHUT7PLI3WUPI3FANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

@.***
From: Praveen Kumar Sharma
Sent: 27 January 2023 19:37
To: 'clarivate/angular-image-viewer' @.>; clarivate/angular-image-viewer @.>
Cc: Author @.***>
Subject: RE: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
Npm is asking me to pay for monthly license. Do you have any npm account to publish to?
From: Francesco M<EMAIL_ADDRESS>Sent: 27 January 2023 19:36
To: clarivate/angular-image-viewer<EMAIL_ADDRESS>Cc: Praveen Kumar Sharma<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
are you going to npm publish this?
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1406552073, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOLCKZO6FFMHUT7PLI3WUPI3FANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

you have to pay only for private packages, public access is free
npm publish --access public

This now worked! Thanks.
From: Francesco M @.>
Sent: 27 January 2023 19:54
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
you have to pay only for private packages, public access is free
npm publish --access public
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1406574697, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOPZTE764SXAIH4XEJTWUPLBHANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

cannot see published version, btw if you are going to bettere maintain this you should consider open issue on your fork end fix the demo/links

@.***/angular-image-viewer
From: Francesco M @.>
Sent: 27 January 2023 20:33
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
cannot see published version, btw if you are going to bettere maintain this you should consider open issue on your fork end fix the demo/links
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1406624810, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOPOZG2LF2OO44UF6A3WUPPRBANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

13 version seems failing during build
Could not find the '@angular-devkit/build-ng-packagr:build' builder's node package.

I have fixed the issue. Now the demo url is also working.
@.***/angular-image-viewer/v/3.0.1
From: Francesco M @.>
Sent: 27 January 2023 22:43
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
13 version seems failing during build
Could not find the @.***/build-ng-packagr:build' builder's node package.
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1406802922, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IONRDFYH2JQ5JNWHPYTWUP63JANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

nice! have you published the angular13 package also to npm?
maybe the circleci should be "converted" to github actions

Yes. It is both in github and npm registry.
@.***/angular-image-viewer/v/3.0.1
https://github.com/pravinsharma/angular-image-viewer
Demo URL: https://pravinsharma.github.io/angular-image-viewer/
From: Francesco M @.>
Sent: 30 January 2023 19:14
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
nice! have you published the angular13 package also to npm?
maybe the circleci should be "converted" to github actions
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1408655447, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOIUCEL7ABHL5MHAWBLWU7ATHANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

https://www.npmjs.com/package/@prvinsharma/angular-image-viewer
is this? seems there is a missin 'a' in the name prvinsharma vs pravinsharma

That is the complication which occurred. I have lost that account and had to recreate a new one for both npm and github.
From: Francesco M @.>
Sent: 30 January 2023 19:26
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
@.***/angular-image-viewer
is this? seems there is a missin 'a' in the name prvinsharma vs pravinsharma
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1408669899, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOI55JQDOMDXHUJW23LWU7B57ANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

maybe gh-pages is a dev dep and not a prod one

done
From: Francesco M @.>
Sent: 30 January 2023 19:38
To: clarivate/angular-image-viewer @.>
Cc: Praveen Kumar Sharma @.>; Author @.>
Subject: Re: [clarivate/angular-image-viewer] Angular 13 support added (PR #31)
maybe gh-pageshttps://www.npmjs.com/package/gh-pages is a dev dep and not a prod one
—
Reply to this email directly, view it on GitHubhttps://github.com/clarivate/angular-image-viewer/pull/31#issuecomment-1408688879, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY7IOJICN52P4NQLACC3BTWU7DNXANCNFSM6AAAAAATZADBRM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


Helm agent secrets

moved from #381, using origin repo instead of fork so @frank-bee can help!
Move acapy seed to k8s secret (Created and annotated to be kept on uninstall)
add release.name to ingress path for easier multiple deployments.

improving that to generate with suffix, or overridden with full yaml block

duplicate of #390