NATION

PASSWORD

Fastest Switchers in the West

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Fastest Switchers in the West

Postby Sedgistan » Thu Apr 13, 2023 12:42 pm

Eluvatar has coded up some changes to the way WA membership is managed behind the scenes. It's got a few benefits to it - allowing us to query the number of WA nations in a region (needed for Frontiers' status switching influence costs), avoiding some of the race conditions at update when players can end up accidentally multying or with ghost WA nations, and also to eventually make it possible to see who a nation has endorsed.

This needs some stress testing, so I need some volunteers who are incredibly fast raiders or defenders to have a go at switching quickly on our other test version of NS (not NS3), to check it works as intended. Please let me know (here, TG or Discord DM) if you're interested in helping out. For those that are taking part in this testing, please also use this thread to post feedback.

If you're not an incredibly fast raider or defender, please don't apply (unless you're an incredibly fast raider and defender from Lily, in which case, please definitely apply).

User avatar
Haku
Attaché
 
Posts: 72
Founded: Jan 02, 2018
Inoffensive Centrist Democracy

Postby Haku » Thu Apr 13, 2023 12:47 pm

I'm interested in applying.

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Thu Apr 13, 2023 12:52 pm

I've dropped you a TG. Will do likewise for anyone else who volunteers here who has R/D pedigree.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Thu Apr 13, 2023 2:43 pm

To be clear, not all the benefits mentioned are realized yet on the test site, but I need the intermediate stage tested first.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Decacon
Lobbyist
 
Posts: 24
Founded: Aug 09, 2012
Democratic Socialists

API

Postby Decacon » Thu Apr 13, 2023 5:13 pm

Not volunteering due to my limited R/D credentials, but we (Europeia) have passed this along internally.

Anyway, I just wanted to say - hopefully this data will be exposed to the API! It would help us comply with rate limits, as (for example) a lot of tools right now have to manually query every nation in a region to see if it's WA or not.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Thu Apr 13, 2023 7:16 pm

Decacon wrote:Not volunteering due to my limited R/D credentials, but we (Europeia) have passed this along internally.

Anyway, I just wanted to say - hopefully this data will be exposed to the API! It would help us comply with rate limits, as (for example) a lot of tools right now have to manually query every nation in a region to see if it's WA or not.

You can query the WA for its list of members. For the occasional bugged nation, the nations.xml dump should be more than sufficient to catch them as they are few and far between.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Thorn1000
Envoy
 
Posts: 232
Founded: Apr 02, 2015
Corporate Police State

Postby Thorn1000 » Thu Apr 13, 2023 9:19 pm

I’m happy to help too!
walrus wrote:Life is a zero-sum game. The lower I make the happiness of children, the higher my happiness rises

All opinions that I express are solely mine. I do not speak for anyone but me yadayadayada
One of 5 people to have hit more than 200 regions in 1 update

User avatar
Haku
Attaché
 
Posts: 72
Founded: Jan 02, 2018
Inoffensive Centrist Democracy

Postby Haku » Fri Apr 14, 2023 7:42 am

I've experienced something similar to the "race conditions" mentioned in the OP.

I just tried to admit on a WA nation only to be told I already have one and I couldn't find it by dossiering all of my nations, and the activity feed shows that my last nation (Haku 160) definitely resigned properly.

However, I used the members API shard (https://www.nationstates.net/cgi-bin/ap ... &q=members) to look for it, which revealed that my first nation https://www.nationstates2.net/nation=haku is considered to be WA, even though I can look at its nation page and see it's definitely not (logging into the nation also shows no resign WA button)

What's strange is that I noticed it only started blocking me from joining the WA now when my last resign on that nation (or any other nation) was 12 hours ago.

For the record, this isn't quite identical to what I've experienced during update, which is being able to end up with multiple WA nations by the end of a fast chase, but seems similar in nature.
Last edited by Haku on Fri Apr 14, 2023 7:53 am, edited 2 times in total.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Fri Apr 14, 2023 8:46 am

This is very helpful Haku, thank you.

Looks like your problem came because I did something that I didn't know was unsafe and reset the state of the old UN code to before you'd done all your stuff. I'll know not to do that (at least on the actual site / test sites) in the future!

I'll remove that errant record shortly. Edit: You should be able to rejoin the WA on NS2 on any of your puppets now.
Last edited by Eluvatar on Fri Apr 14, 2023 8:48 am, edited 2 times in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Sweeze
Spokesperson
 
Posts: 189
Founded: Oct 21, 2018
Scandinavian Liberal Paradise

Postby Sweeze » Sun Apr 16, 2023 5:01 am

if bodies are still necessary i'd take an invite
| lily supreme command | the mt army third in command | dev of nsdotpy |
[6:38 PM] Chingis: ... the Tom Brady of R/D
5417+ times tag/detag delegate, 5945+ regions hit, first person to become delegate of 200+ regions in an update (and only to do so multiple times)
call me audrey, it/she

User avatar
Sedgistan
Site Director
 
Posts: 35473
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Sun Apr 16, 2023 6:24 am

Elu's advised he feels he's seen enough testing to be confident with the new system.
Last edited by Sedgistan on Sun Apr 16, 2023 10:33 pm, edited 1 time in total.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Mon Apr 17, 2023 7:10 am

We'll probably need testing for Stage Two around Wednesday or Thursday.

Edit: Stage Two isn't required for Frontiers, but will unlock some of the benefits Sedgistan mentions above.
Last edited by Eluvatar on Mon Apr 17, 2023 7:50 am, edited 1 time in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Phase 2

Postby Eluvatar » Wed Apr 26, 2023 8:07 pm

It's Wednesday/Thursday! Time to test Phase 2.

Telegram me if you don't have access and would like to help out!
Last edited by Eluvatar on Wed Apr 26, 2023 8:36 pm, edited 1 time in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Haku
Attaché
 
Posts: 72
Founded: Jan 02, 2018
Inoffensive Centrist Democracy

Postby Haku » Thu Apr 27, 2023 6:51 am

Instead of the usual list of WA members, the members API https://www.nationstates2.net/cgi-bin/a ... &q=members currently returns this:
Code: Select all
<WA council="1">
<MEMBERS>ARRAY(0x5566c35a4708)</MEMBERS>
</WA>
Last edited by Haku on Thu Apr 27, 2023 7:24 am, edited 1 time in total.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Thu Apr 27, 2023 8:41 am

Haku wrote:Instead of the usual list of WA members, the members API https://www.nationstates2.net/cgi-bin/a ... &q=members currently returns this:
Code: Select all
<WA council="1">
<MEMBERS>ARRAY(0x5566c35a4708)</MEMBERS>
</WA>

Oh heh, I'll fix that shortly :)
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Bobberino
Bureaucrat
 
Posts: 62
Founded: Mar 16, 2018
Father Knows Best State

Postby Bobberino » Sat Apr 29, 2023 2:02 pm

Still need a hand?
Hi! I'm Bobberino. Not sure why you're wasting your time reading this but eventually I'll figure out all my positions. That time is not now.

Obligatory disclaimer that my posts do not represent any region or any official position therein. All opinions are mine, and mine alone, unless otherwise stated.

Have a nice day! :)

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Sat Apr 29, 2023 8:45 pm

Bobberino wrote:Still need a hand?

At this point I think additional testers would be best included in Phase 3 testing, a little later on. I'll keep you in mind as a potential volunteer.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Wed May 03, 2023 3:51 pm

I am satisfied with the testing of Phase 2 and have updated the main site with the bugfix I wanted to take care of before releasing Phase 2 here.

Just checking in with other tech admins/mods to make sure things look good and then Phase 2 will be released to nationstates.net shortly.

Edit: Phase 2 is on the main site, and tonight's updaters should see its benefits (and costs) shortly. We may have lost a few telegrams that should've been auto-sent to new / new WA nations, but not many.
Last edited by Eluvatar on Wed May 03, 2023 5:40 pm, edited 1 time in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Wed May 03, 2023 6:22 pm

I've been made aware that this change is changing the order in which endorsements are displayed on nation pages. Be assured that the underlying order is not lost. I will be correcting the new WA membership validation code to not re-order endorsements now.

Edit: Should be fixed now.
Last edited by Eluvatar on Wed May 03, 2023 8:24 pm, edited 1 time in total.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Fort Concord
Envoy
 
Posts: 227
Founded: Jun 12, 2022
Democratic Socialists

Postby Fort Concord » Thu May 04, 2023 6:17 pm

Eluvatar wrote:Edit: Should be fixed now.


Sort of?

In the case of Mechanocracy, Fort Handel and Anjan Kloss were the most recently provided endorsement but display mid-way through the list. It's definitely not alphabetical anymore, and from a first glance I don't see an immediate pattern, but it doesn't seem how it typically is.
Fort Concord
Outpost on the frontier of Quebecshire.

User avatar
The Ambis
Diplomat
 
Posts: 731
Founded: Dec 01, 2021
Inoffensive Centrist Democracy

Postby The Ambis » Thu May 04, 2023 7:13 pm

Fort Concord wrote:
Eluvatar wrote:Edit: Should be fixed now.


Sort of?

In the case of Mechanocracy, Fort Handel and Anjan Kloss were the most recently provided endorsement but display mid-way through the list. It's definitely not alphabetical anymore, and from a first glance I don't see an immediate pattern, but it doesn't seem how it typically is.

Has it ever been alphabetical? I thought it was order endorsed
MINISTER | Magister | Godfather | Archangel | Justice
...There's an obvious gameplay solution to that problem - burn Algerheaven to the ground.
An insightful quote from Site Director Sedgistan

My main base of operations. The Ambis, Legal Affairs Minister of Thaecia, at your service.
Find my citizenships here, my accomplishments here, and my positions here.

"When Alger is the voice of reason, you know you have a problem"

User avatar
Fort Concord
Envoy
 
Posts: 227
Founded: Jun 12, 2022
Democratic Socialists

Postby Fort Concord » Thu May 04, 2023 7:22 pm

The Ambis wrote:Has it ever been alphabetical? I thought it was order endorsed

It was briefly alphabetical yesterday, which is the problem Eluvatar was referring to above. The normal display is in endorsement order. As of my post you're quoting, neither appeared to be the case to me.
Fort Concord
Outpost on the frontier of Quebecshire.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Fri May 05, 2023 9:39 am

That is very strange. I might not be able to fix it until next week but I will look into it when I can.
To Serve and Protect: UDL

Eluvatar - Taijitu member

User avatar
Quebecshire
Ambassador
 
Posts: 1914
Founded: Mar 17, 2017
Democratic Socialists

Postby Quebecshire » Tue May 23, 2023 11:41 am

Apologies if you've been busy, Elu, but I was wondering if there's been any progress on restoring the normal endorsement display order?
PATRIOT OF THE LEAGUE REDEEMER OF CONCORD
Defender Moralist | Consul of the LDF | Warden-Lieutenant Emeritus | Commended
Benevolent Thomas wrote:I founded a defender organization out of my dislike of invaders, what invading represents, and my desire to see them suffer.
Pergamon wrote:I must say, you are truly what they deserve.

User avatar
Eluvatar
Director of Technology
 
Posts: 3086
Founded: Mar 31, 2006
New York Times Democracy

Postby Eluvatar » Tue May 30, 2023 8:39 pm

Quebecshire wrote:Apologies if you've been busy, Elu, but I was wondering if there's been any progress on restoring the normal endorsement display order?

None yet. There's a solution I could go with that would frustrate me, but I'll try and figure out what's wrong with my fast code and fix it when I can. In the meanwhile the API still shows the correct endorsement order.
To Serve and Protect: UDL

Eluvatar - Taijitu member

Next

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Afghanistan DRA, Auztraloupe, Bendary, Chenzorian Viatrok, Kenmoria, Oceaniesia, Red Communes

Advertisement

Remove ads