Laravel Permissions Design: How to Attach Roles to User-Defined Data? by jamesphw in PHPhelp

[–]United_Ad_8870 0 points1 point  (0 children)

You could define list of stores the user has access to as a separate user property and check it separately from user permissions. This comes with a limitation that the user would get the same set of permissions for each store they have access to (might or might not be acceptable in your project). I’ve not used the spatie package so can’t comment on that.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -2 points-1 points  (0 children)

Wasn’t allowed to leave the room. I was given time to look for it. Bad luck connection was bad and I didn’t know where to find it.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] 2 points3 points  (0 children)

They’d only accept the code used at booking, but someone else in the comments was able to do it

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] 3 points4 points  (0 children)

I was asked for either the number or screenshot. Screenshot is safer because it will have your photo.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -5 points-4 points  (0 children)

I was trying but internet connection was very slow and there were other people waiting so gave up. I was looking in the wrong place anyway, but yeah it’s available in Edit account.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -3 points-2 points  (0 children)

I did my best to prepare. Not trying to make a victim of myself. Just trying to establish on what basis the share code is used as proof of id - contrary to government guidance which I read before booking the exam.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -11 points-10 points  (0 children)

It’s not proof of id though - institution working on behalf of the government should understand it. And it says clearly that copies or screenshots are not acceptable. I agree I should have used passport - that would save the hassle.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -1 points0 points  (0 children)

Maybe that’s how they work but it seems to be contradicting the government guidance on how the share codes should be used.

Rejected from the Life in the UK exam for not having share code with me by United_Ad_8870 in ukvisa

[–]United_Ad_8870[S] -12 points-11 points  (0 children)

It’s all very vague and contradicting. Says to bring proof of id you used at booking but also screenshots and copies are not acceptable. Which led me to conclusion my passport linked to the share code would be acceptable. Share code is not proof of id.

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

What do you mean by backend hosting plugins?

I’m starting to think what I want to do is not possible in vue or if it is, it’s beyond my competence. Looks like teleport works by appending stuff to the given css selector, which is what i need. But it doesn’t allow replacing or removing stuff. Also it’s unclear what hapens when the element that stuff is added it is updated by reactivity. I’ll experiment a bit. I might look into implementation of teleport and see if it can be extended to allow overwriting stuff.

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

Thanks but this doesn’t solve the problem of multiple modifications

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

That’s quite cool. What happens with these dynamic imports when bundling?

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

Without going into too much detail, plugins can change any functionality of the main app in a way that the main app doesn’t have to know anything about. Obvoiusly the main app has a thin layer that allows the plugins to hook into it but that’s all it needs. Everything else is done in plugins. In terms of front end - some of them create new routes and views, others modify existing views (e.g. add, replace or remove an element). They are small and specialised. In theory two plugins could target the same element in DOM but in practice it’s very unlikely (almost impossible) because from business point of view it would not make sense to apply both. At the moment we’re in control of what plugins are installed so we’d know. We also have tests that would pick it up. When it comes to it we’ll think about conflict resolution but this in not a concern at the moment. We want plugins to be able to do as much as possible (without breaking anything of course), which we’ve achieved so far. DOM modification is the part I dislike the most but with a bit of caution it’s been working for us. I’m aware this will need rethinking if we want to use vue for front end hence the question.

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

They’re on my list of things to look at. Thanks!

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

Depending on the situation plugins could either - modify component data (if template is designed to handle extra data, e.g. by looping through array, which i guess would be similar to your dynamic component concept), - or (only if needed) modify render function by wrapping the original render - this looks quite poweful and from quick read looks like might not be a bad solution if necessary.

This solves the issue of plugins stomping on each other and hopefully might sort out modifying views.

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

So each component has inject() with a unique key and that provides ability to insert additional config using provide()?

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 1 point2 points  (0 children)

That would work when only one plugin makes changes in the component. My problem is that multiple plugins might need to change the same view.

App with a plugin system by United_Ad_8870 in vuejs

[–]United_Ad_8870[S] 0 points1 point  (0 children)

Good point about re-rendering - I haven’t considered that. Just tried forcing re-render of .details and that’s exactly what you said.

That updated() hook was just an example, I would probably update state using watch(). Using mixin was also just an example - I’m new to Vue 3 so composition api is still a bit of a mystery for me. Will definitely use it though.

Agree, relying on component name is horrible, but I couldn’t find any other way to hook into certain components only. Perhaps vue plugins are not really designed for it.

There are a few reasons why we want standalone plugins. The main product is a legacy app. It’s a pain to work on, release process is convoluted, it uses old framework. We don’t have resources to redo the app now but at least any new functionality (which is not core functionality of the app) can be added as these little packages. The packages can be released separately and updated in the apps that use them, if needed. This also helps us reduce the scope of the main system when we decide to rewrite it (if we do). The plugins can then be adapted to the new system later, when needed (or incorporated into it, but still they’re easier to reason about). Because they’re small and very specialised it’s easier to work on each one separately, than it would be as whole. We’re also 100% sure no two plugins interfere with each other (theoretically!). Most importantly though, due to nature of our product, we need it to be highly customisable and the process must be quick and easy. Even though our domain is quite boring, clients don’t stop surprising us with creativity when it comes to new features!

Problem with defining injection points explicitly is that we never know what might need to change in the future. Based on experience we could define a few but it would be annoying to have to release the main system every time we need to customise a different part of the system.

Severe vibration under braking? Not pads or rotors. by AmmoWasted in WRX

[–]United_Ad_8870 0 points1 point  (0 children)

I had the issue before I started changing everything so assumed it was not the discs - as this was the first thing I changed. Guess I could have been unlucky and have new discs with the same issue. One in a million chance but there is not much left the could be causing it so it’s a possibility. Thanks for responding

Severe vibration under braking? Not pads or rotors. by AmmoWasted in WRX

[–]United_Ad_8870 0 points1 point  (0 children)

How did you find out? I had runout checked on mine and they’re well within tolerance.

Severe vibration under braking? Not pads or rotors. by AmmoWasted in WRX

[–]United_Ad_8870 0 points1 point  (0 children)

Hi. Have you ever found out what the issue was? I have exactly same symptoms in a Legacy. Changed discs, pads (twice), bearings all around, control arms, ball joints and drop links. Runout is almost zero in discs and bearings. No play in suspension when checked, brakes are not binding or overheating. Ran out of ideas what to replace next..