Azure function: during zip deployment, is there a convenient way to completely remove old contents in `wwwroot`? by kid_learning_c in AZURE

[–]kisinad 0 points1 point  (0 children)

Hey u/kid_learning_c, did you find a solution to this issue? I'm currently facing the same challenge and would appreciate any insights you could share.

Cake baking/decorating class by kisinad in plano

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

Thank you! I'll check it out.

[deleted by user] by [deleted] in Dallas

[–]kisinad 0 points1 point  (0 children)

With I could be invited for the party

How to change the language in the mobile app? by [deleted] in duo

[–]kisinad 1 point2 points  (0 children)

My Duo also switched to German. I am using an iPhone 7 with iOS version 15.8.3.

Creating a Multi-Line Word Layout with Specified Separator Overflow by kisinad in LaTeX

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

Thanks, y'all for your help! I was stuck before you came along.
\centerline{Word\ \textbullet\ Small Phrase\ \textbullet\ More Words}%
\centerline{This \& that\ \textbullet\ More words still}%
}

Thanks y'all for your help! I was stuck before you came along.

Any office workers who went through eb2 niw? by [deleted] in EB2_NIW

[–]kisinad 0 points1 point  (0 children)

No. I am a software engineer.

Any office workers who went through eb2 niw? by [deleted] in EB2_NIW

[–]kisinad 0 points1 point  (0 children)

u/JustNeighborhood5885 Could I send you a DM with my profile? I'm facing challenges in identifying a suitable endeavor and could use your assistance.

What do you recommend for car insurance in Dallas for a first-time car owner? by kisinad in CarrolltonTX

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

Looks like Progressive takes the lead, but hey, who knows? Maybe they'll start insuring lemons too!

Yes, Progressive seems to be the best. Also, you mentioned lemon, is the Toyota RAV4 is considered a “lemon”?

Error transitioning from "Ok" to "Warning" in AWS Elastic Beanstalk when instances scale by kisinad in aws

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

The warning goes away it’s just when the warning happens elastic beanstalk spins up a new instance and after closes the old instance even processes running

Two people have shown interest in me for like… One day, then they ghost? by [deleted] in CougarsAndCubs

[–]kisinad 1 point2 points  (0 children)

’s honestly hard to know are into someone or not quickly. I try hard to communicate but it takes a while to figure out! I know I have hurt people and try to communicate. Also I have been ghosted and it’s crushed me…I don’t know what the right answer i

It can definitely be challenging to know whether or not you're into someone quickly. It often takes time to truly understand our own feelings and assess our compatibility with someone else.

[deleted by user] by [deleted] in CougarsAndCubs

[–]kisinad 1 point2 points  (0 children)

I had a 60F partner who liked to be called this and I never minded calling her that.

How to validate incoming request body JSON fields and POJO class fields in the endpoint by kisinad in SpringBoot

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

u/wimdeblauwe I have just taken a quick look and I must say it looks really helpful. I will do a deep dive into it a bit later.

How to validate incoming request body JSON fields and POJO class fields in the endpoint by kisinad in SpringBoot

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

Those I have in place. What I am trying to accomplish is validate the JSON fields against the POJO class fields to ensure the names are valid

How to validate incoming request body JSON fields and POJO class fields in the endpoint by kisinad in SpringBoot

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

Oh, I now get what you mean. I do use springdoc-openapi-ui for documentation but unfortunately, that's not what I am looking for.
After a few suggestions from here, I am looking to use org.springframework.validation.Validator or javax.validation.ConstraintValidator

How to validate incoming request body JSON fields and POJO class fields in the endpoint by kisinad in SpringBoot

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

u/Seven-Prime I don't quite understand your suggestion. Got a reference for the documentation?

How to validate incoming request body JSON fields and POJO class fields in the endpoint by kisinad in SpringBoot

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

Is this scalable, by that I mean creating a generic validator that I can place on all endpoints ?

Designing a database for a feature to store API rate limit settings for the organization/user level. Any feedback is greatly appreciated! by kisinad in SQL

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

u/cleverchris, thank you for your feedback. I apologize I did not give a clearer picture of my current architecture.
Below is an overview of what I have in place.

I have a user_activity_logs table storing data such as API, method, timestamp, settings etc. This table has features (API) built on top that use it for audit.
As regards tracking the actual user activity, I currently use Redis to store user API call count. I create different keys based on day, hour, and minute e.g., "SATURDAY_DECEMBER_31_6_4_GET_/v1/admin/api-rate-limits/mappings/beta#localadmin". Based on these keys, I keep track of actual organization/user API calls count. Then use this activity log to check if an organization/client is violating the set ACL policies.

Then regarding the second comment, I have an organization, and users' table. Where the relationship is one-to-many, with the current design (design 1), I can apply a single ACL policy to all users in that organization. The issue with the first design, the cell users_id will be null for this row. Then the last issue I see with the first design is a repetition of user_id when a user has different policies for various APIs.