Skip to content

Added denominators to the PE counts on RT#307

Open
Jack-p87 wants to merge 1 commit into
carpetsage:mainfrom
Jack-p87:add-pe-demonimators-rt
Open

Added denominators to the PE counts on RT#307
Jack-p87 wants to merge 1 commit into
carpetsage:mainfrom
Jack-p87:add-pe-demonimators-rt

Conversation

@Jack-p87

@Jack-p87 Jack-p87 commented Apr 9, 2025

Copy link
Copy Markdown

Added denominators to the contract PE and seasonal PE counts on rocket-tracker. Imported the logic from past-contracts.

and seasons on rocket tracker.
import { useSectionVisibility } from 'ui/composables/section_visibility';
import { reportLegendaries, reportMissionData } from '@/lib';
import { REPORT_LEGENDARIES, REPORT_MISSIONDATA } from '@/events';
import { getUserContractList, contractSeasonList, } from '@/../../past-contracts/src/contracts';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All projects under wasmegg are self contained and shouldn't link to each other. If there's code in past-contracts that would be useful in rockets tracker it should move to /lib and then both projects should reference that

/* eslint-disable vue/no-setup-props-destructure */
async setup({ playerId, eventBus }) {
const data = await requestFirstContact(playerId);
const contractsArchive = await requestContractsArchive(playerId);

@carpetsage carpetsage Apr 17, 2025

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this api request should be required? Generally try to avoid api requests because they're slow and I've had rate limiting issues.
As far as I recall the only reason to hit the contracts archive api is if you need score info from past contracts. If you're just trying to see which contracts have the PE goal achieved the contract history in the backup which is already being pulled should be good enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants