Mizselect widget with mizdb-inlines formsets

I have one issue in formset , widget MIZSelect is not  working in added form of formsets. And filter_by option is not working in formsets forms properly. How can I use custom fieldname with Search_lookup

Sorry for the confusion Mizselect widget working fine in mizinline formset . Filter option is working but small issue is there . when i select first field the dependent field should be set to none then only can choose right option from second field. here is the issue

search_lookup option is not working if model don't have 'name' field
raise FieldError(

django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: id, languageknownst, longuagename, staffdet
my code:
self.fields['language'] = forms.ModelChoiceField(
languages.objects.all(),
widget=MIZSelect(languages,
search_lookup= f"longuagename__icontains",
url='mizdb_autocomplete_view',can_remove=True),
)
Model:
class languages(models.Model):
longuagename = models.CharField(max_length=50,default='', unique = True  , verbose_name= 'Language')

Are you sure that Degreesubject is actually filtered by Degree? Can I see the code where you declare the formsets?
When the filter by element changes, the event handler drops all options of the select element that are not selected:
https://github.com/Actionb/mizdb-tomselect/blob/e930e98ccdf77295780dd075bcbcee8a776d032a/client/mizselect.js#L85C1-L99C4

Yes  Degreesubject is actually filtered by Degree.
Degree subjects are not same for both degrees  . For example Botany not in MCA degree
form.py
class QualificationForm(forms.ModelForm):
def init(self, *args, **kwargs):
super(QualificationForm, self).init(*args, **kwargs)
    self.fields['degree'] = forms.ModelChoiceField(
    queryset=degree.objects.all().order_by('name'),
    widget=MIZSelect(degree,
                     url='mizdb_autocomplete_view'
                     )

        )

    self.fields['degreesubject'] = forms.ModelChoiceField(
    queryset=degreesub.objects.all().order_by('name'),
    widget=MIZSelect(degreesub,
                     filter_by=("degree", "degree"),
                        url='mizdb_autocomplete_view'
                       )

        )

class Meta:
    model = staffqualification
    fields = '__all__'
    widgets = {

        "course_admn_date": DatePickerInput(),
        "course_completion_date": DatePickerInput(),
        "pass_date": DatePickerInput(),

    }

model.py
class degree(models.Model):
name = models.CharField(max_length=50,default='', verbose_name='Name of the Degree')
type = models.ForeignKey(degreetype, on_delete=models.CASCADE, null=True)
def __str__(self):
    return self.name
def save(self, *args, **kwargs):
    for field_name in ['name',]:
        val = getattr(self, field_name, False)
        if val:
            setattr(self, field_name, val.upper())
    super(degree, self).save(*args, **kwargs)
class Meta:
    unique_together = ('name', 'type',)

class degreesub(models.Model):
degree = models.ForeignKey(degree, on_delete=models.CASCADE, null=True)
name = models.CharField(max_length=150,default='',verbose_name='Degree Subject')
def __str__(self):
    return self.name

def save(self, *args, **kwargs):
    for field_name in ['name',]:
        val = getattr(self, field_name, False)
        if val:
            setattr(self, field_name, val.upper())
    super(degreesub, self).save(*args, **kwargs)
class Meta:
    unique_together = ('degree', 'name',)

Explanation
When changing the value of the filter by element, the options for currently or previously selected items are not removed from the list of options. So if you select BSC as degree and Botany as subject, and then switch degree to MCA, then Botany will still be shown in the list of options, because it is or was selected.
Reproducing the scenario in your screenshot
I assume you did this:

select MCA
select Computer Science
select BSC
remove Computer Science
open dropdown

The list of options now contains: Computer Science as first item (because it was previously selected) and Botany (because it satisfies the filter).
And proceeding:
6. select Botany
7. select MCA
The list of options now contains: Botany (selected item) and Computer Science (satisfies filter).
To summarize
This is working as expected and not a bug. But perhaps it could be made more clear why the option for the selected item persists in the list of options after changing the filter element.


Why just 32-bit xxHash?

Why just 32-bit xxHash? Aren't you concerned about collisions?
Initially I thought that this is just a default that can be changed by adding a custom EFCacheKeyProvider but XxHashUnsafe.ComputeHash is also used EFSqlCommandsProcessor.GetSqlCommandTableNames(string commandText), so also a custom EFSqlCommandsProcessor is required.

Aren't you concerned about collisions?

No. I'm not. This is a very fast and reliable hashing algo and I'm using it for years without any issues.


Adds error handling for authentication process

Changes handle errors that can be thrown if incorrect credentials are given, the account is locked out, or the second factor authentication fails. Some loops now print success or failure messages to the screen and quit() or loop code as is best for UI.

Hey @w4terd4wn, sorry it took me so long to come back to you.  I will be archiving this repo in a short while so I'd rather keep it in its current state. Thank you for your participation though :smiley:


[question] function as parameter

how can I verify that the function passed as a parameter to the SUT method is called?
I have tried the following approach but i get Used on a non-mocktail object error
class MockParameterFunction extends Mock {
    void call(int statusCode) {}
}

test('should call parameterFunction when it is not null', () async {
    const tParam = 400;
    mockParameterFunction = MockParameterFunction();
    when(() => mockClass.method(any())).thenAnswer(
        (_) async => returnValue,
    );
    expect(
        () => sut.get('', parameterFunction: mockParameterFunction),
        throwsA(isA<Exception>()),
    );
    verify(() => mockErrorCallback(tParam));
});

Hi @Chaitanyabsprip 👋
Thanks for opening an issue!
This is working as expected because you are mocking the class and stubbing the method which means that the function being passed as a parameter won't actually be called. You generally should only mock the dependencies of the thing you're testing. In this case mockClass should be real and you can inject a mock parameter function into the real instance to make sure it is being invoked.
If you're still having trouble, please provide a link to a minimal reproduction sample so that we're able to reproduce the issue locally, thanks!
Hope that helps 👍


CompressionFlags.const_scale true for non const values (palu c01attacks3s)

Saving fighter/palutena/motion/body/c00/c01attacks3s.nuanmb without any modifications using ssbh_data results in flickering artifacts in Ryujinx and in game. The only notable difference is in the CompressionFlags. The current implementation is assuming that this flag is true for tracks with scale values that do not change and false otherwise. This doesn't seem to match up with in game.

[ ] test the vanilla anim with just flag edits (hex edit)
[ ] figure out what "const scale" actually controls
[ ] update ssbh_data implementation and associated tests

The easiest test case are a00wait1.nuanmb, a00wait2.nuanmb, and a00wait3.nuanmb for Kirby. These anims have only one track with "const scale" set to true. Hex editing the in game anims to set the flag to false causes reproducible animation glitches in game.

This may indicate whether the scale is used since stage/yoshi_cartboard/battle/motion/bg2_set/bg2_set_00.nuanmb only has scale and sets this flag for the appropriate tracks. This would explain why the rotation values are reading incorrect data. The unit tests for ssbh_data should be adjusted to hopefully prevent this from happening again.


update install instructions for Inkscape ≥1

The instructions on README.md are incorrect for Inkscape after 0.9. Inkscape 1+ doesn't use ~/.config/inkscape/ -- adding stuff there will have no effect on anything.
On MacOS Big Sur, I was just able to install symbol sets from this set by doing the following:

download or clone this repo to some location. git clone https://github.com/PanderMusubi/inkscape-open-symbols/issues/new
Close Inkscape if open
Copy the symbol set you want to add (I symlinked):

cd /Applications/Inkscape.app/Contents/Resources/share/inkscape/symbols
cp /path/to/inkscape-open-symbols/path/to/symbol-set.svg ./
# example copy: cp ~/repos/inkscape-open-symbols/font-awesome/solid/font-awesome-solid-set.svg ./

# this symlinks --> # ln -s /path/to/inkscape-open-symbols/path/to/symbol-set.svg

# of course, this can also be done without the `cd`, and in other ways, too.

# the sane computer operator doesn't put spaces in paths, so newcomers to terminal,
# watch out for folders with spaces in their names, and use tab-completion to help save time

Launch Inkscape, add symbols as usual.

I have no idea what the correct procedure is on other operating systems.  Hoping this helps someone!

Inkscape still uses ~/.config/inkscape for linux repo, appimage and most snap installs (Ubuntu, Fedora and Arch at least). Flatpak (linux) and snap (when it doesn't have access to ~/.config) is a bit more containerized so it'd be a bit harder to find the config folder (but the system folder is similarly a bit more hidden in those cases too).
For Mac, the new location should be ~/Library/Application Support/org.inkscape.Inkscape/config/inkscape/ (I'm not a mac user, but you can check by running inkscape --user-data-directory or viewing the System tab in the Preferences dialog. It looks like the path you've given is the "system data directory" inkscape --system-data-directory, which won't be kept between installs).

This makes more sense than the location I posted, which was directly into the app's bundle.  Thanks for this!  (I'm not the maintainer, just a user, but still useful)

Any suggestions on where to put the symbol svg file in Windows 10? I have tried both of the following and neither are working
-user/me/AppData/roaming/inkscape/symbols/<file.svg>
-Program files/inkscape/share/symbols/<file.svg>

Any suggestions on where to put the symbol svg file in Windows 10? I have tried both of the following and neither are working -user/me/AppData/roaming/inkscape/symbols/<file.svg> -Program files/inkscape/share/symbols/<file.svg>

What does it tell you in Edit > Preferences > System?

Hello. Under Edit>Preferences>System the path to symbols is
C:\Users\me\AppData\Roaming\inkscape\symbols
I was able to Iconic symbols to load properly after copying it to that
location. I am still having problem with the symbols contained in the file
named Electrical_symbols_library.svg
I can open that file in inkscape and copy the individual symbols into
another document, which is what I ended up doing. But when I select
Electrical_symbols_library.svg on the Symbols Set dropdown I get the image
of a magnifying glass and it says "No symbols found".
Thanks again!
On Sat, Apr 9, 2022 at 5:59 AM Moini @.***> wrote:

Any suggestions on where to put the symbol svg file in Windows 10? I have
tried both of the following and neither are working
-user/me/AppData/roaming/inkscape/symbols/<file.svg> -Program
files/inkscape/share/symbols/<file.svg>
What does it tell you in Edit > Preferences > System?
—
Reply to this email directly, view it on GitHub
https://github.com/PanderMusubi/inkscape-open-symbols/issues/130#issuecomment-1094000718,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMV36OZEYI2NWA5IIHJJHRLVEF5JJANCNFSM5B66EO2A
.
You are receiving this because you commented.Message ID:
@.***>

--
Keir Briscoe
@.***

@VelvetLounger So, that is the correct directory. I don't know why the Electrical Symbols file doesn't work - this could either be a bug in Inkscape, or bad formatting of the file. Next step to investigate would be to figure out what the difference is between those and the symbol sets that work.

Yeah. I honestly don't use inkscape too much. As I was able to use my workaround I think Ill leave it alone for now. Next time I need electrical symbols Ill make an attempt to figure it out.
Thanks for your feedback!


Testing of Resume Matcher

Hi All!
I need help testing the Resume Matcher in different environments to understand where people face problems and difficulty following steps.
We have already laid out precise steps in the Readme file; however, different versions of Python conflict with libraries like Cohere, Qdrant, etc.
I need some help with testing, documenting, and improving steps for installation in the following platforms:

Windows 10, 11.
MacOS
Linux
Docker

If you have any suggestions and updates, please comment, and after testing, please reply to this issue as well. Feel free to join our Discord as well for more discussions.
Thanks,
Saurabh

Hello! I just went through the install process and getting errors about missing cohere and qdrant modules.  I resolved after pip install qdrant_client and pip install cohere and working.
  File "C:\Users\brend\Desktop\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 5, in <module>
    import cohere
ModuleNotFoundError: No module named 'cohere'

File "C:\Users\brend\Desktop\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 7, in <module>
    from qdrant_client import QdrantClient, models
ModuleNotFoundError: No module named 'qdrant_client'

Could add these two modules to the requirements.txt ?
I'm using Windows 10 Python 3.11.5


Add a setting to disable preview / view live functionality

Problem
I want to run Wagtail as a headless CMS. In my example, I only want to use Wagtail for a mobile app. This means I don't have a frontend to use the preview functionality for pages.
Proposed solution
Introduce a new setting WAGTAIL_HEADLESS_DISABLE_PREVIEW that would disable the Preview / View live buttons for pages when set to True.
For now, there are alternatives like serving a page with some content saying Preview is not supported but more user-friendly would be to not show the buttons at all. Another option is to override some admin templates but this is also not ideal.

I would prefer to use the name WAGTAILADMIN_DISABLE_PREVIEW for consistency with other wagtail admin settings.

I'd be keen to look at alternatives to adding a new setting - if Wagtail isn't catering for a particular use-case then we should improve the design of Wagtail to accommodate it, not just add a new setting and conditional on top and call it done.
As @zerolab pointed out on Slack, it would make logical sense that setting preview_modes to an empty list should disable previewing - it looks like it's only failing because of the template-level logic. My preference would be to fix that behaviour.

I'd be keen to look at alternatives to adding a new setting - if Wagtail isn't catering for a particular use-case then we should improve the design of Wagtail to accommodate it, not just add a new setting and conditional on top and call it done.
As @zerolab pointed out on Slack, it would make logical sense that setting preview_modes to an empty list should disable previewing - it looks like it's only failing because of the template-level logic. My preference would be to fix that behaviour.

Fixing the behavior of setting preview_modes to an empty list also makes sense. It then should not display a preview button at all. This is the first thing I tried before even asking the question on slack.

Fixed in #5781

Hi there,
I am currently using Wagtail nightly 2.9.dev20200418 as I wanted to use the "disable preview" feature.
The live button is properly hidden, but I ran into the following problem.
Let's say I define the model SomePage for which I disable the preview.
class SomePage(Page):
    preview_modes = []

I create a page from this model and save it has a draft. When I go to the admin home page and click on the button "DRAFT" of the row corresponding to the created page I get the following error.
Internal Server Error: /admin/pages/4/view_draft/
Traceback (most recent call last):
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/wagtail/admin/urls/__init__.py", line 109, in wrapper
    return view_func(request, *args, **kwargs)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/wagtail/admin/auth.py", line 168, in decorated_view
    return view_func(request, *args, **kwargs)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/wagtail/admin/views/pages.py", line 610, in view_draft
    return page.make_preview_request(request, page.default_preview_mode)
  File "/home/thibaud/workspace/bugs/draft-btn/env/lib/python3.7/site-packages/wagtail/core/models.py", line 1398, in default_preview_mode
    return self.preview_modes[0][0]
IndexError: list index out of range

I also get this error when I click the "VIEW DRAFT" button of the page on the list page view.
It would be nice to hide these buttons for a page when preview_modes is set to an empty list.


Vue Missing Copyright and some license info

Type: Missing
Summary:
Vue Missing Copyright and some license info
Details:
Vue Missing Copyright and some license info
Resolution:
Added Copyright and license info to vue npm
Affected definitions:

vue 3.0.0-alpha.5

Closing in-favor of #3607


Uriel Asio CreateMultiplexedStream

Hi Mark, I'm working on a project you helped to develop a few years ago. Currently we're using an Asio Focusrite which multiplexes two inputs with .wav files, I'm having issues with Memory Out Exception, I also would like to know if there's a more efficient way of creating a Multiplexed Stream given that I'm using 10 minutes files, it's kinda slow. What would you recommend? Thanks

Presumably you're loading the whole files into memory. You can multiplex on the fly, but for the best results in ASIO, you'd probably want to do so with custom code that prepares audio directly for the individual channel buffers, unlike the NAudio standard produced by the MultiplexingSampleProvider which is interleaved samples


Audio as local input

With audio as local input we could explore using wavenets for audio processing, can they be used to simulate reverbs, non-linear time-varying signal processing (chorus/flanger), etc?
Furthermore, I think, if we have a built-in sample-rate converter, we could probably train a network on up-sampling a low 8khz or 16khz sample to 44,1khz and estimate what kind of frequencies are missing, this could probably be done without a very long receptive field, perhaps it can also be done to create a bit-depth estimation (converting the bit-depth from 8-bit to 16-bit).
FlipBoard uses deep networks to upscale images, it would make sense that we could do the same for audio, that way we can stick to low sample-rates and bitdepths for generation and attach a cheaper upscaling network to get better quality sound.

I am also interested in using other timeseries (e.g. audio features) as local input. It seems like we only have to modify the operation in https://github.com/ibab/tensorflow-wavenet/blob/master/wavenet/model.py#L210 to incorporate our second time-series 'y' (as they name it in the paper on page 5).


python311Packages.clarabel: 0.7.0 -> 0.7.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.clarabel is: Conic Interior Point Solver
meta.homepage for python311Packages.clarabel is: https://github.com/oxfordcontrol/Clarabel.rs
meta.changelog for python311Packages.clarabel is: https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v0.7.1/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.7.1 with grep in /nix/store/1k1rrsgg92vr6vmczirs80mf0h8kyfyp-python3.11-clarabel-0.7.1
found 0.7.1 in filename of file in /nix/store/1k1rrsgg92vr6vmczirs80mf0h8kyfyp-python3.11-clarabel-0.7.1

Rebuild report (if merged into master) (click to expand)

7 total rebuild path(s)

7 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.bambi
python311Packages.blackjax
python311Packages.clarabel
python311Packages.cvxpy
python311Packages.jaxopt
python311Packages.qpsolvers
python311Packages.qutip

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1k1rrsgg92vr6vmczirs80mf0h8kyfyp-python3.11-clarabel-0.7.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.clarabel https://github.com/r-ryantm/nixpkgs/archive/da0f3e5ddc425406fe3e680842345c632769d220.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/da0f3e5ddc425406fe3e680842345c632769d220#python311Packages.clarabel

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1k1rrsgg92vr6vmczirs80mf0h8kyfyp-python3.11-clarabel-0.7.1
ls -la /nix/store/1k1rrsgg92vr6vmczirs80mf0h8kyfyp-python3.11-clarabel-0.7.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @a-n-n-a-l-e-e for testing.

@NixOS/nixpkgs-merge-bot merge


Made test independent of module path.

By specifying the path, instead of the module name, the pester test can run without having the module installed into the global/user module path.

I need to think about this. It'd be great as a switch. I'd prefer to run it against my module path because it can uncover issues as it would be on a target users machine.

Another option is to remove the Import-Module statement entirely. The user is then responsible for importing the module before running Invoke-Pester, which is probably what they will do in any case. Another advantage of removing the Import-Module statement from this, and other .Tests.ps1 files, is that tests will execute faster. In my case, I wanted to run Invoke-Pester without importing the module, without putting the module in my global or user module path, and without updating my $Env:PSModulePath variable. The $PSScriptRoot solution made that possible.

The Pester tests have been updated (#202) in the meantime taking care off this issue. So IMHO this PR can be closed as solved.


Drag in mobile with Box2D plugin

Hi guys!
How you can drag with Box2d plugin on mobile?
In the examples I only see the following function
this.game.physics.box2d.mouseDragStart

but it only works with the mouse

Ohhh excuse me, the browser cache has saved the Javascript files, but it works with
this.game.physics.box2d.mouseDragStart(this.game.input.activePointer);
Thanks!


re-enable preloaded testnet conversion rates

Resolves https://github.com/MetaMask/metamask-extension/issues/14569
We recently changed settings for preloaded testnets (Rinkeby, Ropsten, Goerli, Kovan) to prefix their ticker symbols with the testnet name. This led to our no longer fetching conversion rates for these testnets. This re-enables these conversion rates for the enumerated preloaded testnets.

@adonesky1 I cannot approve the PR as I believe I don't have access to this repo

@mcmire I was not sure how to test it neither. It's not exactly what you are asking but at Metamask level, I implemented an e2e test for verifying the functionality
https://github.com/MetaMask/metamask-extension/pull/14649


Fix rank SVs with multiple families

Closes #454.

PR checklist

[ ] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[ ] Make sure your code lints (nf-core pipelines lint).
[ ] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[ ] Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

Ready with updated genmod nf-core modules.


Release crates

Codecov Report

Merging #52 (f791e43) into main (620841e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   85.55%   85.55%
=======================================
  Files          16       16
  Lines        1571     1571
=======================================
  Hits         1344     1344
  Misses        227      227

Continue to review full report at Codecov.

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


Change location of CDN should be warned :)

Recently the CDN location of js and css was changed. It was just removed the /js and /css subpaths but the resources location changed.
I think it would be safer for all users not change this so often

CDNJS owns their own repo, and makes their own changes. We don't have much ability to affect their changes, but will try to scrutinize their changes affecting toastr moving toward.


Jitsi Prosody install has cert issues

Describe the bug
Jitsi appears to try to replace metronome with prosody, but in my case the prosody install had some kind of certificate issue and wouldn't accept connections.  I ended up disabling prosody and restarting metronome, but I think that might have broken Jitsi?
Context

Hardware: VPS
YunoHost version: <IP_ADDRESS>
I have access to my server: SSH/Webmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Using, or trying to install package version/branch: Jitsi 2.0.8319~ynh1
If upgrading, current package version: N/A

Steps to reproduce

If you performed a command from the CLI, the command itself is enough. For example:sudo yunohost app install jitsi

Expected behavior
Presumably prosody should take over for metronome?  I don't know what the "expected behavior" was, I wasn't expecting a prosody install at all
Logs
https://paste.yunohost.org/raw/ifodukipas
journalctl:

Jul 06 18:02:00 mydomain.tld prosody[20226]: portmanager: Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281                                                                                Jul 06 18:02:00 mydomain.tld prosody[20226]: portmanager: Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281

Snippet from prosody.log:
Jul 07 01:14:20 s2sin561c39a279d0       info    Incoming s2s stream domain.tld->mydomain2.tld closed: This host does not serve mydomain2.tld                                                                                Jul 07 01:14:23 s2sin561c397f4040       info    Incoming s2s stream domain.tld->mydomain2.tld closed: This host does not serve mydomain2.tld

Jitsi require prosody
Prosody and Metronome use the same TCP port so the can't work together.
If you disable prosody, jitsi won't work.
At the first install of prosody, as there is no domain declared, there is no certificate to be used.
But later during the install, prosody is configured, certificate is generated and service prosody is restarted


The mmcv version matches the mmdet

I can't install mmcv-full, mmcv1.0.5 is installed, which version of mmdet should I choose？
Unable to install mmcv-full see in #3584 , instead mmcv is able to be installed.
If you have further solution about mmcv-full, please tell me.
Thank you!

For the newest mmdet, please keep installing mmcv-full=1.0.5. Sorry for the inconvenience.


1.4 enhancement

Coverage decreased (-0.03%) to 86.148% when pulling acee204b522afeeec441b3db49e3748c354034d8 on ZhangH795:1.4_Enhancement into 7415b06f99335c3f5c1c9b31e28a9c22bd24b692 on CS2103AUG2017-W09-B3:master.


Fix naming on MouseEventArgs

Small fix to the events PR that fixes a bad naming of MouseEventArgs

@tznind I did the change on purpose to MouseEventEventArgs because it's related with the MouseEvent class, for the same reason why there is a MouseFlagsEventArgs related with MouseFlags enum. I thought it was more appropriate. Sorry for not warning and avoided this incident.

Ok I will close this, although it seems quite confusing naming.  I do see how there is a MouseEvent type seperate (and contained within) MouseEventEventArgs class.  Maybe we can tidy this up later as a breaking change in v2 to be more elegant.

Ok I will close this, although it seems quite confusing naming. I do see how there is a MouseEvent type seperate (and contained within) MouseEventEventArgs class.

Your change was already merged in the #2406, so this can be closed.

Maybe we can tidy this up later as a breaking change in v2 to be more elegant.

You are right. Sorry for that and thanks for your attention.


[DO NOT MERGE] feat(form): Add basic form generation

Embeds a dynamic form the is generated based on a template's model for Contract variables and Test Execution fields.
The forms are bound to the model in the Model editor and will update in sync with the model.
Adds a Tab to switch between the Form and JSON view for inputs.
Changes to the JSON values, either through a template trigger or manual edit will update the values in the form.
Adds a dropdown selector for the Request field on the Test Execution pane.

Closing this PR, outdated, and most of that work should now happen on template-studio-v2


Define CRON as environment variable

Is your feature request related to a problem? Please describe.
Not a problem, just a nice to have.
Describe the solution you'd like
To be able to define an environment variable such as CRON which takes a string so that initial creation doesn't require manually setting the cron in the admin panel
Additional context
N/A

Thanks for the suggestion, I'll be going a different way with scheduling tests to support multiple tests.


Finish up cache-hitting fetch functions.

Also includes a safer ghost generating function, and increased naming consistency in Statements.hs

lgtm


[HOLD] [Travel] Create Trip Details for newDot

HELD on https://github.com/Expensify/Expensify/issues/416688
Details

Add a new Trip Details page for displaying information about a trip room and itinerary.

Press on the trip summary fields and confirm that you see the correct Trip Details page (for now this is not using the figma version due to there not being backends that would send the proper data, for the current design please refer to the screenshots below).

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

Offline tests

QA Steps

[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 either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[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 UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or 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 and/or tagged @Expensify/design 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

MacOS: Chrome / Safari
Hotel:

Flight:

I'll be fixing this today, I'll cc you after it's done.

And please let @Expensify/design know when this is ready for more testing too, thanks!

@shubham1206agra due to the lack of backends and the deadline getting very close we've decided to make a fallback-simplified version, as per this conversation.
PR ready to be checked, merged with latest main.

Yes, I'll supply them here in a moment.

@shubham1206agra I've added screenshots for the details page for hotels and flight.

cc @Expensify/design for any feedback too... some of this stuff feels a little "new" compared to the rest of the design system, as we're balancing the styles we used in the preview card vs having styles that appear in a read-only fashion, almost like a read-only push-row.
Is there any way to test this out myself too? How can I generate these trips locally?

Hmm yeah I see what you mean. I guess I'm kind of wondering why we don't just follow more of our established patterns?
For example:

Why does the header use NewKansas instead of our regular "Page Header" text style?
Why not use styles that are more exactly like our read-only push rows for the details? (Looks like the text in these is bold?)

Not sure there is anything terribly wrong with what I'm seeing in the screenshots, but some of the styles do feel like a bit of a departure (without any meaningful reason that I can see).

I agree with the header, it's clearly incorrect and I'll change its styling to fit our other designs. However when it comes to the read-only details, this is exactly how it was designed in figma.

However when it comes to the read-only details, this is exactly how it was designed in figma.

Totally, we're just discussing that maybe what we designed isn't the best solution for the sake of consistency. Let me whip up some alternatives quickly.

Totally, we're just discussing that maybe what we designed isn't the best solution for the sake of consistency.

💯. Sorry if my feedback came across as something wrong with the PR—I was more so just calling those things out to make sure we consider our other design patterns!

@cdOut do you have any examples of how we handle flights with multiple legs?

No no, that one's on me, I must've also came off across wrong. Please let me know once you guys have came up with a different design so I can implement it!
In the meantime I've reworked the code since it forced a different styling for the header whilst using an icon for it, the styles for the text there look exactly as in the designs.
@shawnborton I do not have any examples and I'm not sure if we've considered that one, I was basing the changes entirely on the figma files. @shubham1206agra Could you generate a flight with multiple legs so we could see what data we get for it and how it looks in the TripDetailsView?

@cdOut I'm working on suggesting some design updates to this, thanks for your patience! In the meantime, do you have examples of what we would show for a hotel, rental car, and train?

@shawnborton I don't have the access to the more detailed info that we'll receive here from the backend, I'd have to ask @stitesExpensify what kinda info we'd be sending through here for hotels, cars and train rides.
I only have access to the very basic info we're currently getting from the backend, let me know if you still want to see those or should we supply the more detailed ones.

Started a conversation here

@shubham1206agra not yet, Ted had sent Shawn all the possible values we can send over from the backend and he's still working on the final mocks for this page, after which we'll also have to wait for the backend to implement sending those selected values through to Reservation.
After I get the final design mocks from Shawn I'll let you know and add those here for you to check while we wait for the backend to close it up.

@twisterdotcom any update on your end for this one? Would love to have "final" mocks to share so we can get this one over the finish line. Thanks!

I started trying to figure this out for say Flight. In our test data, (also here) we have a whole PNR. Within that PNR, we actually have 3 legs:
DEN > YVR on 2024-04-19
YVR > SIN on 2024-04-20
SIN > SFO on 2024-04-30
I'm not actually too sure how we'll be splitting these up now we're trying to split up individually charged tickets @stitesExpensify? But I've done the data just for DEN > YVR in Figma here: https://www.figma.com/design/rOyUSHbLLyp64emz6WeoPW/Travel?node-id=1043-15037&t=31fIWT97dRBsu4yZ-0
Is this the kind of thing you need anyway?

I can do this for the rest of them.

Oh dang, that is super helpful and doing that for all of them would be very appreciated.
I was thinking of the step before that though, where I just want your confirmation on what kind of information we should show on these screens first, and then we can map it all out to the exact data names.

Ah nice, okay, I can do a few tables then to start and you maybe figure out what a better design might be for each of these. As you see, I added another separator in the flight details to fit the duration - plane type - flight class and maybe that's not the best way to display it.
One Q though reviewing the flight data which is the hardest to consider I think, but perhaps will also be relevant to Rail eventually given it too can have "legs", how are we determining what to show here?

I think we should be splitting it into "legs" which the payload has (this one has two, one for DEN > SIN (via YVR) and one for SIN > DEN (via SFO)), in which case, this should show airPnr.legs[0].flights[0].origin and airPnr.legs[0].flights[last].destination (however we calculate "last"). In which case too, we will need a way of showing layovers and likely layover time, so here's ALL the useful information but, it's a lot even for a flight with just one layover to consider fitting into a single screen.
Required:

JSON Path
Description
Comment

airPnr.legs[0].flights[0].origin
Origin Airport Code (DEN)

additionalMetadata.airportInfo[2].cityName
Origin City Name (Denver)

airPnr.legs[0].flights[0].destination
Layover Airport Code (YVR)

airPnr.legs[0].flights[0].arrivalDateTime.iso8601 to airPnr.legs[0].flights[1].departureDateTime.iso8601
Layover Time (9h 56m)

airPnr.legs[0].flights[airPnr.legs[0].flights.length - 1].destination
Destination Airport Code (SIN)

additionalMetadata.airportInfo[1].cityName
Destination City Name (Singapore)

travelers[0].user.name.family1 + family2
Passenger Name (Brandon Stites)

travelers[0].user.email
Passenger Email<EMAIL_ADDRESS>

airPnr.legs[0].flights[0].operating.airlineCode + num
Flight 1 Number (UA2432)

airPnr.legs[0].flights[0].cabin
Flight 1 Cabin Class (Economy)

airPnr.legs[0].flights[0].departureDateTime.iso8601
Flight 1 Departure Date and Time (Apr 19, 12:03 PM)

airPnr.legs[0].flights[0].departureGate.terminal
Flight 1 Departure Terminal (Terminal B)

airPnr.legs[0].flights[0].vendorConfirmationNumber
Flight 1 Record Locator (ADJXCZ)

airPnr.travelerInfos[0].booking.seats[0].number
Flight 1 Seat Number (7F)

airPnr.legs[0].flights[0].duration.iso8601
Flight 1 Duration (PT3H6M)

airPnr.legs[0].flights[1].cabin
Flight 2 Cabin Class (Business)

airPnr.legs[0].flights[1].arrivalDateTime.iso8601
Flight 2 Arrival Date and Time (Apr 21, 7:10 AM)

additionalMetadata.airportInfo[1].airportName
Flight 2 Arrival Airport Name (Singapore Changi Airport)

airPnr.legs[0].flights[1].arrivalGate.terminal
Flight 2 Arrival Terminal (Terminal 2)

airPnr.legs[0].flights[1].vendorConfirmationNumber
Flight 2 Record Locator (4YGEMD)

airPnr.travelerInfos[0].booking.seats[1].number
Flight 2 Seat Number (3G)

airPnr.legs[0].flights[1].duration.iso8601
Flight 2 Duration (PT16H5M)

Optional if design likes it:

JSON Path
Description
Comment

additionalMetadata.airportInfo[0].cityName
Layover City Name (Vancouver)
We really can get away with just showing YVR and the layover time I think

airPnr.legs[0].flights[0].equipment.name
Flight 1 Aircraft Type (Airbus A319)

airPnr.legs[0].flights[0].arrivalDateTime.iso8601
Flight 1 Arrival Date and Time (Apr 19, 2:09 PM)

additionalMetadata.airportInfo[0].airportName
Flight 1 Arrival Airport Name (Vancouver International Airport)

airPnr.legs[0].flights[0].arrivalGate.terminal
Flight 1 Arrival Terminal (Main Terminal)
Perhaps these are useful if you need to know if you're changing Terminal?

airPnr.legs[0].flights[1].departureGate.terminal
Flight 2 Departure Terminal (Main Terminal)

airPnr.legs[0].flights[0].co2EmissionDetail.emissionValue
Flight 1 Carbon Emission (0.26708 tonnes)
Carbon stuff people seem to vibe off, so could be a nice design flare?

airPnr.legs[0].flights[1].operating.airlineCode + num
Flight 2 Number (AC19)

airPnr.legs[0].flights[1].equipment.name
Flight 2 Aircraft Type (Boeing 787-9)

airPnr.legs[0].flights[1].departureDateTime.iso8601
Flight 2 Departure Date and Time (Apr 20, 12:05 AM)
Again, maybe we don't need this if we just show layover time?

airPnr.legs[0].flights[1].co2EmissionDetail.emissionValue
Flight 2 Carbon Emission (1.4545 tonnes)

airPnr.legs[0].fareOffers[0].baggagePolicy.checkedIn[0].description
Baggage Policy (Checked Bags: 2 checked bags, 70 lbs each)

airPnr.legs[0].fareOffers[0].baggagePolicy.carryOn[0].description
Baggage Policy (Carry-On: 1 carry-on bag)

One Q though reviewing the flight data which is the hardest to consider I think, but perhaps will also be relevant to Rail eventually given it too can have "legs", how are we determining what to show here?

I had previously asked about this and my understanding was that we'd show the separate legs as part of the summary in the trip room, so that when you click into each one of them, you only need the specific details for that leg. Let me know if that makes sense and if that's your understanding as well as for how we should display/handle this.

my understanding was that we'd show the separate legs as part of the summary in the trip room, so that when you click into each one of them, you only need the specific details for that leg

This sounds good to me, no need for us to say "non-stop" anywhere, we can just list it all. Do you think it's worth ever highlighting what the layover time is, given we'll just always show them as separate rows?
Also, should we ever try to differentiate the journeys. Let's say you don't book a hotel as a separator, the only differentiator would be the dates, which I suppose is fine?
What are your thoughts otherwise on including the other things: Aircraft Type, Carbon Emission, Checked Bags, Carry-On

Do you think it's worth ever highlighting what the layover time is, given we'll just always show them as separate rows?

That's a great point, I wonder if we should reference the other legs within the detailed view so it's more clear that the flights are connected?

Also, should we ever try to differentiate the journeys. Let's say you don't book a hotel as a separator, the only differentiator would be the dates, which I suppose is fine?

I'm not quite following, can you restate that one?

What are your thoughts otherwise on including the other things: Aircraft Type, Carbon Emission, Checked Bags, Carry-On

Super down with that.

I'm not quite following, can you restate that one?

I'm saying here, in the data we have for the legs, they are separated in the payload into:
Journey 1:
DEN > YVR
YVR > SIN
Journey 2:
SIN > SFO
SFO > DEN
But I'm saying, if there's no hotel in between, we would just see:
DEN > YVR
YVR > SIN
SIN > SFO
SFO > DEN
And if all we have are small dates written in grey, it might not be clear what the journeys are and the legs within those journeys without a separator. Kind of related to your thought that:

if we should reference the other legs within the detailed view so it's more clear that the flights are connected?

I wonder if we could have something at the bottom of the view that's something like:

🏃 Only a 1h 3m layover until your next flight to SIN. (Remember to change terminals!)

OR

🚕 You've arrived! Why not get an Uber to your hotel.

Either than, or we just show very simple informative language:

1h 3m layover until UA1234 to SIN

OR

Singapore is your final destination for this leg

That all makes sense, but just to clarify, are you saying that within the context of the trip room itself, or are you saying we should show all of that on the details view?
Also, do you have any good screenshots of what Spotnana shows for all of these scenarios? I wonder if we can use that as inspiration as well.

I actually think what we have in the trip room header is fine by itself. I think let's just focus on the RHP for the leg details and see what we can get in there and make that look like.

Okay looks like we landed here:

Where we add the layover information at the top of the details view if the flight had a layover before it, and we're using some HRs to better separate some of the sections within the page as well.

cc: @twisterdotcom @stitesExpensify
Now that we've settled on a design, could someone start working on sending all the additional info required for those pages through to the frontend side?
Please keep me updated on the progress. In the meantime, I'll incorporate any changes made since the previous designs using mock data. Thanks!

What's the latest on this one?

What's the latest on this one?

As per the comment left by me above, I'm still waiting on the data from backend - without it I cannot push this PR further. I'll bump on the latest thread about this one on slack and hopefully we'll get it moving.

Looks like the linked issue was closed/merged, does that mean we should pick this one back up?

We are currently focusing fully on OldDot travel, so this is still on hold for now

This will be worked on by SWM in a new PR once this is a priority again


Orientation of some SMTs are not in proper orientation

Some components seems to be not oriented properly.

Of course, using the alignment tool and based on the pink dot, we can figure something

I'm not sure why the parts come in that way, it must be an issue with the part origins.
At the very bottom of the Readme I have a photo showing the correct orientation

That's what i'm gonna do. Thanks man


Remove footnotes and footnote lists

They were replaced them with DPUB-ARIA (as provisionally expected to become).

thanks!


managed cluster appsub secret and cm sync

Signed-off-by: Mike Ng<EMAIL_ADDRESS>For AppSubStatusCRD2 branch only

Updated with https://github.com/open-cluster-management/multicloud-operators-subscription/commit/49dd3646ba7940e9b7d21965b2a78e30e1cb0255
Fixed a bug where it updated the in memory secret and configmap first.


New App: Traffic

This PR revives the functionality of a previously high-usage app - @LukiLeu's live traffic. As you'll recall, the cost of serving Google's Maps API proved to be unsustainable and it was subsequently removed from the app library after receiving hundreds of installs. This alternative app provides a familiar display with two new sources of data, and users will need to bring their own API keys in order to keep license usage low.

MapQuest: provides real time directions for driving, cycling and walking, influenced by their traffic data
OpenRouteService: provides "ideal" travel times that do not reflect traffic for a broader array of travel modes: e-bikes, wheelchairs, freight and hiking.

Also, since I'm unable to test the location selection tool from my local Pixlet emulator, I would very much appreciate some extra scrutiny from the Tidbyt team to ensure everything works as expected!
Finally, given the sensitivity around this app and the history around its predecessor, I am happy to discuss or revise as you/the community see fit.
Key Features

Like the previous app, we use schema.Location to set an Origin and Destination with optional labels. If the user doesn't provide labels, we will reverse-query the coordinates to get the nearest address:

I found better performance with ORS than MapQuest for reverse address search from GPS coordinates, so although both are available and implemented, I default to ORS if the user has provided a key for both regardless of the transportation mode selected. Additionally, when the results come back I compare the elements of the label (street address, city, state, country) and only display values that differ. Notice the example above displays NY and CT but not USA.
The API employed by each transportation mode is noted in the selection so users know which key(s) they need to use the app:

One key enhancement over the previous app is relative-duration color-coding. MapQuest's API provides both a "real time" and an "ideal" travel time when querying for directions, allowing us to calculate how much longer the current travel prediction is than it would be in a vacuum. We use this information to display times in green/yellow/red based on how much longer your trip may take - this proves to be a great way to monitor peak commute times and helps Tidbyt owners decide to leave earlier/later to save time! (see above vs. below for heavy vs. moderate traffic)
We also are afforded a number of route configurations with MapQuest: we can tell the API that we prefer non-toll roads, or to avoid limited access roads like highways. These will all serve to make our trip duration more accurate if users know their commute well:

Since we don't receive traffic information from ORS, we'll simply display times for those transportation methods in white:

It's worth noting that this app is written to support the extension back to Google Maps if user demand justifies its inclusion, though with 15,000 monthly requests on the free MapQuest plan and having observed reasonable accuracy, I don't personally see the need to migrate!
The one major downside to MapQuest/ORS - no public transportation support! Though with the numerous train schedule apps on the platform already, I don't see this as a blocker to adoption.
API Key Acquisition
I included the registration URL in the description of the schema, though I'd love to hear if there is a better way to offer instructions to app users. In both cases it is easy (and free!) to register for API keys:
MapQuest Profile, Manage Keys

OpenRouteService Developer Dashboard

In my testing I never came close to my personal API limits:
MapQuest API Limits
15,000 direction requests per month (~500/day, or one request every 2.8 minutes). We cache directions for 5 minutes, so users can easily have two screens running 24 hours per day and won't see an error until the 26th day of the month on the free plan. This is something of a balancing act since we want the information to be timely, though I'd imagine most Tidbyt users wouldn't need this screen to be on 24 hours/day! Heavy users can always pay MapQuest for more credits or register multiple API keys if they need more data.
ORS API Limits
2,000 direction requests daily (we cache for 5 minutes, so feasibly a Tidbyt user could use this screen to show 6 different ORS routes), and 1,000 reverse geocode requests (we cache coordinate pairs for 24 hours - directions will run out long before these do, which is another good reason to prioritize ORS for reverse search when the user has supplied both keys).
Thanks for reading, happy to discuss and answer questions!

This is great! Was a Waze option considered?
I know that Home Assistant has a great component for drive times using Waze.

This is great! Was a Waze option considered?

I didn't look at Waze specifically, but it certainly could be implemented! The code is written to be modular so it is amenable to new services.


find the caller of a tested function

Hi all,
with coverage and the tests, we can know if we test a code or not.
now, I would like to know the callers of a tested function.
in this section: https://coverage.readthedocs.io/en/coverage-4.3.4/cmd.html#diagnostics I see there are the callers, but how can we get the callers ? any idea ?
def baz():
   print("hello")

def bar():
   baz()

def foo():
   bar()

def test_function_a(self):
    foo()

def test_function_b(self):
   baz()

the results should be

test_function_a for the bar function
test_function_a and test_function_b for baz

thanks

I think you are asking for what I call Who Tests What, right?

hi @nedbat yep, it's this feature. I do confirm, this feature would be awesome.


Doesn't work

I am trying to use no-code for my FalseJS library. Here is my code:

Why does it not work?

You've actually got hidden newline characters in there. Use du -h to validate that it's truly no code.

Oh yes, thank you very much, now it's working.


Fake Batches

It's currently hard to test things like if a batch was cancelled by a job or if a job added additional jobs to a batch. You have to create a FakeBatch manually and override the cancel / add methods, etc.
This solves that.
[$job, $batch] = (new TestJob)->withFakeBatch();

$job->handle();

$this->assertTrue($batch->cancelled());
$this->assertNotEmpty($batch->added);

Tempting to make withFakeBatch return [$job, $batch] so that you can do:
[$job, $batch] = (new ExampleJob)->withFakeBatch();

Maybe adding an array shape would help with autocomplete in IDEs?

What about good old call by reference:
$batch = new TestBatch();
$job = (new TestJob)->withFakeBatch($batch);

$job->handle();

$this->assertTrue($batch->cancelled());
$this->assertNotEmpty($batch->added);

Not to be grammar police, but isn't the job within a batch? So maybe withinFakeBatch($batch)

Not to be grammar police, but isn't the job within a batch? So maybe withinFakeBatch($batch)

Yes, you are right. That Sounds better.

Not to be grammar police, but isn't the job within a batch? So maybe withinFakeBatch($batch)

Grammar police are the best kind of police 🚓

I don't think I can edit this directly, but the BusFake and BatchRepositoryFake should be updated to use this new BatchFake.
It'd also be nice if the Bus had a similar dispatchFakeBatch() helper method on it to easily create fake batches for testing.

🚀

Seems since this update, I have a few tests that fail now, due to calling $batch->add(...).

TypeError : array_merge(): Argument #2 must be of type array, Illuminate\Support\LazyCollection given

https://github.com/laravel/framework/blob/abd4787bcaf0bb55dd4be35bf15f8985ee06bbcc/src/Illuminate/Support/Testing/Fakes/BatchFake.php#L81
I have a batch created, and then use a lazy collection/chunk to add jobs to the batch.
private function addToBatch(Model $model, Batch $batch): void
{
    $model->relations()
        ->cursor()
        ->map(fn (Relation $relation): ThumbnailJob => $this->createThumbnailJob($relation))
        ->chunk(500)
        ->each(fn (LazyCollection $jobs) => $batch->add($jobs));
}

Wondering if I am going about this the wrong way, or should the BatchFake be updated?


Add gitgraph.js support to show branching info more visually

This library will give us an awesome metro map for your github branchs.
You can see all the branches open for your project.
The library selected is gitgraph.js

we should show extra info on hover or next to each station:

branch name (or commit name)
user picture and username of branch owner
any more suggestions? :-)

since we're thinking of going with ungit, this is also uneeded atm so I'm closing this


expose executor service in taskmaster

Contains
A getter method for the ExecutorService used by TaskMaster
There are useful Guava utilities that can make use of ExecutorServices, for example the SimpleTimeLimiter
I make use of this in FlexiblePathfinding to manage timeouts for pathfinding executions. This way I can use google time limiting logic instead of writing my own.
Currently, we can instantiate an ExecutorService directly ourselves, but we can't properly manage its lifecycle. Calling executorService.shutdown results in the following permissions error:
11:57:17.881 [Pathfinder-0] ERROR o.t.u.concurrency.TaskProcessor - Error in thread Pathfinder-0
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")

Without the ability to call that method in module code, the thread and executor are left quietly running in the background after Terasology shutdown. This is messy and requires use of the red "stop" button in IDEA to fix.
This getter allows use of a managed ExecutorService without changing the API whitelist. There is an idiosyncrasy with the behavior but I believe that's well documented in the getter's javadoc, and an example of its usage can be seen here

Hooray Jenkins reported success with all tests good!

Oh so that's one of the causes for the game failing to dispose? That'd be nice to get fixed.
With this merged on its own it won't fix that issue I take it. Can we easily apply a module fix or two on top to then fix existing usages? I figure there must be one in the old school Pathfinding module.

Another small side note: If you understand some of this code better now, mind sprinkling in a little JavaDoc here and there? TaskMaster could totally use some class-level Javadoc and so on :D

I've checked pathfinding, doesn't look like it uses an executor like this. This fixes a bug in some code I have, and opens up possibilities for using the executor service to do smarter worker handling. However I don't think it can be used to fix any existing bugs (if I've missed an ExecutorService in a module please just point the way).
I am happy to document the class a bit.

Hooray Jenkins reported success with all tests good!

Thanks for the great Javadoc!
And aw on this maybe not being a smoking gun for current disposal issues. Oh well. We'll get them eventually :-)
Merged!


Error when searching for "col 70"

IEx session:
iex> Elite.search_stories("col 70")
[debug] QUERY ERROR source="stories" db=5.6ms queue=0.8ms
SELECT s0."id", s0."body", s0."date", s0."image", s0."nid", s0."slug", s0."title", s0."inserted_at", s0."updated_at" FROM "stories"AS s0 INNER JOIN (SELECT s0."nid" AS "s_nid", s0."title" AS "s_title", setweight(to_tsvector(s0."title"), 'A') || setweight(to_tsvector(s0."body"), 'B') AS "document" FROM "stories" AS s0) AS s1 ON s1."s_nid" = s0."nid" WHERE (s1."document" @@ to_tsquery($1)) ORDER BY ts_rank(s1."document", to_tsquery($2)) DESC ["col 70", "col 70"]
** (Postgrex.Error) ERROR 42601 (syntax_error) syntax error in tsquery: "col 70"
    (ecto_sql) lib/ecto/adapters/sql.ex:624: Ecto.Adapters.SQL.raise_sql_call_error/1
    (ecto_sql) lib/ecto/adapters/sql.ex:557: Ecto.Adapters.SQL.execute/5
    (ecto) lib/ecto/repo/queryable.ex:147: Ecto.Repo.Queryable.execute/4
    (ecto) lib/ecto/repo/queryable.ex:18: Ecto.Repo.Queryable.all/3

It appears that to_tsquery requires that all tokens be separated by query operators such as &, |, and <->:

to_tsquery creates a tsquery value from querytext, which must consist of single tokens separated by the tsquery operators & (AND), | (OR), ! (NOT), and <-> (FOLLOWED BY), possibly grouped using parentheses.

It looks like using web search_to_tsquery will be much more forgiving.


Make include guards unique

I find that include guards like "LIBTIME_H" and "QUEUE_H" are too short for the safe reuse of your header files (when they belong to an application programming interface).

Do you reject this software development concern?

@elfring I will fix it later, each header file have to be modified.
Hope you can report code issues inlcude typo and logic


feat: Add possibility to define query hints for models

Background:
In my organization sometimes is useful to specify T-SQL query hints to improve query performance. Unfortunately, as far as I know with the current design of model materialization it is not possible to simply specify hints as part of our models, because later they are first created as views, and we cannot pass anything to SELECT * INTO ... FROM ... data loading part.
New feature:
In this PR I would like to add a new parameter query_hints to model config, which gives the ability to specify query hints according to needs when models are materialized as table and incremental.
Usage examples:
{{ config(query_hints="MAXDOP 1") }}

Multiple query hints can be provided using commas:
{{ config(query_hints="MAXDOP 1, USE HINT('QUERY_OPTIMIZER_COMPATIBILITY_LEVEL_110')") }}

I have tested this feature with Azure SQL Database.

@l-j Shouldn't we add the same functionality to views as well?


Multiple categories same label separated by ;

You can also set up different apps in the same label adding ; between each one.
labels:
  - flame.type=application
  - flame.name=First App;Second App
  - flame.url=https://example1.com;https://example2.com
  - flame.icon=icon-name1;icon-name2
  - flame.category=category1;category2

never mind it does work already


Glitchy appearance when used with Auto Dark Mode

I noticed that Taskbar X seems to blink a little erratically when the software for Auto Dark Mode changes the Windows 10 theme. I'm not sure if it's a good idea to report this bug here or if I should do so to the developers of Auto Dark Mode, so I hope it's alright to report this bug here.

Does this bug occur when you're manually switching the theme from the settings? If not, report it to the Auto Dark Mode team too just to be sure.

@KatakisLives Well, when switching to dark mode or changing anything else to your Windows theme some of those messages will be send to the Shell (Explorer.exe):
WM_DWMCOLORIZATIONCOLORCHANGED
WM_DWMCOMPOSITIONCHANGED
WM_THEMECHANGED
Causing the taskbar to completely reset itself making it go back to it's default position (Left). The taskbar style will also be reset to it's default color. The glitchy effect happens because, of the reset and TaskbarX setting it back to the center and reapplying the taskbar style. I have found a way to keep the icons at their position by blocking the redraw of the taskbar's parent but that does not work for the taskbar style as it will freeze the whole taskbar. I may find a solution for this in the future...

I see, now. Thanks for letting me know about this.
(Sorry for my delay in responding, BTW)


[BUG] Error: could not read file containing a valid empty WKT TIN string

Hello,
I'm facing troubles when trying to load a text file containing an empty, yet valid TIN as a WKT string using meshio==5.3.4 in Python 3.10.6  on Ubuntu 22.04.1 LTS.
Everything works fine for files containing data, but empty TIN strings seem to issue an error.
The WKT string in such file is as follow:
$ cat /home/username/TINS/tin_empty_1234.wkt
TIN EMPTY

(it may also be: TIN Z EMPTY)
Both are valid PostGIS 3.3+ format:
SELECT ST_IsValid(ST_GeomFromText('TIN Z EMPTY'));
 st_isvalid
------------
 t
(1 row)

SELECT ST_IsValid(ST_GeomFromText('TIN Z EMPTY'));
 st_isvalid
------------
 t
(1 row)

-- an example with valid WKT
SELECT ST_IsValid(ST_GeomFromText('FOO EMPTY'));

  ERROR:  parse error - invalid geometry
  HINT:  "FO" <-- parse error at position 2 within geometry

This is a reminder on the current empty geometries in PostGIS, both in WKT and hex WKB:
database=# SELECT ST_AsText(geom), geom::text
FROM (
  SELECT i, (postgis_typmod_type(i) || ' EMPTY')::geometry AS geom
  FROM generate_series(4, 63) AS i) f
ORDER BY i;
          st_astext          |                                    geom
-----------------------------+----------------------------------------------------------------------------
 POINT EMPTY                 |<PHONE_NUMBER>000000000000F87F000000000000F87F
 POINT M EMPTY               |<PHONE_NUMBER>000000000000F87F000000000000F87F000000000000F87F
 POINT Z EMPTY               |<PHONE_NUMBER>000000000000F87F000000000000F87F000000000000F87F
 POINT ZM EMPTY              | 01010000C0000000000000F87F000000000000F87F000000000000F87F000000000000F87F
 LINESTRING EMPTY            |<PHONE_NUMBER>00000000
 LINESTRING M EMPTY          |<PHONE_NUMBER>00000000
 LINESTRING Z EMPTY          |<PHONE_NUMBER>00000000
 LINESTRING ZM EMPTY         | 01020000C000000000
 POLYGON EMPTY               |<PHONE_NUMBER>00000000
 POLYGON M EMPTY             |<PHONE_NUMBER>00000000
 POLYGON Z EMPTY             |<PHONE_NUMBER>00000000
 POLYGON ZM EMPTY            | 01030000C000000000
 MULTIPOINT EMPTY            |<PHONE_NUMBER>00000000
 MULTIPOINT M EMPTY          |<PHONE_NUMBER>00000000
 MULTIPOINT Z EMPTY          |<PHONE_NUMBER>00000000
 MULTIPOINT ZM EMPTY         | 01040000C000000000
 MULTILINESTRING EMPTY       |<PHONE_NUMBER>00000000
 MULTILINESTRING M EMPTY     |<PHONE_NUMBER>00000000
 MULTILINESTRING Z EMPTY     |<PHONE_NUMBER>00000000
 MULTILINESTRING ZM EMPTY    | 01050000C000000000
 MULTIPOLYGON EMPTY          |<PHONE_NUMBER>00000000
 MULTIPOLYGON M EMPTY        |<PHONE_NUMBER>00000000
 MULTIPOLYGON Z EMPTY        |<PHONE_NUMBER>00000000
 MULTIPOLYGON ZM EMPTY       | 01060000C000000000
 GEOMETRYCOLLECTION EMPTY    |<PHONE_NUMBER>00000000
 GEOMETRYCOLLECTION M EMPTY  |<PHONE_NUMBER>00000000
 GEOMETRYCOLLECTION Z EMPTY  |<PHONE_NUMBER>00000000
 GEOMETRYCOLLECTION ZM EMPTY | 01070000C000000000
 CIRCULARSTRING EMPTY        |<PHONE_NUMBER>00000000
 CIRCULARSTRING M EMPTY      |<PHONE_NUMBER>00000000
 CIRCULARSTRING Z EMPTY      |<PHONE_NUMBER>00000000
 CIRCULARSTRING ZM EMPTY     | 01080000C000000000
 COMPOUNDCURVE EMPTY         |<PHONE_NUMBER>00000000
 COMPOUNDCURVE M EMPTY       |<PHONE_NUMBER>00000000
 COMPOUNDCURVE Z EMPTY       |<PHONE_NUMBER>00000000
 COMPOUNDCURVE ZM EMPTY      | 01090000C000000000
 CURVEPOLYGON EMPTY          | 010A00000000000000
 CURVEPOLYGON M EMPTY        | 010A00004000000000
 CURVEPOLYGON Z EMPTY        | 010A00008000000000
 CURVEPOLYGON ZM EMPTY       | 010A0000C000000000
 MULTICURVE EMPTY            | 010B00000000000000
 MULTICURVE M EMPTY          | 010B00004000000000
 MULTICURVE Z EMPTY          | 010B00008000000000
 MULTICURVE ZM EMPTY         | 010B0000C000000000
 MULTISURFACE EMPTY          | 010C00000000000000
 MULTISURFACE M EMPTY        | 010C00004000000000
 MULTISURFACE Z EMPTY        | 010C00008000000000
 MULTISURFACE ZM EMPTY       | 010C0000C000000000
 POLYHEDRALSURFACE EMPTY     | 010F00000000000000
 POLYHEDRALSURFACE M EMPTY   | 010F00004000000000
 POLYHEDRALSURFACE Z EMPTY   | 010F00008000000000
 POLYHEDRALSURFACE ZM EMPTY  | 010F0000C000000000
 TRIANGLE EMPTY              |<PHONE_NUMBER>00000000
 TRIANGLE M EMPTY            |<PHONE_NUMBER>00000000
 TRIANGLE Z EMPTY            |<PHONE_NUMBER>00000000
 TRIANGLE ZM EMPTY           | 01110000C000000000
 TIN EMPTY                   |<PHONE_NUMBER>00000000
 TIN M EMPTY                 |<PHONE_NUMBER>00000000
 TIN Z EMPTY                 |<PHONE_NUMBER>00000000
 TIN ZM EMPTY                | 01100000C000000000
(60 rows)

and this is my current Traceback when I try to load the file containing an empty WKT TIN string:
#Python 3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0]

import meshio

filepath = '/home/username/TINS/tin_empty_1234.wkt'

with open(filepath) as f:
    meshio.read(filepath,'wkt')

which leads to:
Error: Couldn't read file /home/username/TINS/tin_empty_1234.wkt as
wkt
Invalid WKT TIN
An exception has occurred, use %tb to see the full traceback.

SystemExit: 1

/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py:3561: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
  warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

and:
%tb
Traceback (most recent call last):

  File "/tmp/ipykernel_2680153/3790614806.py", line 2, in <cell line: 1>
    meshio.read(filepath,'wkt')

  File "/usr/local/lib/python3.10/dist-packages/meshio/_helpers.py", line 71, in read
    return _read_file(Path(filename), file_format)

  File "/usr/local/lib/python3.10/dist-packages/meshio/_helpers.py", line 114, in _read_file
    sys.exit(1)

SystemExit: 1

Could it be possible to consider empty, yet valid WKT TIN strings as well?
Many thanks for your help!
Warm Regards.

So it's this part of the code that throws the error:
https://github.com/nschloe/meshio/blob/0138cc8692b806b44b32d344f7961e8370121ff7/src/meshio/wkt/_wkt.py#L30-L32
...which means that you'll need to change the tin_pattern regex (or maybe better, have a second regex option for empty wkt files)
https://github.com/nschloe/meshio/blob/0138cc8692b806b44b32d344f7961e8370121ff7/src/meshio/wkt/_wkt.py#L24

Questions for you:

Do you have a small example wkt file with data?
Do you have a small example wkt file that is EMPTY?
What do you want to happen when you read an empty wkt file in? What do you expect to see returned?

I'm confused about why you want to do this. meshio doesn't really have a concept of an empty mesh, but you can kind of hack an empty mesh like this: meshio.Mesh(np.array([]), np.array([])). Is that similar to what you wanted?


Cannot scroll to view in NestedScrollView

Steps to reproduce:
Define layout with NestedScrollView
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView>
    <LinearLayout>
        .
        .
        .
        <Button>
    </LinearLayout>
</android.support.v4.widget.NestedScrollView>

And scroll to view by scrollTo()
screen {
  snackbarButton {
      scrollTo()
      click()
  }

  snackbar {
      isDisplayed()
  }
}

Observed Results:
PerformException: Error performing 'scroll to' on view

Hello there! Can you provide more info? Stacktrace at least?
And by the way, your button in provided example is named snackbarButton. Are you actually calling snackbar? If so, snackbar is added to your root view and there is no need to scroll to it. Also please provide your screen class, maybe matching is wrong.

Hi, sorry to have confused you.
I have try to scroll to button, which inside NestedScrollView and click it
and lastly assert SnackBar should display
Updated code as below
Layout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/content"
	android:layout_width="match_parent"
	android:layout_height="match_parent">

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:orientation="vertical">

		<Space
			android:layout_width="wrap_content"
			android:layout_height="600dp"
			android:textColor="@color/background_color" />

		<Button
			android:id="@+id/button"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:text="BUTTON" />
	</LinearLayout>
</android.support.v4.widget.NestedScrollView>

Screen
    val content: KView = KView { withId(R.id.content) }
    val button: KButton = KButton { withId(R.id.button) }

    val snackbar: KSnackbar = KSnackbar()

Test
    @Test
    fun testContentScreen() {
        screen {
            content {
                isVisible()
            }

            button {
                scrollTo()
                click()
            }

            snackbar {
                isDisplayed()
            }
        }
    }

But have an error
android.support.test.espresso.PerformException: Error performing 'scroll to' on view '(with id: com.uitest.sample:id/button)'.
at android.support.test.espresso.PerformException$Builder.build(PerformException.java:84)
at android.support.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:81)
at android.support.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:52)
at android.support.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:312)
at android.support.test.espresso.ViewInteraction.desugaredPerform(ViewInteraction.java:167)
at android.support.test.espresso.ViewInteraction.perform(ViewInteraction.java:110)
at com.agoda.kakao.BaseActions$DefaultImpls.scrollTo(Actions.kt:148)
at com.agoda.kakao.KBaseView.scrollTo(Views.kt:30)

I resolved by create custom action like
class NestedScrollActions(private val original: ScrollToAction = ScrollToAction()) : ViewAction by original {

    override fun getConstraints(): Matcher<View> = CoreMatchers.anyOf(
            CoreMatchers.allOf(
                    withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),
                    isDescendantOfA(isAssignableFrom(NestedScrollView::class.java)))
            , original.constraints
    )
}

and use act for perform it
button {
    act {
        NestedScrollActions()
    }
    click()
}

Anyway, I'm not sure this is good enough solution for make a PR.

I resolved by create custom action like
class NestedScrollActions(private val original: ScrollToAction = ScrollToAction()) : ViewAction by original {

    override fun getConstraints(): Matcher<View> = CoreMatchers.anyOf(
            CoreMatchers.allOf(
                    withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),
                    isDescendantOfA(isAssignableFrom(NestedScrollView::class.java)))
            , original.constraints
    )
}

and use act for perform it
button {
    act {
        NestedScrollActions()
    }
    click()
}

Anyway, I'm not sure this is good enough solution for make a PR.

I resolved by create custom action like
class NestedScrollActions(private val original: ScrollToAction = ScrollToAction()) : ViewAction by original {

    override fun getConstraints(): Matcher<View> = CoreMatchers.anyOf(
            CoreMatchers.allOf(
                    withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),
                    isDescendantOfA(isAssignableFrom(NestedScrollView::class.java)))
            , original.constraints
    )
}

and use act for perform it
button {
    act {
        NestedScrollActions()
    }
    click()
}

Anyway, I'm not sure this is good enough solution for make a PR.

Maybe the problem was with how you matched your button. It is possible that you need to match your button as a child of nested scroll view in your screen class. Cheers!


[BUG] While im in a game, like after 20 - 30 minutes i crash (or even 10 - 5 minutes)

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
after like 20 - 30 (or 10 - 5) minutes, i crash for no reason and the players will vote me off the game (total roblox drama) bc i left, BUT I DIDNT MEAN IT TO LEAVE, ITS BLOXSTRAP!!!

Does this happen every time you play? You should confirm if it's really Bloxstrap causing this, try a play session without using Bloxstrap and see if you encounter any crashes. https://github.com/pizzaboxer/bloxstrap/wiki/Switching-between-Roblox-and-Bloxstrap

yes, i use msii, and its not the real game roblox client, its only bloxstrap, it crashes every (20 - 30 - 10 - 5) minutes (the minutes are random) it happens when i join an "instance"

yeah but i dont wanna really use normal roblox, i need bloxstrap forced, bc i need old menus

Can I see what FastFlags you have configured? Show a screenshot of the FastFlag editor in the Bloxstrap Menu.

Can I see what FastFlags you have configured? Show a screenshot of the FastFlag editor in the Bloxstrap Menu.

sure omg i was sleeping

Can you try removing all the flags you have set (Ctrl+A and then delete), and then try playing Roblox, and see if it works? You can back up your current flag config by opening the mods folder, going into the ClientSettings folder and copying ClientAppSettings.json somewhere else.

ok, i tried and it didnt work.. is this a MSII Problem? Or is it a MSII Bloxstrap not fixed for crashes, or is it my shitty windows 11 msii??

ok, i tried and it didnt work

Can you just quickly confirm something, open the %localappdata%\Bloxstrap\Logs folder and send the latest log file here please.

this one happened right now:

Yes, send the latest file here.

yeah i sent it

if it helps, this has been happening to me to, sometimes it would crash when i just start the game

yeah i sent it

you cant send files'??

you cant send files'??

?

No response for a month


fixshouldn't change the child type to assignmentCompatible Type if it's INVALID_TYPE

if changing the child type to INVALID_TYPE, the later getBuiltinFunction call will fail
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.15 seconds
stream load tsv:          513 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size:<PHONE_NUMBER>3 Bytes


Feature bash generator

This implements the Bash grading script generator. Includes features for both front end and back end. A user can now submit input through the Mentor UI and then use that info to generate a Bash script that can be used for grading assignments.

Can verify that a script is generated and downloads.
The generated script needs some syntax fixed, but does at least correctly make use of the sample filename that's passed into the form.

@angrychai Originally we just wanted to get it to generate something that resembled an output with the intention of letting the next class correct the Bash script that gets generated but now I feel challenged. I'll have it fixed and working by EOD. :)

@angrychai @dyohn Revised and tested the Bash script that is generated and it's now functional. In a directory, place the generated script. You'll need 7 directories along side the script. "build", "diffs", "mentor", "processed", "reports", "submit", and "tests". Place any test to be ran in the "tests" directory. Place student source code submissions in the "submit" directory.
Tested with multiple test scripts and multiple students. It isn't perfect but it's a good foundation. :)

I filled out the form, and I really like how the form has been designed, particularly with respect to the ability to add multiple test files. This is very helpful.
However, when I submit the form, I get the following screen:

but I do not get a file download. Am I doing something wrong?

Never mind, the problem was operator error. I was providing an invalid model because I tried to use COP4610.p1 for the ID instead of a numeric value. I will probably have future classes change the value type of ID so that we can use it as a portion of the name for the downloaded file.

Never mind, the problem was operator error. I was providing an invalid model because I tried to use COP4610.p1 for the ID instead of a numeric value. I will probably have future classes change the value type of ID so that we can use it as a portion of the name for the downloaded file.

Ah yeah. To be honest, the ID and assignment name aren't currently used by the BuildTestDriver because we weren't certain what the intent was because the BashTestConfigs didn't use it. Should be an easy update for the next crew. Will just need to:

Modify the MentorController.cs to grab them from the model and pass them to the BashTestConfig instance similar to everything else.
Modify the BashTestConfig.cs to accept and store like the others.
Then BashTestDriver.cs can be changed to use it.

Also I can't remember off the top of my head but I believe there is a [Require] tag on the ID in the model that wants it to be a numeric values that isValid() is using so that would need to be changed to check for an empty string instead.

Very well done, your team should be very proud of what you accomplished this semester!

Thank you! This was a blast!


Exit status "4" when using download with continue and file is already present

% sudo http --debug --check-status --follow -bdco file.tar.bz2 URL.file.tar.bz2
HTTPie 1.0.3
Requests 2.22.0
Pygments 2.4.1
Python 3.6.9 (default, Dec 24 2019, 01:17:36)
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)]
/usr/local/bin/python3.6
FreeBSD 12.1-RELEASE-p1

    "colors": 8,
    "config": {
        "__meta__": {
            "about": "HTTPie configuration file",
            "help": "https://httpie.org/doc#config",
            "httpie": "1.0.3"
        },
        "default_options": "[]"
    },
    "config_dir": "/root/.httpie",
    "is_windows": false,
    "stderr": "<_io.TextIOWrapper name='<stderr>' mode='w' encoding='US-ASCII'>",
    "stderr_isatty": true,
    "stdin": "<_io.TextIOWrapper name='<stdin>' mode='r' encoding='US-ASCII'>",
    "stdin_encoding": "US-ASCII",
    "stdin_isatty": true,
    "stdout": "<_io.TextIOWrapper name='<stdout>' mode='w' encoding='US-ASCII'>",
    "stdout_encoding": "US-ASCII",
    "stdout_isatty": true
}>

    "allow_redirects": true,
    "auth": "None",
    "cert": "None",
    "data": {},
    "files": {},
    "headers": {
        "Accept-Encoding": "identity",
        "Range": "bytes=142370763-",
        "User-Agent": "HTTPie/1.0.3"
    },
    "method": "get",
    "params": {},
    "proxies": {},
    "stream": true,
    "timeout": 30,
    "url": "https://URL/file.tar.bz2",
    "verify": true
})

% echo $?
4

This makes it a hard to test for 40x http errors. Is this by design or a bug?

Just an update on this I later found the file is also always created (0 byte) if the requests fails!
I.e even on 404 the request would fail but we create a 0 byte file! I noticed cause to work around the 416 I was using test -f in the shell script and it was passing; just curios if that is the intended behavior? (fine by me I'll just change the test to -s but  just wanted to be sure that's intended)

@mike-pt could you please provide a minimal test case, and describe what the expected & the actual behavior is? We’re having troubles reproducing it. Thanks!

Hum its been some time, the original issue was a odd one, I try to repo again but about that last comment:
miguelc@r2d2:~ % http -h -dco /tmp/file.txt https://domain.com/file.FAKE
HTTP/1.1 404 Not Found
Age: 107
CF-Cache-Status: HIT
CF-RAY: 5a55d0485f78067e-LHR
Cache-Control: public, max-age=259200
Connection: keep-alive
Content-Type: application/json;charset=ISO-8859-1
Date: Thu, 18 Jun 2020 14:48:51 GMT
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Sun, 21 Jun 2020 14:48:51 GMT
Server: cloudflare
Set-Cookie: __cfduid=df76b0fc75da7cf72600cf683995c29b81592491731; expires=Sat, 18-Jul-20 14:48:51 GMT; path=/; domain=.plex.tv; HttpOnly; SameSite=Lax
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Artifactory-Id: abc0aca8c8fcf70f:-1015742d:1726eb5d906:-8000
X-Artifactory-Node-Id: artifactory00
cf-request-id:<PHONE_NUMBER>0000067ee61d0200000001

% file /tmp/file.txt
/tmp/file.txt: empty
% ls -l /tmp/file.txt
-rw-r--r--  1 miguelc  wheel  0 Jun 18 15:48 /tmp/file.txt

note that I do not pass -b here, if I did I would actually get this was the output:
{
  "errors" : [ {
    "status" : 404,
    "message" : "File not found."
  } ]
}

Not sure if that is the intend behavior of if we should end up with no file there, I assume we are creating the file first and then writing the contents to it, or because we could somehow get actually 0 content (download gets canceled at start, unlikely but not impossible); In any case my question there was really if that's the expected case or not.

About the original issue I later posted that this happens cause I get a 416 if the file is already on disk with the full content-length (https://github.com/jakubroztocil/httpie/issues/842#issuecomment-578518068) the content-range is */totalsize and so I get a 416.
httpie simple returns a single digit exit code ofc, and so a 416 is still a 4, I was just not noticing the 416 at that at the time.
In other words that is not a bug.

I, unfortunately, can not reproduce your problem. It would be really nice if you could give an URL that actually works.

I see this bug has been closed and the discussion concluded with an empty file from a 404 response, but I have exactly the problem described in the title.  This is also related to the same problem in curl: https://github.com/curl/curl/issues/10521
I tried running https -dco foo.bin ***redacted_url*** X-JFrog-Art-Api:@jfrog-api-key to download a build artifact from an artifactory server, hoping that repeated script runs would not download the large file multiple times.
The server replies with
HTTP/1.1 416 Requested Range Not Satisfiable
Connection: keep-alive
Content-Length: 0
Content-Range: bytes */977880575
Date: Wed, 09 Aug 2023 09:57:07 GMT
Server: nginx/1.18.0 (Ubuntu)
X-Artifactory-Id: ***redacted***
X-Artifactory-Node-Id: ***redacted***
X-Jfrog-Version: Artifactory/7.55.13 75513900

letting httpie exit with code 4.
The corresponding request was
Accept: */*
Accept-Encoding: identity
Connection: keep-alive
Host: artifactory.redacted.lan
Range: bytes=977880575-
User-Agent: HTTPie/3.2.1
X-JFrog-Art-Api: ***redacted***


Failed to run tests with fastapi templates on Linux and Mac

Describe the issue:
When test Running tests with fastapi templates on Linux and Mac, run python3 -m pytest, get error as follow:

Repro Steps:

Clone the repo to local.
Create a Python virtual environment and activate it.
Install requirements:
python3 -m pip install -r requirements-dev.in
playwright install --with-deps
Run the tests: python3 -m pytest

Environment:

OS: Linux and Mac.
Azd version: 1.4.1  (commit https://github.com/Azure/azure-dev/commit/1cbed85cf47ed235b5ed31868eda79619525bfcc)
Python : 3.8
Template:
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-aca
https://github.com/Azure-Samples/azure-fastapi-postgres-flexible-appservice
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-appservice
https://github.com/Azure-Samples/azure-fastapi-postgres-addon-aca

Expected behavior:
Running python3 -m pytest with flask templates can pass on Linux and Mac.
@pamelafox  for notification.

Can you copy and paste the full error message? (That starts with SSL error) You might also need to scroll up.

Did you set up a Postgres database locally with the correct username/password? (The same as what would have been setup by the dev container)

@pamelafox  I set up a Postgres database locally with the correct username/password, the full error message as follow:

I made various updates to the tests and also added instructions for running Postgres locally. Can you try it again?
If you're still getting an SSL error, I wonder why it's trying to use SSL. You could try explicitly setting a local environment variable of POSTGRES_SSL to "disable".

Another thought - if you're still getting SSL issues, can you try changing line 19 in models to py to:
if os.environ.get("POSTGRES_HOST") == "localhost":
    sql_url = f"{sql_url}?sslmode=disable"

Test again, the current issue no longer exists.


Use Stencil Templating engine to create service files

Uses https://github.com/stencilproject/Stencil to create service files.

Stencil templates are in CodeGenerator/Templates folder.
CodeGenerator.swift now generates the dictionaries to send to Stencil
Did a general code tidy up
The Code Generator is not dependent on aws-sdk-swift-core anymore
I added a few minor features while doing this
Markup deprecated AWS commands
Added xml namespaces where needed

So yes you are correct. We build up the contexts and then these are 'rendered' using the stencil templates. The dictionary keys / structure member names, correspond to the names used in the templates.


Add exportType option

Add exportType option and allow specify OpenAPI 3.0

Can you add swagger back as the default, if the option is not set?
This will fix the tests

Codecov Report

Merging #117 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #117   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           8      8
  Lines         437    438    +1
  Branches       60     61    +1
=====================================
+ Hits          437    438    +1

Impacted Files
Coverage Δ

src/downloadDocumentation.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Hi, is there any thing to modify?

This PR will be a really good enhancement. Waiting for it.
Thanks

Hi what needs to be done to get this branch merged?


Create new evtinfomc branch

At the moment our evtinfo branch mixes information that we will have in real data (e.g. runid, subrunid, eventid), and information we get from the MC (e.g. n_protons). The information we currently get from MC might be something we extract from data via other means. For this reason, I think we should create an evtinfomc branch to keep these concepts separate.

This was already a while ago in PR #48. Closing this issue


Correctly format fixed-length slots for backrefs

Applied the fix against https://github.com/ensdomains/evmgateway/pull/14 and the test started passing


add an /inscriptions filter for genesis_address

so users can filter by all inscriptions created by one author

Oh, yeah, good idea!


rp7KfRqL: Write MSA release notes for changes made by data team in Q1

What
We're going to do a joint release of the MSA with the Make Verify work for users team (eIDAS).
We've made a couple of changes to the MSA which will go out in this release. We need to:

write release notes for our changes
check if anything else has been merged since the last release (except for eIDAS's changes) and write notes for that

How
Added release note for extra logging (https://github.com/alphagov/verify-matching-service-adapter/pull/122)
Added release note for multiple firstname filtering (https://github.com/alphagov/verify-matching-service-adapter/pull/110)
Added release note for filter of multiple attribute values to UAC (https://github.com/alphagov/verify-matching-service-adapter/pull/113)
Added additional notes for other PRs merged since last release
(excepting eIDAS related changes).

 Write MSA release notes for our changes

Further commit added to address @brenetic comments.


Ability to disable auto-indent while typing.

More often than not Atom's auto indent feature gets auto-indentation wrong for example:
for f in $(git show --pretty="format:" --name-only); do
  [[ "$f" ]] {
    file=$(readlink -f "$f")
    if grep -E "^$root/dockerfiles/"
    then

    fi
  }
done

Will always lead to anything typed after then being indented backwards all the way into the for statement.  This behavior happens quite often in bash and Ruby when working with complex sets of code where Atom expects one thing but the other is actually valid.
It would be nice to be able to disable this auto-indent in the middle of typing instead of waiting for changes to make it into a specific language, because Atom is a large project, so changes don't happen over night, but this feature would make it so that it can be fixed.
To clarify: I do not wish to remove auto-indentation entirely, just disable it when I start typing.  I don't need it to correct my personal indentation for me, where I choose to indent should really be my business, but when I press enter and go to a new line, indent automatically how you see fit all you want, but once I correct it and start typing, the correct behavior (IMO) would be to let me be because it's a personal choice at that point.

To add, I know there is a syntax error in that script and it's there to highlight the problem, we have a linter to point out those syntax errors.

I have the indenting backwards while typing thing in Lua, too.

Closing in favor of that ticket.

No ability to disable it? ...

Why not just a setting that says "only auto indent on Enter" ? There's no point in auto indenting on every keypress anyway. It's doing MORE work than it needs to.


Switch from balenaCI to flowzone

Signed-off-by: Alexandru Costache<EMAIL_ADDRESS>

@balena-ci I self-certify!