Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97554

Mongo ModuleLoader's resolveBaseUrl(...) can be moved up a few layers

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability

      Currently resolveBaseUrl() which figures out where jsconfig.json lives is defined as a static method on the ModuleLoader. In SERVER-97251 we needed to get the resolved base URL at a top level - this required a lot of plumbing to get the base URL from ModuleLoader -> Scope implementation -> ... Scope abstract class -> Mongo main function.

      It may be better to move the function to place closer to the higher level, such as the Engine.

            Assignee:
            Unassigned Unassigned
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: