internal-contribution-forks icon indicating copy to clipboard operation
internal-contribution-forks copied to clipboard

Fallback to branch protections when rulesets unavailable

Open ajhenry opened this issue 2 months ago • 0 comments

Describe the bug

There's currently a known issue where EMU integrations are not allowed to create repository rulesets. We need to fallback to using branch protections until this issue is resolved.

To Reproduce

When making rulesets in an EMU org, you will be met with the following error:

{"data":{"createRepositoryRuleset":null},"errors":[{"type":"FORBIDDEN","path":["createRepositoryRuleset"],"extensions":{"saml_failure":false},"locations":[{"line":1,"column":11}],"message":"Unauthorized: As an Enterprise Managed User, you cannot access this content"}]}

Expected behavior

We need to use the old behavior of branch protections when this error occurs

Screenshots

No response

Additional context

No response

ajhenry avatar Apr 18 '24 01:04 ajhenry

Timezone issue?

darkautism avatar Apr 26 '21 05:04 darkautism

Hmm that would make sense. Looking closer, it's not random at all. PS3TrophyIsGood timestamps are all either +4 or +5 hours from the timestamps I'm trying to import from psntrophyleaders.com.

How would I go about fixing this?

HKPSN avatar Apr 26 '21 23:04 HKPSN

This program do not have change timezone feature. Maybe you can try to change your computer timezone. After finished copy and edit trophy, you can change back to real timezone.

darkautism avatar Apr 27 '21 02:04 darkautism

Changing my computer timezone did not impact the trophy timestamps.

HKPSN avatar Apr 27 '21 23:04 HKPSN

I have the same issue

Rage4Dayz96 avatar May 01 '21 14:05 Rage4Dayz96

It will be a little bit difficult to fix, because some countries has DST (daylight saving) and some others had DST in the recent past (eg.: Brazil). The easy way to fix this is adding a field with timezone select to the smart copy feature, but even using this, probably sometimes people will need to select a different timezone than the "correct" one, because the problem with DST I mentioned.

jhonathanc avatar May 20 '21 02:05 jhonathanc

@Rage4Dayz96 @HKPSN, could you please try this new build?

https://github.com/jhonathanc/PS3TrophyIsGood/suites/2791247885/artifacts/61967303

I added an "Fix hour" field to copy feature, It let's you add/remove hours from the time. Let me know if it worked for you.

jhonathanc avatar May 20 '21 04:05 jhonathanc

Have this exact same issue. Trying to copy my own time stamps from psn leaderboard and everything is right except for the hours, they are either 1 hour apart or 2 hours. Some of the trophies will even have the correct time stamp. I even tried to type the dates in by default, but when I went to sync them to my account, some of the trophies I changed are still 1-2 hours apart from what I typed in PS3TrophyIsGood. I tried all solutions mentioned in this thread and unfortunately did not work.

Twaxyy avatar Oct 02 '21 01:10 Twaxyy