Skip to content

Conversation

@tjazerzen
Copy link
Contributor

@tjazerzen tjazerzen commented Sep 22, 2025

Summary

Note: Should be reviewed alongside devrev/airdrop-trello-snap-in#11.

These were the changes needed while I was developing functionality for:

  • Attachment extraction
  • Rate limiting

These changes include, but not limited to:

  • Updates to mock_devrev_server.py
  • Proxy server implementation
  • Improving attachment-extraction.md
  • Improving document with rules for emitting events
  • Added a guide for metadata extraction (copied from the fern API docs)
  • Updates in test_data/
  • Updates in the Plain template

Related issues

https://app.devrev.ai/devrev/works/ISS-180117

@patricijabrecko patricijabrecko merged commit 9754609 into devrev:main Sep 23, 2025
2 checks passed
gasperzgonec pushed a commit to devrev/airdrop-trello-snap-in that referenced this pull request Oct 8, 2025
> Note: Should be reviewed alongside
devrev/airdrop-shared#24.

This PR introduces support for

- Rate limiting (through proxy)
- Attachments handling (I can now confirm that acceptance tests for
attachment passing means that the attachments will also get extracted to
the DevRev platform)
- Simplify flow for the incremental mode

NOTE: Regarding attachments: In Trello, you have to construct separate
endpoint for streaming attachments (Refer to
`trello-openapi-compact.yaml` for more. This is handled during
attachment normalization phase (in data extraction). This endpoint has
for some reason separate authentication.

Changes include:

- Simplify every acceptance test by removing text `Make sure to replace
placeholders in the resource with The Trello API Key, The Trello OAuth
Token, and The Organization ID.`. Instead, we do that only once on the
toplevel and it seems to working fine
- Acceptance tests in `Data fetching` for rate limiting (testing API
calls rate limits directly)
- Acceptance tests in `Pushing data to DevRev server` for rate limiting
(testing if events get emitted properly)
- Added instructions for constructing the attachment URL
(Trello-specific)
- Added acceptance test that actually tests if attachment extraction
works
- Added event payload for incremental mode
- Simplify and improve acceptance test for incremental mode
- Update `test_data/external_domain_metadata_event_payload.json`
- Update `test_data/trello_external_sync_unit_check.json`
- Updated `trello-openapi-compact.yaml` to:
  - Also include information about rate limiting documentation
  - Add docs for endpoint for streaming attachments

Issues connected:
- [ISS-217157](https://app.devrev.ai/devrev/works/ISS-217157)
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.

3 participants