Fix/34820: Hide join button once leaving

Details

This PR will fix issue: Thread - "Join" button appears when the user Leave the thread
We will hide the join button and header as well if the report.reportID is undefined.

Fixed Issues

$ https://github.com/Expensify/App/issues/34820
PROPOSAL: https://github.com/Expensify/App/issues/34820#issuecomment-1902722229
Tests

Navigate to a conversation
Start a thread and send some messages
Click on the three dot menu and hit "Leave thread"
User should navigate back to the parent conversation with no visual issues

[x] Verify that no errors appear in the JS console

Offline tests

Navigate to a conversation
Start a thread and send some messages
Click on the three dot menu and hit "Leave thread"
User should navigate back to the parent conversation with no visual issues

QA Steps

Navigate to a conversation
Start a thread and send some messages
Click on the three dot menu and hit "Leave thread"
User should navigate back to the parent conversation with no visual issues

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed 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 added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[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: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb 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 any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[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 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 a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[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 PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[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.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

Screencast from 26-01-2024 05:04:17.webm

iOS: Native

iOS: mWeb Safari

Screencast from 26-01-2024 05:18:23.webm

MacOS: Chrome / Safari

Screencast from 26-01-2024 05:08:53.webm

MacOS: Desktop

The typescript errors are related to unchanged files

@s77rt I fixed your comment

Reviewer Checklist

[X] I have verified the author checklist is complete (all boxes are checked off).
[X] I verified the correct issue is linked in the ### Fixed Issues section above
[X] I verified testing steps are clear and they cover the changes made in this PR

[X] I verified the steps for local testing are in the Tests section
[X] I verified the steps for Staging and/or Production testing are in the QA steps section
[X] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[X] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[X] I checked that screenshots or videos are included for tests on all platforms
[X] I included screenshots or videos for tests on all platforms
[X] I verified tests pass on all platforms & I tested again on:

[X] Android: Native
[X] Android: mWeb Chrome
[X] iOS: Native
[X] iOS: mWeb Safari
[X] MacOS: Chrome / Safari
[X] MacOS: Desktop

[X] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[X] I verified proper code patterns were followed (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 any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[X] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[X] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[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 verified that this PR follows the guidelines as stated in the Review Guidelines
[X] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[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] 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] 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 a new CSS style is added I verified that:

[X] A similar style doesn't already exist
[X] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[X] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[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 PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[X] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[X] If the PR modifies the form input styles:

[X] I verified that all the inputs inside a form are aligned with each other.
[X] I added Design label so the design team can review the changes.

[X] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[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 reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/16493223/ce584a7f-eeaa-46c7-8aad-d90e3044b170

Android: mWeb Chrome

https://github.com/Expensify/App/assets/16493223/a35a81c9-8307-4bcc-9873-fd4797b67b0a

iOS: Native

https://github.com/Expensify/App/assets/16493223/cea22eb7-e8c1-417b-acd5-00ec1bcb7823

iOS: mWeb Safari

https://github.com/Expensify/App/assets/16493223/cee6d7d2-b012-47d3-a9f9-01c8ebeb4c72

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/16493223/006a97ce-c28f-4001-981b-1b9177bebd73

MacOS: Desktop

https://github.com/Expensify/App/assets/16493223/7f2ee894-bb14-406e-95e8-7e8956f00c86

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.33-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.34-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
cancelled 🔪

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.34-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/francoisl in version: 1.4.34-1 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


[5.0] refactoring: don't assume every pattern binding has an initializer. rdar://38062772

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - f0d278709575beb53c7787146b8f5045b9a72c3d

@swift-ci Please test OS X platform

@shahmishal could you merge this PR?


Need suggestions and ideas for a new project

Hello,
It's been a while since I made MY-BASIC open source. The interpreter itself has been keeping as compact as possible. It's very interesting to see how it's involved with your creativity, I cannot make these improvements without your voice. However, I've thinking about making something playable based on the kernel.
It will be an integrated software, in which user can write code in BASIC, make sprites, maps, and music; all of this will make up - a playable video game cartridge - a packed file, no plastic or circuit :). User can test it, improve it, then share it with a community. Of course a user can download and play games created by other users. All assets are readable and editable for all users, so users can learn from each other, and derive new cartridges. You'll be familiar with this concept if you've played PICO-8. But my design is different from PICO-8, some API will be improved, there will also be some API that PICO-8 doesn't offer, the GUI is a new design, and touching friendly for future mobile porting possibility.
The first release will come out later this year, if there's no unexpected event. It will be for Windows PC at first, but it won't be difficult to port to macOS, Linux, mobiles, RasPi, etc.
I'd like to know, if you are interested to this, what kind of features you want to see the most? For example:

Ideas about any API
Simple 3D graphics
Edit on mobile devices
Can create standalone executable player for PC
Can create standalone executable player for mobiles, and sellable to marketplaces
Play it in web browsers
Play it on a dedicated hardware
Supports collision detection, and or physics reaction
Supports LAN play
etc.

This issue will keep open until it's ready to go, then I'll make a dev log somewhere around instead of this. Feel free to leave a message below. Any suggestions are welcome, but I won't promise I'll implement them :)

Sincerely
Wang Renxin

Yes.
If you name it, will it be "Nostalgia Heart"?

Yeah, it will be a kind of retro/vintage programming journey.

Progress update:
I've implemented all features of v1.0. Now it's testing with boundary conditions, bugfix, writing examples... that remaining to be done before launch.
The programming manual is already available. But details may be changed before releasing.

The fantasy computer, named "BASIC8" will be released on early Jan. 2018 via Steam, see homepage.


Update excel-performance-and-limit-improvements.md

Removed the incorrect text
VLOOKUP, HLOOKUP, MATCH improvements
In Excel 16.0.9126.2xxx onwards VLOOKUP, HLOOKUP and MATCH for exact match on unsorted data is much faster than ever before.
*For example... TBD *

:x: Validation status: errors

File
Status
Preview URL
Details

VBA/templates/methodTemplate.md
:x:Error

Details

VBA/templates/objectTemplate.md
:x:Error

Details

VBA/templates/methodTemplate.md

[Error] Normalize file reference for file VBA/templates/methodTemplate.md failed. Error: Invalid content: |-----|-----|-----|-----|. Line: 66, position: 9, file: vba/templates/methodTemplate.html Line 66, position 9.

VBA/templates/objectTemplate.md

[Error] Normalize file reference for file VBA/templates/objectTemplate.md failed. Error: Invalid content: |-----|. Line: 166, position: 9, file: vba/templates/objectTemplate.html Line 166, position 9.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

VBA/templates/methodTemplate.md
:x:Error

Details

VBA/templates/objectTemplate.md
:x:Error

Details

VBA/templates/methodTemplate.md

[Error] Normalize file reference for file VBA/templates/methodTemplate.md failed. Error: Invalid content: |-----|-----|-----|-----|. Line: 66, position: 9, file: vba/templates/methodTemplate.html Line 66, position 9.

VBA/templates/objectTemplate.md

[Error] Normalize file reference for file VBA/templates/objectTemplate.md failed. Error: Invalid content: |-----|. Line: 166, position: 9, file: vba/templates/objectTemplate.html Line 166, position 9.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

VBA/templates/methodTemplate.md
:x:Error

Details

VBA/templates/objectTemplate.md
:x:Error

Details

VBA/templates/methodTemplate.md

[Error] Normalize file reference for file VBA/templates/methodTemplate.md failed. Error: Invalid content: |:-----|:-----|:-----|:-----|. Line: 71, position: 10, file: vba/templates/methodTemplate.html Line 71, position 10.

VBA/templates/objectTemplate.md

[Error] Normalize file reference for file VBA/templates/objectTemplate.md failed. Error: Invalid content: |-----|. Line: 166, position: 9, file: vba/templates/objectTemplate.html Line 166, position 9.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

VBA/templates/methodTemplate.md
:x:Error

Details

VBA/templates/objectTemplate.md
:x:Error

Details

VBA/templates/methodTemplate.md

[Error] Normalize file reference for file VBA/templates/methodTemplate.md failed. Error: Invalid content: |:-----|:-----|:-----|:-----|. Line: 71, position: 10, file: vba/templates/methodTemplate.html Line 71, position 10.

VBA/templates/objectTemplate.md

[Error] Normalize file reference for file VBA/templates/objectTemplate.md failed. Error: Invalid content: |:-----|. Line: 171, position: 10, file: vba/templates/objectTemplate.html Line 171, position 10.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

VBA/Excel-VBA/articles/excel-performance-and-limit-improvements.md
:white_check_mark:Succeeded

VBA/templates/methodTemplate.md
:white_check_mark:Succeeded

VBA/templates/objectTemplate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

VBA/Excel-VBA/articles/excel-performance-and-limit-improvements.md
:white_check_mark:Succeeded

VBA/templates/methodTemplate.md
:white_check_mark:Succeeded

VBA/templates/objectTemplate.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

VBA/templates/objectTemplate.md
:x:Error

Details

VBA/templates/objectTemplate.md

[Error] Normalize file reference for file VBA/templates/objectTemplate.md failed. Error: Invalid content: |:-----|. Line: 171, position: 10, file: vba/templates/objectTemplate.html Line 171, position 10.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Client side poll item updates

Should fix #1632

The parsl/tests/test_flowcontrol/test_one_block.py from Ben's #1621 is now passing on this branch.

Note I have been running with this for a few days and things look good so far.


Error when closing EDT that is running on LSF

Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

Description of the bug
OS: Red Hat Enterprise 8.8
In pyaedt 0.8 and 0.9, release_desktop() and close_desktop() do not close EDT and return an error if the session was started via LSF via settings.use_lsf_scheduler = True .
When started locally with settings.use_lsf_scheduler = False , EDT closes without a problem.
Steps To Reproduce
1) Launch EDT on LSF
Code:
from pyaedt import Desktop
from pyaedt import settings

grpcsrv = ''
settings.use_lsf_scheduler = True
settings.lsf_queue = "ssr"
settings.lsf_num_cores = 4
settings.lsf_ram = 4000
settings.lsf_osrel = 80
settings.lsf_ui = "ansysedt_gui"

desktop = Desktop()

Output:

PyAEDT INFO: Initializing new Desktop session.
PyAEDT INFO: StdOut is enabled
PyAEDT INFO: Log on file is enabled
PyAEDT INFO: Log on Desktop Message Manager is enabled
PyAEDT INFO: Debug logger is disabled. PyAEDT methods will not be logged.
PyAEDT INFO: Launching PyAEDT outside AEDT with gRPC plugin.
PyAEDT INFO: New AEDT session is starting on gRPC port 35883
['bsub', '-n', '4', '-q', 'ssr', '-R', '"select[(osrel=80) && ui=ansysedt_gui] rusage[mem=4000]"', '-Is', 'ssrrun ansysedt', '-grpcsrv', '35883']
PyAEDT INFO: XXX
PyAEDT INFO: Ansoft.ElectronicsDesktop.2023.2 version started with process ID 3154983.
PyAEDT INFO: pyaedt v0.9.0
PyAEDT INFO: Python version 3.10.14 (main, May  6 2024, 19:42:50) [GCC 11.2.0]
PyAEDT INFO: AEDT 2023.2.1 Build Date 2023-10-16 09:55:00

2) Close EDT
Code:
desktop.release_desktop()

Output:

close_desktop = True, pid = 3154983, is_grpc_api = True
PyAEDT INFO: Desktop has been released and closed.
/opt/ansysem_eval/pyansys/py310/pyaedt/0.9/rh88/lib/python3.10/site-packages/pyaedt/desktop.py:261: UserWarning: Something went wrong closing AEDT. Exception in _main.oDesktop.QuitApplication().
warnings.warn("Something went wrong closing AEDT. Exception in _main.oDesktop.QuitApplication().")
Out[2]: True

Which Operating System are you using?
Linux
Which Python version are you using?
3.10
Installed packages
annotated-types==0.6.0
ansys-pythonnet==3.1.0rc3
asttokens==2.4.1
attrs==23.2.0
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
click-plugins==1.1.1
cligj==0.7.2
cloudpickle==3.0.0
clr-loader==0.2.6
comm==0.2.2
contourpy==1.2.1
cycler==0.12.1
debugpy==1.8.1
decorator==5.1.1
defusedxml==0.7.1
distro==1.9.0
dotnetcore2==3.1.23
et-xmlfile==1.1.0
exceptiongroup==1.2.1
executing==2.0.1
fiona==1.9.6
fonttools==4.51.0
fpdf2==2.7.8
geopandas==0.14.4
idna==3.7
imageio==2.34.1
ipykernel==6.29.4
ipython==8.24.0
jedi==0.19.1
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
jupyter_client==8.6.1
jupyter_core==5.7.2
kiwisolver==1.4.5
matplotlib==3.8.4
matplotlib-inline==0.1.7
nest-asyncio==1.6.0
networkx==3.3
numpy==1.26.4
openpyxl==3.1.2
osmnx==1.9.3
packaging==24.0
pandas==2.2.2
parso==0.8.4
pexpect==4.9.0
pillow==10.3.0
platformdirs==4.2.1
plumbum==1.8.3
pooch==1.8.1
prompt-toolkit==3.0.43
psutil==5.9.8
ptyprocess==0.7.0
pure-eval==0.2.2
pyaedt==0.9.0
pycparser==2.22
pydantic==2.7.1
pydantic_core==2.18.2
pyedb==0.10.0
Pygments==2.18.0
pyparsing==3.1.2
pyproj==3.6.1
python-dateutil==2.9.0.post0
pytomlpp==1.0.13
pytz==2024.1
pyvista==0.43.7
pyzmq==26.0.3
referencing==0.35.1
requests==2.31.0
rpds-py==0.18.1
rpyc==6.0.0
Rtree==1.2.0
scikit-rf==1.0.0
scipy==1.13.0
scooby==0.10.0
shapely==2.0.4
six==1.16.0
spyder-kernels==2.4.4
SRTM.py==0.3.7
stack-data==0.6.3
toml==0.10.2
tornado==6.4
traitlets==5.14.3
typing_extensions==4.11.0
tzdata==2024.1
urllib3==2.2.1
utm==0.7.0
vtk==9.2.6
wcwidth==0.2.13
wurlitzer==3.1.0

Hi @kruglovIFX ,
Could you try closing the Desktop with the command
desktop.odesktop.QuitApplication()

instead of
desktop.release_desktop()

@dcrawforAtAnsys @kruglovIFX Any update regarding this issue?

@dcrawforAtAnsys @kruglovIFX Any update regarding this issue?

Hi @Samuelopez-ansys,
desktop.odesktop.QuitApplication() closes EDT but produces errors and the LSF job hangs. I am in contact with @dcrawforAtAnsys  on this, we are looking into it in our environment.
The problem with release_desktop seems to be in desktop.py, inside the _close_aedt_application method where it tries to do os.kill(pid, 9) to close the application. This also throws a misleading exception

"Something went wrong closing AEDT. Exception in _main.oDesktop.QuitApplication()."

even though QuitApplication is not used.

It seems there was a timing issue related to the way the buffer was being read from subprocess.Popen() in desktop.py. Logging for LSF was improved and the issue seems to be resolved with #4767


Add tags API to create and manage tags

Background:
Admins may manage tags using the admin UI, but they are not managable via API.
This commit adds a tags API to read, create, and update tags for admin users.
I did not implement deleting of tags, since many of the other APIs also don't implement deletion and I thought, that there might be a good reason for that.
The tags API is only available to admins, similarly to the tags admin user interface.
I'm only exposing the basic attributes of tags, that are also available in the user interface.

This fixes #1202 and is a contribution in the context of hacktoberfest.


Defining composed ids considering new lines as different items

I'm a newbie to the datasette ecosystem and I'm particularly amazed by the git-scraping technique. Thanks Simon for sharing it!
I need help defining a composed id on the rows for this CSV where I'm tracking power outages events in Buenos Aires's metropolitan area every 20'.
https://github.com/OpenDataCordoba/cortes_enre/blob/main/cortes_enre.csv
My problem is that there is no a clear ID of each event and I would like to track changes over it
Consider this recent commit
https://github.com/OpenDataCordoba/cortes_enre/commit/b3cde1c1d3b27dc0a76249d0025e3cbe68d914ed
Here it seems I could use all the columns but the last two as a composed id
latitud,longitud,nn,tipo,empresa,partido,localidad,subestacion,alimentador

Then the colums afectados (affected users) and normalizacion estimada (estimated time to normalization)  could change during a few next updates, but eventually the line will be deleted.
The problem is that the composed id basically describes the "place" where the outage is happening, and maybe in the future it could be a totally different event in the same place unrelated to the current event.
So, how could I distinguish different events in the same place? I'm wondering if there is a way to consider it's a new item if the composed id appears again (ie the commit is not updating an existing line but adding it).

This is really difficult!
One idea: you could take the yyyy-mm - the year and month - and use those as part of the ID. This would at least give you a unique new ID for each location for each month.
The two downsides to this are that if an outage starts on August 31st and continues to September the 1st it would be treated as two separate outages. And if an outage finishes September 2nd and then a new one starts on September 28th in the same location they would be treated as the same outage.
But it may be the best you can do in this situation?


Bug Report:

Describe The Bug:
Plugin will not start
To Reproduce:
Try starting
Expected behavior:
Runs
Logs:
[iRobot] Restarting Process...
[1/2/2023, 9:38:27 AM] [iRobot] Launched child bridge with PID 26545
[1/2/2023, 9:38:27 AM] Registering platform 'homebridge-irobot.iRobotPlatform'
[1/2/2023, 9:38:27 AM] [iRobot] Loaded homebridge-irobot v4.0.0-beta.2 child bridge successfully
[1/2/2023, 9:38:27 AM] Loaded 1 cached accessories from cachedAccessories.0E87261C7363.
[1/2/2023, 9:38:27 AM] Homebridge v1.6.0 (HAP v0.11.0) (iRobot) is running on port 38528.
TypeError: this.config.accessories is not iterable
    at iRobotPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:101:38)
    at HomebridgeAPI.<anonymous> (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:60:12)
    at HomebridgeAPI.emit (node:events:520:28)
    at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
    at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:189:14)
[1/2/2023, 9:38:27 AM] [iRobot] Child bridge process ended
[1/2/2023, 9:38:27 AM] [iRobot] Process Ended. Code: 1, Signal: null

Config:
{
    "name": "iRobot",
    "logLevel": 4,
    "autoConnect": true,
    "alwaysShowModes": false,
    "_bridge": {
        "username": "0E:87:26:1C:73:63",
        "port": 38528
    },
    "platform": "iRobotPlatform"
}

Node Version:
16.14.0
NPM Version:
8.3.1
Homebridge Version:
1.6.0
Plugin Version:
4.0.2
Operating System:
MacOS

Please try the latest beta:

seems to be fixed


Duplicate/missing quickfix lines when combining caddexpr and multi-line errorformat (%A,%Z)

Description
If 'errorformat' uses multi-line messages (%A, %C, %Z) and output is added
line-by-line with :caddexpr, vim omits lines and adds duplicate lines to the
quickfix. It's unsurprising that vim is unable to parse the multiple lines when
it only receives the first one, but I wouldn't expect it to repeat output. I'd
also hope it wouldn't drop output.
Minimal reproduction
c:/scratch/test.vim

function! Test_multiline_efm()
    let output = [
            \   '[python3 -t scratch\mytest.py]'
            \ , 'hello'
            \ , 'Traceback (most recent call last):'
            \ , '  File "scratch\mytest.py", line 2, in <module>'
            \ , '    raise Exception("bad")'
            \ , 'Exception: bad'
            \ , '[Finished in 0 seconds with code 1]'
            \ , 'placeholder 1'
            \ , 'placeholder 2'
            \ , 'placeholder 3'
            \ , 'placeholder 4'
            \ , 'placeholder 5'
            \]

    " Multi-line (%A, %Z) causes duplicated and missing lines.
    let &efm = '%A%\s%#File "%f"\, line %l%.%#,%Z    %m'
    " Same with set:
    set errorformat=%A%\\s%#File\ \"%f\"\\,\ line\ %l\\,%.%#,%Z\ \ \ \ %m

    " Single-line is fine, but obviously can't match error message to line since
    " they're on separate lines.
    "~ let &efm = '%\s%#File "%f"\, line %l\,%.%#,    %m'

    call setqflist([])

    " Add output all at once -- works wonderfully:
    " || [python3 -t scratch\mytest.py]
    " || hello
    " || Traceback (most recent call last):
    " scratch/mytest.py|2|  raise Exception("bad")
    " || Exception: bad
    " || [Finished in 0 seconds with code 1]
    " || placeholder 1
    " || placeholder 2
    " || placeholder 3
    " || placeholder 4
    " || placeholder 5
    "~ caddexpr output

    " Add output one at a time -- omits and duplicates lines:
    " || [python3 -t scratch\mytest.py]
    " || hello
    " || Traceback (most recent call last):
    " scratch/mytest.py|2|  raise Exception("bad")
    " || [python3 -t scratch\mytest.py]
    " || hello
    " || Traceback (most recent call last):
    " scratch/mytest.py|2|
    " || placeholder 3
    " || placeholder 4
    " || placeholder 5
    for line in output
        caddexpr line
        " Not sure if this should work better, but I can't figure out how to
        " make it work.
        "~ call setqflist([{'text' : line}], 'a', {'efm' : &efm})
    endfor
endf

copen
call Test_multiline_efm()

> gvim --clean +"source c:/scratch/test.vim"

Expected
I would expect the output to not duplicate lines and to include the omitted lines:
|| [python3 -t scratch\mytest.py]
|| hello
|| Traceback (most recent call last):
scratch/mytest.py|2|
||     raise Exception("bad")
|| Exception: bad
|| [Finished in 0 seconds with code 1]
|| placeholder 1
|| placeholder 2
|| placeholder 3
|| placeholder 4
|| placeholder 5

Instead, it omits 4 lines that appear after the %Z-matching line. If I insert another
placeholder line before 'raise Exception' (so there's a non-matching line
between %A and %Z), then it outputs as desired. So it seems like matching %A
and then matching %Z on the next input triggers this bad behaviour.
Environment

OS: Windows 10
Vim: Vi IMproved 8.2 (2019 Dec 12, compiled Feb 26 2020 23:02:14)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-324
gvim

Context
I'm using skywind3000/asyncrun.vim which adds uses vim jobs to run commands in
the background and add their output to the quickfix as it's received. It uses
caddexpr to add the lines.
I have a python compiler script that uses multi-line output to capture the
traceback and add it to the quickfix.
Using the two of these in combination causes the quickfix to be populated with
duplicate lines and some lines are missing.

If you close and then reopen the quickfix window it will show the correct output. It looks like it's parsed correctly but just not properly displayed in the quickfix window (at first).
Regarding setqflist():
" Line by line
for line in output
    call setqflist([], 'a', {'lines': [line], 'efm' : &efm})
endfor

" Or all lines at once
call setqflist([], 'a', {'lines': output, 'efm' : &errorformat})

Both give the same result. You can check the current quickfix list with getqflist():
[
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "[python3 -t scratch\\mytest.py]"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "hello"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "Traceback (most recent call last):"
	},
	{
		"lnum": 2,
		"bufnr": 4,
		"col": 0,
		"pattern": "",
		"valid": 1,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "\nraise Exception(\"bad\")"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "Exception: bad"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "[Finished in 0 seconds with code 1]"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "placeholder 1"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "placeholder 2"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "placeholder 3"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "placeholder 4"
	},
	{
		"lnum": 0,
		"bufnr": 0,
		"col": 0,
		"pattern": "",
		"valid": 0,
		"vcol": 0,
		"nr": -1,
		"type": "",
		"module": "",
		"text": "placeholder 5"
	}
]

Hi,
On Thu, Mar 5, 2020 at 3:42 PM David Briscoe<EMAIL_ADDRESS>wrote:

If you close and then reopen the quickfix window
Looks like you don't even need to close the quickfix. Looks like :copen
fixes it regardless!
Thanks for clearing up setqflist. Does that mean that if I want to pass
{what}, I should always pass an empty list for {list}?

If you want to create or add items to a quickfix list, then you can pass
the items
either through the {list} argument or using the 'items' key in {what}. The
{list}
argument is kept for backward compatibility reasons. When setqflist() was
introduced, it supported only the {list} argument. The {what} argument to
modify the various quickfix attributes was added later.
If you supply the {what} argument, then the {list} argument will be ignored.
Maybe that's implied by this line from :help setqflist:

When {what} is not present, use the items in {list}.
Although it wasn't clear to me that this line no longer applies:
If you supply an empty {list}, the quickfix list will be cleared.
This applies only when the {what} argument is not supplied.

Regards,
Yegappan

I think this was fixed in https://github.com/vim/vim/commit/2ce7790348dab9cbfcc5d02c8258d0dd7ecacf95. Or at least I can't reproduce it anymore.
@idbrii Maybe you can also give it a try.

Sorry for the delay. Confirmed fixed for me. Thanks!

Sorry for the delay. Confirmed fixed for me. Thanks!


Guideline on Contributions

Hey, very nice package. I've used a bit, and I'm interested in contributing. I was wondering if there are any guidelines.
Thanks.

@hexaeder, Makie now supports BezierPaths (the PR you referenced was merged 4 months ago), should we remove some of the content from beziercurves.jl and use it from Makie.jl?

Definitely worth a look but nut sure if there is much we can reuse. Makie uses those to construct low level markers, which is why the path-types are limited to Point2f. We need 3d and a quite distinct set of features (mainly interpolation of splines and tangential vectors) so the overlap is not to big.


Disable .vscode settings that will mess up snapshot files

It could be awesome if you could submit default language settings for the [jest-snapshot] language
with settings like:
{
    ...
    "[jest-snapshot]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": false
    }
    ...
}

So you don't change the content of the snapshot file,
just by opening it and accidentally hit save if you have files.trimTrailingWhitespace: true and files.insertFinalNewline: true in your general settings.

Doesn't look like there's any vscode extension API options for that: https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributeslanguages
You should ask on the vscode repo 👍


normalize and denommalize issue

Hi Brandon,
I recently install and use the dataset from your package. Thanks for your work to build this benchmark.
I have a problem with the function task.normalize_x.
# load task
task = design_bench.make('AntMorphology-Exact-v0', relabel=False)
# get the top 128 features
aa = task.x[np.argsort(np.squeeze(task.y))[-128:]]
# predict the labels
r1 = np.squeeze(task.predict(aa))

# normalize and denormalize features
bb = task.normalize_x(aa)
cc = task.denormalize_x(bb)
# predict the labels again
r2 = np.squeeze(task.predict(cc))

print(np.max(r1), np.max(r2)) #--> 198.7532   406.76566
print(np.where((aa-cc)>0.001))  #--> (array([], dtype=int64), array([], dtype=int64))

The output shows that normalization and denormalization don't change the features but predictions are quite different. Is there anything wrong with my codes? I feel it's a trivial issue. But I cannot figure out where the problem is.
Nathan

It does help if I switch to float64. I think this numerical problem is caused by the distribution of features, i.e. most values are around 0 but a few values could be as large as 200-300.

Hi Brandon,
Here is another issue about the Hopper Controller task. I use the exact oracle model, which means predictions should be identical to labels. Maybe it could be a little different as the oracle is a simulator.
task = design_bench.make('HopperController-Exact-v0', relabel=False)
pred = task.predict(task.x[:10])
print(np.squeeze(pred))
--> [59.14225  72.68841  57.52715  59.30107  68.945305 95.25469  54.364407
 58.248234 57.225212 55.378292]

print(np.squeeze(task.y[:10]))
--> [108.34371  128.48705  103.78237   92.259224 147.93976  124.293274
 117.06348  148.98955  133.39757  101.68808 ]

But the output of this snippet is not what I expected. Would you please test this code? Thanks!
Nathan

Thanks for pointing this out, I currently think the issue is due to the original dataset being collected with a stochastic policy, but in order to speed up evaluation, I implemented the oracle for this task as deterministic in the benchmark.
There is a pull request about this I have yet to merge:
https://github.com/brandontrabucco/design-bench/pull/3


Smarter type alias preservation for unions originating from type query types

Suggestion
🔍 Search Terms
smarter type alias preservation, type query types
✅ Viability Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
TypeScript 4.2 introduced intelligent type alias preservation for most union types. This greatly improved visibility when dealing with large union types. This preservation should be extended to union types created by via type query types.
Could probably also be considered a bug / missing edge case.
📃 Motivating Example
Playground link
export const SOME_CONST = {
  valuenum1: 1,
  valuenum2: 2,
  valuenum3: 3,
}

export type SomeConstType = typeof SOME_CONST

export type Keys = keyof SomeConstType
//          ^? type Keys = "valuenum1" | "valuenum2" | "valuenum3" | "valuenum4" | "valuenum5" | "valuenum6" - ☹

// --------

export type SomeConstType2 = {
  valuenum1: number,
  valuenum2: number,
  valuenum3: number,
}

export type Keys2 = keyof SomeConstType2
//          ^? type Keys2 = keyof SomeConstType2 - 😄

Ref: https://github.com/TypeStrong/typedoc/issues/1867

Is this in reference to declaration emit, quick info (aka tooltips), or something else?

This is related to quick infos - declaration emit shows what I'd expect, preserving the keyof for both types.

Personally, I'd prefer to see //          ^? type Keys = "valuenum1" | "valuenum2" | "valuenum3" | "valuenum4" | "valuenum5" | "valuenum6"  most of the time. typeof X in quick infos slows/distracts my ability to wrap my head around the types I'm investigating.

Another example of this where keyof is not necessary:
crossbell.js has a 1400 line as const array which is referenced in some types.
One of those places is in a method parameter
class CharacterContract {
        // ...
	async create(
		{
			owner,
			handle,
			metadataOrUri,
			linkModule,
		}: {
			/** The Ethereum address of the character owner. */
			owner: Address
			/** The handle of the character you want to create. */
			handle: string
			/** The metadata or URI of the character. */
			metadataOrUri: CharacterMetadata | string
			linkModule?: MintOrLinkModuleConfig
		},
		overrides: WriteOverrides<Entry, 'createCharacter'> = {},
	): Promise<Result<bigint, true>> {

When calling this function, TypeScript does not preserve the Entry alias, which results in a hover which can't really be reasoned about:


Exporting enum discriminants

I would like to export a struct that looks like this
#[derive(Serialize, Deserialize, Debug, Clone, TS)]
#[ts(export)]
pub enum BuildStatus {
    Unqueued = -1,
    Queued = 0,
    Building = 1,
    BuildFailed = 2,
    TestGameFailed = 3,
}

into a format that looks like this:
export enum BuildStatus {
    Unqueued = -1,
    Queued = 0,
    Building = 1,
    BuildFailed = 2,
    TestGameFailed = 3,
}

This is what was generated:
export type BuildStatus = "Unqueued" | "Queued" | "BuildSucceeded" | "TestGameSucceeded" | "BuildFailed" | "TestGameFailed";

Is there a way to get an enum in typescript with the same discriminants as in rust?

I'm in need of this also

I thought I would need this but it turned out that the enum values are serialized to their string representation when sent as JSON response from axum. So I can use the literal string representation in the TypeScript code, Rust enum in rust code, and in the database the enum is stored as an integer.
#[repr(i32)]
#[derive(Hash, Eq, Debug, PartialEq, sqlx::Type, TS, Serialize, Deserialize, Clone, Copy)]
#[serde(rename_all = "snake_case")]
#[ts(export)]
pub enum MyEnum {
    Foo = 1,
    Bar = 2,
}

Duplicate of #23


Issue with pyrealine3 in Windows Command Prompt

Hi,
I ran into a problem with trying the script in a Windows Command Prompt.
The pyreadline3 library was returning an error in determining the size of the console.
I was able to fix it, by substituting the input() function with the sys.stdin.readline() method.
I'm not making a pull request, as I don't know if this is a recurrent issue.
If you want me to do it, please let me know.
Best,
Joao

Please commit.
Am getting a
TypeError: cannot unpack non-iterable NoneType object
Input path  does not exist. Please create it and add the necessary files.
and debugging with ChatGPT also pointed to the pyreadline3 library t cause issues

It should be SDK problem about Window, please leave the question in Nexa SDK Issue Tab


Migration does not terminate gracefully when out of working space

We had a rather large migration display a message saying something like "allocated space was running low" but it had consumed all available space on the drive, which happened to be the system drive and no easy way to terminate the application apart from cancelling the process in Task Manager.
Is this the expected behaviour in this situation?  Is there some way that the tool can be aware of the free space available and provide options before all the spare space on the drive is consumed?

@gjohncock thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


Git Repo information in package.json is added as PUBLIC_URL, causing broken build.

Describe the bug
When I add git information to package.json, it somehow gets added to PUBLIC_URL, so that the built html has bad references like <link href="/sw-yx/hi/static/css/main.5f361e03.chunk.css" rel="stylesheet" /> and <link rel="icon" href="/sw-yx/h/favicon.ico" /> (which is even worse!!!).
i think this is a bug.
Did you try recovering your dependencies?
yarn 1.22.4
Which terms did you search for in User Guide?
PUBLIC_URL, prefix
Environment
Environment Info:

  current version of create-react-app: 3.4.1
  running from /Users/wanshawn/.npm/_npx/78798/lib/node_modules/create-react-app

  System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  Binaries:
    Node: 12.18.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.7 - /usr/local/bin/npm
  Browsers:
    Chrome: 84.0.4147.135
    Firefox: 68.8.0
    Safari: 13.1.2
  npmPackages:
    react: ^16.13.1 => 16.13.1
    react-dom: ^16.13.1 => 16.13.1
    react-scripts: 3.4.3 => 3.4.3
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

npm create react-app
gh create repo
npm init -y   <- this adds repo details to package.json
yarn build

when you check build/index.html, you find the bug:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" href="/sw-yx/h/favicon.ico" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <link rel="apple-touch-icon" href="/sw-yx/h/logo192.png" />
    <link rel="manifest" href="/sw-yx/h/manifest.json" />
    <title>React App</title>
    <link
      href="/sw-yx/hi/static/css/main.5f361e03.chunk.css"
      rel="stylesheet"
    />
  </head>

The bug is that /sw-yx/hi is inserted as PUBLIC_URL where it should not be, and even worse, in parts of it the last letter is snipped off.
Expected behavior
nothing in package.json should impact what PUBLIC_URL is
Actual behavior
Reproducible demo
https://github.com/sw-yx/hi

I've also observed this behavior and it can be due to the homepage key being populated in package.json after init. The homepage key can be used instead of PUBLIC_URL and it's mentioned as an alternative
The broken link tags having /sw-yx/h/ are strange though, maybe due to the #readme bit
"homepage": "https://github.com/sw-yx/hi#readme"

that seems like it could be documented a lot better. and as you've mentioned its still buggy.
personally i'd prefer one way to do things.


json vs xml

hey
Is there anyway to change the accept header for SOC ?
currently it sends application/json, application/xml, application/text
but with the newest version of web.api odata (v4) application/xml is nolonger valid, only "application/atom+xml".
And for some reason, everytime SOC sees json it just plain fails with "No property or association found for XXXX" so would be nice if i could force it back to using xml.

Did you try version 4.2.1? It reorders the accept headers prioritizing application/json before others. Otherwise it's possible to change the headers in BeforeRequest interceptor.

hey
sorry for the late reply, suddenly had to focus on something else for a while.
Downloaded and compiled <IP_ADDRESS> but didnt change much. but using
                    var options = new Simple.OData.Client.ODataClientSettings()
                    {
                        UrlBase = ccp.db.baseurl,
                        BeforeRequest = (r) => {
                            r.Headers.Accept.Clear();
                            r.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/atom+xml"));
                        }
                    };

worked perfectly.
If i want to use json instead, is there anyway to get more useful error information about why it keeps failing on serializing with "No property or association found for XXXX" where xxx is any random property ?

Hmm, you should be able to use json instead. I would like to get more details about the error if possible.

After swapping around versions, I'm now stuck. Doing updates it's always sending in json, and getting the result back in json too, resulting in the dreaded "No property or association found", so yes any help would be greatly appreciated.
What do you need ? or should could we do a quick teamviewer session so you can see it ?

If you share with me a sample project (or give me an access to your OData feed) as well as client code you are using, I can check this out. It all seems strange to me because S.O.D. v4 is widely used with JSON payload.

hey.
I triede several times to "split" it up, but gave up, so here is just "everything".
if you run the project wftestlab, you'll see the error right away.
Please comment/email when you downloaded it, so i can remove it again.
http://admin.wingu.dk/CCP_3.zip

Great, thanks! I will have a look.

Sorry, sorry. When zipping it, I did a clean to remove binaries. and forgot to rebuild, so OData wasn't working. I've rebuilt it now...

The file is not available. Perhaps you already removed it. Please upload it again.

yes, i have uploaded it again, same url.
On Thu, Mar 5, 2015 at 7:27 PM, Vagif Abilov<EMAIL_ADDRESS>wrote:

The file is not available. Perhaps you already removed it. Please upload
it again.
—
Reply to this email directly or view it on GitHub
https://github.com/object/Simple.OData.Client/issues/81#issuecomment-77420185
.

Got it, thanks!

I tested your project, and apparently the issue is not related to json vs. xml, it's something else. "No property or association found for instanceid" is raised from this code:
var t = e.save<ccp.entities.wfevent>();
"wfevent" refers to instanceid that is declared in "wfevent" OData EntityType. But I can't see any EntitySet that is derived from that type. The library tried to find EntitySet with the name "wfevent" or "wfevents" and it finds "wfevents" of course. But that one doesn't have "instanceid" field, so you are getting this error.

... Sigh ... why you always find embarrassing bugs in my code
You were right; the entity set was exposed with the wrong class (and name)
        //var wfevents = builder.EntitySet<ccp.entities.wf>("wfevents");
        var wfevents = builder.EntitySet<ccp.entities.wfevent>("wfevent");

Thank you :)

No problem! Four eyes is always better than two. BTW when zipping projects to share, it's OK not to include "packages" folder. Packages are restored automatically but they take a lot of space.

I have a question related to using json instead of xml in oData calls, I thought to ask the question in this comment instead of opening a new issue. I want to communicate using json in order to minimize the data traffic. So I used following settings when initializing odata client
            var settings = new ODataClientSettings("http://services.odata.org/northwind/northwind.svc/");
            settings.BeforeRequest = (h) =>
            {   //Content-Type: application/json; odata.metadata=minimal
                h.Headers.Accept.Clear();
                h.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
            };
            var client = new ODataClient(settings);
            var categories = await client.For<Category>().FindEntriesAsync();

First question, is this the proper way to instruct oDataClient to use json instead of xml.
I found that client throws an exception when I use this because oDataClient go and fetcx $metadata which needs to be in xml format.
Exception: {"Unsupported Media Type"}
message=A supported MIME type could not be found that matches the acceptable MIME types for the request. The supported type(s) 'application/xml' do not match any of the acceptable MIME types 'application/json'.
So how do we setup the client to use 'application/xml' in its metadata call (which it does automatically) and to use json for data calls? thank you

No that's not easiest (proper) way to switch between JSON and XML. ODataClientSettings has a property that lets you choose payload format, just select JSON and it should work fine. YOu don't need to overwrite BeforeRequest.

Thank you very much sir!, I knew I was doing something wrong :)
Also thanks a lot for quick reply


Error: Expected property "1" of type Satoshi, got Number<PHONE_NUMBER>00269150

Running Bitcoin Gold wallet, with complete blockchain.
When I start up z-nomp, the following error is displayed. This error only started showing after 100% of the blockchain was downloaded.
<EMAIL_ADDRESS>start /root/z-nomp
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
2017-11-15 14:56:11 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2017-11-15 14:56:11 [Master] [CLI] CLI listening on port 17117
2017-11-15 14:56:11 [PPLNT] [bitcoin gold] TimeShare processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:11 [Master] [PoolSpawner] Spawned 1 pool(s) on 2 thread(s)
2017-11-15 14:56:12 [Website] [Server] Website started on <IP_ADDRESS>:80
2017-11-15 14:56:12 [Payments] [bitcoin gold] minimum paymentInterval of 120 seconds recommended.
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold requireShielding: true
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold minConf: 10
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold payments txfee reserve: 0.0004
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold maxBlocksPerPayment: 3
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold PPLNT: false, time period: 0.51
2017-11-15 14:56:12 [Payments] [bitcoin gold] Error with payment processing daemon {"code":-32601,"message":"Method not found"}
2017-11-15 14:56:12 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) Share processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:12 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) Share processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) No rewardRecipients have been setup which means no fees will be taken
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) No rewardRecipients have been setup which means no fees will be taken
/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number<PHONE_NUMBER>00248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66
/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number<PHONE_NUMBER>00248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66
2017-11-15 14:56:12 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...

You have problem with parsing the block reward from getblocktemplate.
Are you sure you are running the latest versions?
Which is your OS?

On 15 Nov 2017, at 18:27, remrat<EMAIL_ADDRESS>wrote:
Running Bitcoin Gold wallet, with complete blockchain.
When I start up z-nomp, the following error is displayed. This error only started showing after 100% of the blockchain was downloaded.
<EMAIL_ADDRESS>start /root/z-nomp
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
2017-11-15 14:56:11 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2017-11-15 14:56:11 [Master] [CLI] CLI listening on port 17117
2017-11-15 14:56:11 [PPLNT] [bitcoin gold] TimeShare processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:11 [Master] [PoolSpawner] Spawned 1 pool(s) on 2 thread(s)
2017-11-15 14:56:12 [Website] [Server] Website started on <IP_ADDRESS>:80
2017-11-15 14:56:12 [Payments] [bitcoin gold] minimum paymentInterval of 120 seconds recommended.
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold requireShielding: true
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold minConf: 10
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold payments txfee reserve: 0.0004
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold maxBlocksPerPayment: 3
2017-11-15 14:56:12 [Payments] [bitcoin gold] bitcoin gold PPLNT: false, time period: 0.51
2017-11-15 14:56:12 [Payments] [bitcoin gold] Error with payment processing daemon {"code":-32601,"message":"Method not found"}
2017-11-15 14:56:12 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) Share processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:12 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) Share processing setup with redis (<IP_ADDRESS>:6379)
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 1) No rewardRecipients have been setup which means no fees will be taken
2017-11-15 14:56:12 [Pool] [bitcoin gold] (Thread 2) No rewardRecipients have been setup which means no fees will be taken
/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number<PHONE_NUMBER>00248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66
/root/z-nomp/node_modules/typeforce/index.js:159
throw tfSubError(e, i)
^
Error: Expected property "1" of type Satoshi, got Number<PHONE_NUMBER>00248140
at tfSubError (/root/z-nomp/node_modules/typeforce/errors.js:93:9)
at /root/z-nomp/node_modules/typeforce/index.js:159:17
at Array.every ()
at _tuple (/root/z-nomp/node_modules/typeforce/index.js:155:20)
at typeforce (/root/z-nomp/node_modules/typeforce/index.js:196:9)
at Transaction.addOutput (/root/z-nomp/node_modules/bitcoinjs-lib-zcash/src/transaction.js:268:3)
at Object.exports.createGeneration (/root/z-nomp/node_modules/stratum-pool/lib/transactions.js:118:12)
at new BlockTemplate (/root/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35)
at JobManager.processTemplate (/root/z-nomp/node_modules/stratum-pool/lib/jobManager.js:150:32)
at /root/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66
2017-11-15 14:56:12 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/poolgold/z-nomp-bitcoin-gold/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrjrRDweWzkF3eanBct5p9CONJ2jYv0ks5s2xENgaJpZM4QfMzH.

Running the latest version (as of 5 days ago)
OS: Ubuntu 16.04

The last version of BTG is from 2 days ago.
Please update.

On 15 Nov 2017, at 18:34, remrat<EMAIL_ADDRESS>wrote:
Running the latest version (as of 5 days ago)
OS: Ubuntu 16.04
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/poolgold/z-nomp-bitcoin-gold/issues/7#issuecomment-344650032, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrjrS7-sBs41UFFH4hXtvAmIAQfDXttks5s2xKpgaJpZM4QfMzH.

Updated...
2017-11-15 16:51:49 [Pool]      [bitcoin gold] (Thread 1) Share processing setup with redis (<IP_ADDRESS>:                                                                                6379)
/root/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:40
if (!payload) throw new Error('Invalid checksum')
^
Error: Invalid checksum
at Object.decode (/root/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:40:25)
at Object.fromBase58Check (/root/z-nomp-bitcoin-gold/node_modules/bitcoinjs-lib-zcash/src/address.j                                                                                s:8:27)
at Object.exports.createGeneration (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/transac                                                                                tions.js:75:42)
at new BlockTemplate (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/blockTemplate.js:36:3                                                                                5)
at JobManager.processTemplate (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/jobManager.j                                                                                s:141:32)
at /root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/pool.js:581:66
at itemFinished (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:155:36)
at /root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:169:17
at parseJson (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:85:17)
at IncomingMessage. (/root/z-nomp-bitcoin-gold/node_modules/stratum-pool/lib/daemon.js:9                                                                                5:17)
2017-11-15 16:51:49 [Master]    [PoolSpawner] Fork 0 died, spawning replacement worker...

Ok, updated... Now I am receiving:
2017-11-15 17:50:32 [Master]    [PoolSpawner] Fork 0 died, spawning replacement worker...
2017-11-15 17:50:32 [Switching] [Setup] (Thread 2) Loading last proxy state from redis
2017-11-15 17:50:32 [Pool]      [bitcoin gold] (Thread 2) Share processing setup with redis (<IP_ADDRESS>:6379)
/root/z-nomp-bitcoin-gold/node_modules/bs58check/base.js:40
if (!payload) throw new Error('Invalid checksum')

Working correctly now.  Thank you for your help.

No problem.
Wish you all the best (:
Sent from my iPhone 7 plus

On Nov 15, 2017, at 8:03 PM, remrat<EMAIL_ADDRESS>wrote:
Working correctly now. Thank you for your help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


How to execute stored procedure with SwiftOracle.

You example helped me to fetch data with Select statement. Can you please guide me how to execute stored procedure with it ?

Even a stored proc which doesn't receive any parameters neither outputs any data ( inserts some  hardcoded data in a table)   doesn't get executed.  Whereas Select statement gets executed. Does SwiftOracle has any issue with Stored Proc ?

// setting up the context
do {
    let sqlStr = "BEGIN TESTREPORT5(); END;"
//  let sqlStr = "select * from test_name"
    req.logger.debug("get API running a query")
    try cursor.execute(sqlStr, prefetchSize: prefetchSize)
    // fetch the data
    while let row = cursor.nextSwifty() {
        for f in row.fields {
            responseString += "\(f.toString)\t"
        }
        responseString += "\n"
    }
} catch {

Yes, you can set conn.autoCommit(true). You can also use let conn = req.oraConnPool.pool.getConnection(tag: "", autoCommit: true)

Is ":p2": BindVar(value2) is the output result of the stored procedure or do i need to change anything to get the output result ?
With your help i was able to send the input parameters and now i am puzzled with the result set of the stored procedure. Your help is highly appreciated .

Unfortunately, the original SwiftOracle only supported one way, input bind variables. The output value returned by a procedure is not mapped to Swift BindVar instance. I haven't modified this interface yet.
There is a simple workaround: turn your procedure into a function that returns a value and use select myfunc(input_param) from dual;
If you can't modify the procedure, you can wrap it into a function to return the modified value. Here is an example.
Assuming your procedure is as follows, and parameter1 is in out parameter, and we want to return the modified value.
create or replace procedure test_proc(parameter1 in out varchar2) as
begin
  parameter1 := 'modified value';
end test_proc;

We can create a wrapper function as follows:
create or replace function test_func(parameter1 in varchar2) return varchar2 as
  myVar varchar2(100) := parameter1;
begin
  test_proc(myVar);
  return myVar;
end test_func;

And then use
select test_func('some value') from dual;
This will return "modified value".

Can we apply this method if the return value is in  RefCursor ?

You can certainly do it on the server side (in SQL). And then see this example from OCILIB , there is a section named "Ref cursor Example".
However, SwiftOracle does not currently support data type OCI_Statement. So you may have to follow the above example calling OCILIB C methods directly.

Thanks a lot. I was able to complete this project in vapor. It was a small report server for internal use and i managed to complete the backend in Vapor with your help.
Are you planning to add the feature of displaying OCI_Statement any time soon , or any tentative timeline?  If its sooner then I will start another project in Vapor else I have to use Python/Django as an alternative . I prefer to make my office  dev environment Swifty rather than Pythonic lol .

 I'm glad my examples and the library helped you with your project. I, too, had done a few small projects with Django, FastAPI, and other Python libs before I came across Swift and Vapor, and I loved Swift/Vapor combo.
I am going to continue improving SwiftOracle library. In fact, I'm working on some changes to the data types now as my other project depends on them. However, I cannot commit to any particular timeline as this isn't my day job :-)

Kudos to your effort in improving SwiftOracle library and hopefully we will be able to use it in our next project. I will start working in front end with dummy data and if the library gets updated I will use vapor  else Django is there.
And again Thanks a lot, i wouldn't have completed my project  without ur help.
Btw do you use Vapor Discord channel , if so may i message you there ?

Thanks.
I come to vapor discord channel from time to time, you can find me as ilia.sazonov#2059


ms1606: add width and height

@terenceingram @kenjiwalter @scoen @bsingh-nla
need width and height to display the image in browser widget in Tarkine

looks ok to me


Errno 28

youtube dl threw "[Errno 28] No space left on device" even though the destination flashdrive was empty. Turns out the error message was somewhat misleading. The actual problem was that I had formatted the flashdrive as FAT instead of exFAT, and the file size was too big for FAT.

I guess that that error is returned by the OS, and I don't think there is anything that youtube-dl should do.

Apparently so. Maybe this brief discussion can assist others.

It's not just a Windows thing: https://stackoverflow.com/questions/6998083/python-causing-ioerror-errno-28-no-space-left-on-device-results-32766-h
Basically any case where the file system hits a limit causes this error. Greybeards may recall hitting the [limit for the number of files in the root directory of a FAT(16) file system in MS-DOS[(https://en.wikipedia.org/w/index.php?title=Design_of_the_FAT_file_system&section=2#Layout).


RTView: propagation time

Show propagation time for the blocks in the chain (for last 4hours, 1day).

Closing this. Please reopen if this is still relevant.


HMR don't work with HTTPS

I'm developing .net core web app with angular 2 and used template for .net core+angular2+webpack with HMR. And there is HMR error when I running app on https://localhost;xxxx/, it tells that https can't call http resources.
Is it possible to run HMR on HTTPS too?

Check previous issue here: https://github.com/aspnet/JavaScriptServices/issues/450#issuecomment-261912505


Update RedshiftJDBCWrapper.scala

java.sql.Types.BIGINT => LongType in all cases for Redshift.
Redshift has no unsigned BigInt, and thus BigInt maps to Long without loss of resolution.
See issue #310

Thanks for the fix! Mind adding a regression test to an existing suite? If
you can't, I can tackle it in a followup. Code from your original issue
would be a good foundation for the test case. Check out RedshiftReadSuite,
since that's where I'd add it.
On Fri, Dec 9, 2016 at 1:20 AM ngerstle<EMAIL_ADDRESS>wrote:

java.sql.Types.BIGINT => LongType in all cases for Redshift.
Redshift has no unsigned BigInt, and thus BigInt maps to Long without loss
of resolution.
See issue #310 https://github.com/databricks/spark-redshift/issues/310
You can view, comment on, or merge this pull request online at:
https://github.com/databricks/spark-redshift/pull/311
Commit Summary

Update RedshiftJDBCWrapper.scala

File Changes

M
src/main/scala/com/databricks/spark/redshift/RedshiftJDBCWrapper.scala
https://github.com/databricks/spark-redshift/pull/311/files#diff-0
(2)

Patch Links:

https://github.com/databricks/spark-redshift/pull/311.patch
https://github.com/databricks/spark-redshift/pull/311.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/databricks/spark-redshift/pull/311, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AADGPO5Ox0OGiqp5pwDLug4_usBaAuAbks5rGR1AgaJpZM4LIulr
.

I'm not able to find any clear point at which a decimal would be converted to a double, meaning that issue #310 is unlikely to fixed by this, but the dead code should still be pruned.
I added a couple of rough regression tests- please flesh out as recommended..

Current coverage is 88.55% (diff: 100%)

Merging #311 into master will not change coverage

@@             master       #311   diff @@
==========================================
  Files            15         15
  Lines           769        769
  Methods         614        615     +1
  Messages          0          0
  Branches        155        154     -1
==========================================
  Hits            681        681
  Misses           88         88
  Partials          0          0

Powered by Codecov. Last update 8adfe95...6a16c4b

Regarding the double issue, is there a possibility that our call to ask Redshift the schema is returning a Double but then Redshift is actually turning around and unexpectedly giving us a Decimal? Do you have any test case which reproduces the Double behavior, even if you don't know how to actually fix the bug?

Unfortunately, I'm still trying to get a consistent abstract case- as mentioned in #310, I have a select count(column), count(distinct(column) from table that iterates over columns: sometimes it returns (bigint, bigint) and sometimes (double, bigint) (when debugging the schema of the dataframe returned when using the query option on sqlContext.read....


sync with master

[Current coverage][cc-pull] is 100% (diff: 100%)

Merging [#595][cc-pull] into [v22.3.1][cc-base-branch] will not change coverage

@@           v22.3.1   #595   diff @@
=====================================
  Files           29     29
  Lines          439    439
  Methods        111    111
  Messages         0      0
  Branches         0      0
=====================================
  Hits           439    439
  Misses           0      0
  Partials         0      0

Powered by Codecov. Last update [88862e3...b0f4d5f][cc-compare]
[cc-base-branch]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/branch/v22.3.1?src=pr
[cc-compare]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/compare/88862e368305467b7cb700fad23b36623b3f8d77...b0f4d5f3d241859f9da8024d7e6a8e7360261713?src=pr
[cc-pull]: https://codecov.io/gh/eugene-matvejev/battleship-game-api/pull/595?src=pr


[doc] Pip Cryptography Install Version

Description:
Adding a specific version to the pip install intructions for
cryptography.
Why:
So that it matches the required version in setup.py.
Without this, the latest version is installed with the correct flags and
then when setup.py is ran 1.7.2 is installed with no flags which will
cause other errors.
Changes:
Added specific verion to pip install.

I wonder if we should just bump the version to the latest in setup.py ?

@mistercrunch It is generally good to stay up to date with the latest with security packages so I would be in favor of bumping the version to the latest. I'm not sure the process that you use to test/validate a new package version though. Let me know if I can help.
I thought this would be a less controversial change than bumping the version.

I'll do a round of bumping now. This service makes it straightforward:
https://requires.io/github/airbnb/superset/requirements/?branch=master

https://github.com/airbnb/superset/pull/2575

I bumped the version to the latest.

👍 Thanks @mistercrunch


add my programming language plz :(

abcdefg

Closing as it appears to be spam and does not use the template for PRs.


chore(launch): Hide model-registry project name when raising error on push to run queue

Fixes

Fixes WB-NNNNN
Fixes #NNNN

Description
What does the PR do?
copilot:summary
Testing
How was this PR tested?
Checklist

[ ] Include reference to internal ticket "Fixes WB-NNNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
[ ] Ensure PR title compliance with the conventional commits standards

copilot:poem

/fix-title


Fix ICONDIR buffer overflow

Fixes #68622
The compiler will typically add padding to align idEntries, so the calculation of the size of ICONDIR was incorrect.

Thanks!


Use Learn content viewer when available

https://phabricator.endlessm.com/T34740

Asking for early feedback! Marking it again as draft because I don't think we want this until we sort out the Kolibri side. See ticket for details.


Unable to create folder(s) on Window

When running on windows CMD it throws an error if output folder does not exists.

Fixed with using mkdirp instead of fs.mkdirSync.


Addons folder in Downloads is not deleted at cleanup

The script is failing to cleanup the Addons folder created in Downloads on all platforms. Should switch to Python's tempfile/tempdir.

the default download folder is set to the OS default. I think forcing the user to input a download directory is a better way to avoid the possibility of errors.

@Kshitijthegreat appreciate the insight! If main.py finds a user-provided download directory (that is already set in FF), it will perform all operations there. There is also a way to set the default download path with Selenium, but the issue shouldn't have anything to do with where we store the files, but how/when we're deleting them at cleanup. That should work regardless of download location, so there's a bug somewhere in clean_downloads().

Turns out that clean_downloads() is written to only remove the zip files. Fix incoming.

fixed by [d8cee30](https://github.com/Lesona-Systems/Underwolf/commit/d8cee30833ae62bd1c90195b72dada4e0cf9da46)


Publication heading

Any thoughts on what this heading should be? (It's on the /publication page.)

HMDA Data Publication is my suggestion

Sorry, meant to say "heading" and "description". Thoughts on the description too?

I know our team understand what "publication" means, but I wonder if filers do.
I was actually thinking "HMDA reporting should be repeated in the nav to replace "publication".

@designlanguage
Something like

reporting/reports (what we'll do initially)
reporting/charts (later)
reporting/maps (later)
reporting/<whatever> (later)

@awolfe76 Please update description to:
The HMDA data and reports are the most comprehensive publicly available information on mortgage market activity. The data and reports can be used along with the Census demographic information for data analysis purposes. Available below are the data and reports for HMDA data collected in or after 2017. For HMDA data and reports for prior years, visit https://www.ffiec.gov/hmda/hmdaproducts.htm.
Also, hyperlink the word Census to https://www.ffiec.gov/censusproducts.htm


There is bug with icons on Xubuntu 18.04.2 & Tilix terminal

dengolius@aspire:/tmp$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

dengolius@aspire:/tmp$ uname -a
Linux aspire 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Hi @denisgolius ,
I think you don't have the correct font or you terminal is not configured to use it. You can find some instruction here.
I think the documentation above should solve your issue so I close it but if the bug is something else or if you have any question don't hesitate to reopen it.


Some unit tests other examples are needed for AsyncCommand.

I was chatting with @patriksvensson on Twitter and he suggest I look at AsyncCommand for an example project I posted on youtube.
I checked it out, but I see no unit tests for AsynCommand or examples.
I suggest that be rectified.
Cheers!

Dear @dlandi, I have now submitted PR https://github.com/spectreconsole/spectre.console/pull/1228 which should address this issue.
Specifically, the async command unit tests are located here: https://github.com/spectreconsole/spectre.console/blob/0f15b96ba0d32cb9cf0b80b7b0758eda1c226e18/test/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Async.cs
If you have time, please review and tell me if they meet your expectations. If not, I'd be interested to hear what is missing or needs to change.   Many thanks


Modify logger to take env properties

log file location
service name
logging level

Something like this:
declare const createLogger: ({ context: baseContext, targets: logTargets, translate: logTranslator, }?: CreateLoggerOptions) => Logger;


First use issue: OSError: [Errno 5] Input/output error

Hi,
I ran into an issue running examples.ansys_cylinder_demo() after a first time install. It throws an:
OSError: [Errno 5] Input/output error
I get the same error when running
ansys = pyansys.Mapdl(run_location=path)
I have attached my entire terminal output when running the example. Some system information:

RHEL 7 operating system
ANSYS v182
python3.6

Let me know if I can provide any further information.
terminal_output_20191014.txt

Looks like your problem is:
loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

See if you can run /home/jeremy/ansys_inc/v182/ansys/bin/ansys182 from the command line and then try running pyansys.  It looks like you are missing some libraries.

Cheers, missing library was solved by installing motif-devel it now works correctly. Many thanks.


Not usable anymore in my IDM

Describe the bug
I was using rust-u2f for login into several places. One of it was my Kanidm instance and since last update I get an error message.
This is in Kanidm web interface with Firefox:
JsValue(NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. ) Error occurred client-side.

Also in Chrome it said that the device is not valid.
Logs
systemctl status softu2f.service
● softu2f.service - Software-only U2F Emulation Service
     Loaded: loaded (/usr/lib/systemd/system/softu2f.service; static)
     Active: active (running) since Tue 2024-02-27 20:42:16 CET; 2min 28s ago
TriggeredBy: ● softu2f.socket
   Main PID: 324137 (system-daemon)
      Tasks: 34 (limit: 77022)
     Memory: 4.3M (peak: 6.2M)
        CPU: 16ms
     CGroup: /system.slice/softu2f.service
             └─324137 /usr/lib/softu2f/system-daemon

Feb 27 20:42:16 z800 systemd[1]: Started Software-only U2F Emulation Service.
Feb 27 20:42:16 z800 system-daemon[324137]: Starting rust-u2f system daemon
Feb 27 20:42:16 z800 system-daemon[324137]: LISTEN_PID = Ok("324137"); LISTEN_FDS = Ok("1")
Feb 27 20:42:16 z800 system-daemon[324137]: Running getpwuid_r for user #1000
Feb 27 20:42:16 z800 system-daemon[324137]: Loading user with uid 1000
Feb 27 20:42:16 z800 system-daemon[324137]: Creating UHID virtual U2F device
Feb 27 20:42:16 z800 system-daemon[324137]: Sending create device input event
systemctl --user status softu2f.service
● softu2f.service - Software-only U2F Emulation Service
     Loaded: loaded (/usr/lib/systemd/user/softu2f.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-02-27 20:42:16 CET; 1min 1s ago
   Main PID: 324108 (user-daemon)
      Tasks: 11 (limit: 77022)
     Memory: 3.7M (peak: 4.3M)
        CPU: 11ms
     CGroup<EMAIL_ADDRESS>             └─324108 /usr/lib/softu2f/user-daemon

Feb 27 20:42:16 z800 user-daemon[324108]: Sending create device request
Feb 27 20:42:16 z800 user-daemon[324108]: UHID device created with id: TODO
Feb 27 20:43:15 z800 user-daemon[324108]: Begin transaction
Feb 27 20:43:15 z800 user-daemon[324108]: Received payload
Feb 27 20:43:15 z800 user-daemon[324108]: RequestMessage::Init
Feb 27 20:43:15 z800 user-daemon[324108]: Get version request
Feb 27 20:43:15 z800 user-daemon[324108]: Begin transaction
Feb 27 20:43:15 z800 user-daemon[324108]: Received payload
Feb 27 20:43:15 z800 user-daemon[324108]: RequestMessage::EncapsulatedRequest
Feb 27 20:43:15 z800 user-daemon[324108]: Get version request
journalctl -u softu2f.service
# same than above
journalctl --user -u softu2f.service
Feb 27 20:42:16 z800 user-daemon[324108]: Starting rust-u2f user daemon
Feb 27 20:42:16 z800 user-daemon[324108]: Storing secrets in your keychain using the D-Bus Secret Service API
Feb 27 20:42:16 z800 user-daemon[324108]: add: epoll_fd=11, fd=13, ev=Event { key:<PHONE_NUMBER>3709551615, readable: false, writable: false }
Feb 27 20:42:16 z800 user-daemon[324108]: add: epoll_fd=11, fd=12, ev=Event { key:<PHONE_NUMBER>3709551615, readable: true, writable: false }
Feb 27 20:42:16 z800 user-daemon[324108]: new: epoll_fd=11, event_fd=12, timer_fd=Some(13)
Feb 27 20:42:16 z800 user-daemon[324108]: add: epoll_fd=11, fd=10, ev=Event { key: 0, readable: false, writable: true }
Feb 27 20:42:16 z800 user-daemon[324108]: Poller::wait(_, None)
Feb 27 20:42:16 z800 user-daemon[324108]: wait: epoll_fd=11, timeout=None
Feb 27 20:42:16 z800 user-daemon[324108]: modify: epoll_fd=11, fd=13, ev=Event { key:<PHONE_NUMBER>3709551615, readable: true, writable: false }
Feb 27 20:42:16 z800 user-daemon[324108]: new events: epoll_fd=11, res=1
Feb 27 20:42:16 z800 user-daemon[324108]: modify: epoll_fd=11, fd=12, ev=Event { key:<PHONE_NUMBER>3709551615, readable: true, writable: false }
Feb 27 20:42:16 z800 user-daemon[324108]: drop: epoll_fd=11, event_fd=12, timer_fd=Some(13)
Feb 27 20:42:16 z800 user-daemon[324108]: remove: epoll_fd=11, fd=13
Feb 27 20:42:16 z800 user-daemon[324108]: remove: epoll_fd=11, fd=12
Feb 27 20:42:16 z800 user-daemon[324108]: Sending create device request
Feb 27 20:42:16 z800 user-daemon[324108]: UHID device created with id: TODO
Feb 27 20:43:15 z800 user-daemon[324108]: Begin transaction
Feb 27 20:43:15 z800 user-daemon[324108]: Received payload
Feb 27 20:43:15 z800 user-daemon[324108]: RequestMessage::Init
Feb 27 20:43:15 z800 user-daemon[324108]: Get version request
Feb 27 20:43:15 z800 user-daemon[324108]: Begin transaction
Feb 27 20:43:15 z800 user-daemon[324108]: Received payload
Feb 27 20:43:15 z800 user-daemon[324108]: RequestMessage::EncapsulatedRequest
Feb 27 20:43:15 z800 user-daemon[324108]: Get version request

Ok, I found that it is because it requires FIDO2 and this implements U2F protocol.


Uploading excel files

Could you please help in explaining how to upload excel files

Ask on SO. It is the same as any other files.


core: add geometry file for global/local frames

This adds functionality to convert from local coordinates in meters to global latitude/longitude and back.
This will be used to easily create tests missions without hard-coded latitude/longitude coordinates.

Nice! We could also use that to expose mission items with local coordinates, couldn't we?

Good idea, that would make the interface easier.


fwrite randomly fails in Socket

Hi,
I'm trying to send 30 000 messages to Kafka and sometimes fwrite fails with message:
PHP Notice:  fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable in /test/vendor/nmred/kafka-php/src/Kafka/Socket.php on line 296

It's just a Notice, loop continues until $written reaches $buflen and all is written. But this notice is ugly and should be correctly handled. However, I don't understand why it happens "sometimes"...

@tolejarz  errno=11 is  socket report EAGAIN error that  on nonblock pipes TCP buffer  fully, this error should continue write

Fixed !