Skip to content

Firefly-1963: revamp of asdf code to use an factor approach#1926

Merged
robyww merged 1 commit intodevfrom
FIREFLY-1963-asdf
Apr 1, 2026
Merged

Firefly-1963: revamp of asdf code to use an factor approach#1926
robyww merged 1 commit intodevfrom
FIREFLY-1963-asdf

Conversation

@robyww
Copy link
Copy Markdown
Contributor

@robyww robyww commented Mar 31, 2026

Firefly-1963: revamp of asdf code to use an factor approach

  • better feedback when the type of asdf file is not recognized
  • some support for IPAC roman asdf files
  • upgrade the asdf library
  • now asdf temp files goto temp_files/asdfTemp

Testing

@robyww robyww added this to the 2026.1 milestone Mar 31, 2026
@robyww robyww self-assigned this Mar 31, 2026
Copy link
Copy Markdown
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

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

The provided URLs did not work for me. The sample files in the tickets worked as described.

public static final String STATS_LOG_DIR= "stats.log.dir";


private final static String cloudEnvironmentDefault = System.getProperty("cloud.environment", "detect"); // can be "GWS", "AWS", "ON_PRIM" or "detect"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

GWS should be GCP and ON_PRIM should be ON_PREM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will fix the ON_PRIM to ON_PREM. I will also change the CloudEnvironment enum to GCP

The GWS is a mistake. However I am using GCS everywhere which stands for Google Cloud Storage. I think the difference in the case is not a big deal since we are accessing Google Cloud Storage.


static {
Asdf.configure((b) -> {
File asdfTmp= new File(ServerContext.getTempWorkDir(), "asdfTemp");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's already in a temp work directory. Just asdf would be good enough.

}
else {
report.setMessage("Unrecognized version of ASDF file");
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I’m not sure, but it seems this project-specific logic(ROMAN) could live in DataAccessModel and ModelFactory, so it doesn’t have to be scattered elsewhere.

@robyww robyww force-pushed the FIREFLY-1963-asdf branch from b31ad1d to a194c82 Compare April 1, 2026 17:42
@robyww
Copy link
Copy Markdown
Contributor Author

robyww commented Apr 1, 2026

The sample url were not to enter into firefly but box directories to get files.

  - better feedback when the type of asdf file is not recognized
  - some support for IPAC roman asdf files
  - upgrade the asdf library
  - now asdf temp files goto temp_files/asdfTemp
  - includes reponse to feedback
@robyww robyww force-pushed the FIREFLY-1963-asdf branch from a194c82 to 48870fa Compare April 1, 2026 18:12
@robyww robyww merged commit f55f7c4 into dev Apr 1, 2026
@robyww robyww deleted the FIREFLY-1963-asdf branch April 1, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants