-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MARXAN-1274-publicMap-screenshot #1007
MARXAN-1274-publicMap-screenshot #1007
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -5,6 +5,7 @@ import { | |||
Creator, | |||
Resource, | |||
} from '../dto/create-published-project.dto'; | |||
import { string } from 'fp-ts'; |
There was a problem hiding this comment.
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 is what you meant (though it may be what LSP and vscode thought you meant)
import { WebshotService } from '@marxan/webshot'; | ||
import { AppConfig } from '@marxan-api/utils/config.utils'; | ||
import { assertDefined } from '@marxan/utils'; | ||
import { isLeft, isRight } from 'fp-ts/lib/These'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { isLeft, isRight } from 'fp-ts/lib/These'; | |
import { isLeft, isRight } from 'fp-ts/lib/Either'; |
api/apps/api/src/modules/published-project/published-project.service.ts
Outdated
Show resolved
Hide resolved
company: { name: 'logo', logoDataUrl: blmImageMock }, | ||
creators: [{ displayName: 'fake name', avatarDataUrl: blmImageMock }], | ||
resources: [{ title: 'fake url', url: 'http://www.example.com' }], | ||
config: { baseUrl: 'example/png', cookie: 'randomCookie' }, | ||
scenarioId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in hindsight, I think we should have labelled this featuredScenarioId
in the DTO for this, but let's not get there now 😓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I think I would change it as you suggested, mainly because once I start the export here, I would also be able to select which scenarios I want for the export and it can get confusing real fast.
9fb3d33
to
2aaa8ce
Compare
2aaa8ce
to
12ed10a
Compare
-Adds screenshot generation to publish action.
-Adds new location field to published project entity.
-Adapts tests to new fields.
-Minor removal of redundant fixture data.